Hostsvc/net/vswitch setpolicy

From VI-Toolkit
Jump to navigation Jump to search

vimsh hostsvc/net/vswitch_setpolicy

Usage: vswitch_setpolicy [OPTIONS] vswitch

Changes the policies of a virtual switch.

Options:

  --securepolicy-promisc=bool
      Allow promiscuous mode.

  --securepolicy-macchange=bool
      Allow MAC address to be changed.

  --securepolicy-forgedxmit=bool
      Allow forged transmits.

  --shapingpolicy-enabled=bool
      Enabled shaper.

  --shapingpolicy-average-bandwidth=int
      Average bandwidth.

  --shapingpolicy-peak-bandwidth=int
      Peak bandwidth.

  --shapingpolicy-burst-size=int
      Burst size.

  --nicorderpolicy-active=vmnic_list
      List of active NICs.

  --nicorderpolicy-standby=vmnic_list
      Order in which failover should occur.

  --failurecriteria-check-speed=failurecriteria-check-speed
      Detecting failover using link speed check

  --failurecriteria-speed=int
      The speed for link speed check method

  --failurecriteria-check-duplex=bool
      Detecting failover using link duplex check

  --failurecriteria-duplex=bool
      The duplexity for link duplex check method

  --failurecriteria-check-error=bool
      Detecting failover using link error percentage

  --failurecriteria-error=int
      The error percentage for link error percentage check method

  --failurecriteria-check-beacon=bool
      Detecting failover using the beacon

  --nicteaming-policy=nicteaming-policy
      Nic-Teaming policy.

  --nicteaming-reverse-policy=bool
      Apply the teaming policy to inbound frames as well.

  --nicteaming-notify-switch=bool
      Notify switches when detects a link failure.

  --nicteaming-rollingorder=bool
      Whether or not to use rolling failover.

  --offloadcaps-csum-offload=bool
      Checksum offload

  --offloadcaps-tcp-segment=bool
      TCP segment offload

  --offloadcaps-zerocopy-xmit=bool
      Scatter gather

Example

This works on ESX 3.5 U3 forum reference

vmware-vim-cmd /hostsvc/net/vswitch_setpolicy --failurecriteria-check-beacon 1 vSwitch0