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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s