Hostsvc/net/vswitch setpolicy: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
(New page: ==== vimsh hostsvc/net/vswitch_setpolicy ==== Usage: vswitch_setpolicy [OPTIONS] vswitch Changes the policies of a virtual switch. Options: --securepolicy-promisc=bool Allow p...)
 
(added example)
 
Line 8: Line 8:
   --securepolicy-promisc=bool
   --securepolicy-promisc=bool
       Allow promiscuous mode.
       Allow promiscuous mode.
 
   --securepolicy-macchange=bool
   --securepolicy-macchange=bool
       Allow MAC address to be changed.
       Allow MAC address to be changed.
 
   --securepolicy-forgedxmit=bool
   --securepolicy-forgedxmit=bool
       Allow forged transmits.
       Allow forged transmits.
 
   --shapingpolicy-enabled=bool
   --shapingpolicy-enabled=bool
       Enabled shaper.
       Enabled shaper.
 
   --shapingpolicy-average-bandwidth=int
   --shapingpolicy-average-bandwidth=int
       Average bandwidth.
       Average bandwidth.
 
   --shapingpolicy-peak-bandwidth=int
   --shapingpolicy-peak-bandwidth=int
       Peak bandwidth.
       Peak bandwidth.
 
   --shapingpolicy-burst-size=int
   --shapingpolicy-burst-size=int
       Burst size.
       Burst size.
 
   --nicorderpolicy-active=vmnic_list
   --nicorderpolicy-active=vmnic_list
       List of active NICs.
       List of active NICs.
 
   --nicorderpolicy-standby=vmnic_list
   --nicorderpolicy-standby=vmnic_list
       Order in which failover should occur.
       Order in which failover should occur.
 
   --failurecriteria-check-speed=failurecriteria-check-speed
   --failurecriteria-check-speed=failurecriteria-check-speed
       Detecting failover using link speed check
       Detecting failover using link speed check
 
   --failurecriteria-speed=int
   --failurecriteria-speed=int
       The speed for link speed check method
       The speed for link speed check method
 
   --failurecriteria-check-duplex=bool
   --failurecriteria-check-duplex=bool
       Detecting failover using link duplex check
       Detecting failover using link duplex check
 
   --failurecriteria-duplex=bool
   --failurecriteria-duplex=bool
       The duplexity for link duplex check method
       The duplexity for link duplex check method
 
   --failurecriteria-check-error=bool
   --failurecriteria-check-error=bool
       Detecting failover using link error percentage
       Detecting failover using link error percentage
 
   --failurecriteria-error=int
   --failurecriteria-error=int
       The error percentage for link error percentage check method
       The error percentage for link error percentage check method
 
   --failurecriteria-check-beacon=bool
   --failurecriteria-check-beacon=bool
       Detecting failover using the beacon
       Detecting failover using the beacon
 
   --nicteaming-policy=nicteaming-policy
   --nicteaming-policy=nicteaming-policy
       Nic-Teaming policy.
       Nic-Teaming policy.
 
   --nicteaming-reverse-policy=bool
   --nicteaming-reverse-policy=bool
       Apply the teaming policy to inbound frames as well.
       Apply the teaming policy to inbound frames as well.
 
   --nicteaming-notify-switch=bool
   --nicteaming-notify-switch=bool
       Notify switches when detects a link failure.
       Notify switches when detects a link failure.
 
   --nicteaming-rollingorder=bool
   --nicteaming-rollingorder=bool
       Whether or not to use rolling failover.
       Whether or not to use rolling failover.
 
   --offloadcaps-csum-offload=bool
   --offloadcaps-csum-offload=bool
       Checksum offload
       Checksum offload
 
   --offloadcaps-tcp-segment=bool
   --offloadcaps-tcp-segment=bool
       TCP segment offload
       TCP segment offload
 
   --offloadcaps-zerocopy-xmit=bool
   --offloadcaps-zerocopy-xmit=bool
       Scatter gather
       Scatter gather
==== Example ====
This works on ESX 3.5 U3 [http://communities.vmware.com/message/1144345 forum reference]
vmware-vim-cmd /hostsvc/net/vswitch_setpolicy --failurecriteria-check-beacon 1 vSwitch0
[[Category: Vimsh]]
[[Category: Vimsh]]

Latest revision as of 12:29, 15 January 2009

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