Show your ESX Load Balancing Policy on the Command Line

Balance2Configuring a vswitch's load balancing policy is easy from Virtual Center, but whenever you are changing network setings on the fly its inevitable that you are going to make a change and loose connectivity to your ESX server. So I went in search of a command line way of seeing a vswitch's load balancing policy. I found two ways.

Method #1

grep "teamPolicy\/team" /etc/vmware/esx.conf

This would return the following:

/net/vswitch/child0001/teamPolicy/team = "lb_srcid"

Note that your Possible load balancing policies are:

lb_srcid = Virtual port id

lb_ip = IP Hash

lb_srcmac = MAC Address

Method #2

vmware-vim-cmd hostsvc/net/vswitch_info | grep -E '(policy|name)'

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.