Does anybody know a command or file to view to see current nicteaming policy? I know I can set the nicteaming policy with the vmware-vim-cmd but this doesn't let you view it just set it. Is there a command or file to see this info without changing it? Thanks.
Here you go:
Yes there is: /etc/vmware/esx.conf
--> /net/vswitch/child[0001|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=0001]/teamPolicy/team = "lb_srcid"
lb_srcid = virtual port id
lb_ip = IP Hash
lb_srcmac = MAC Address
you could use the following to check it:
cat /etc/vmware/esx.conf | grep "teamPolicy\/team"
Duncan
VMware Communities User Moderator | VCP | VCDX
-
Blogging: http://www.yellow-bricks.com
If you find this information useful, please award points for "correct" or "helpful".
Duncan .... you never know you still got that 0.01% chance 😜
Though I can confirm on ESX 3.5u3 this is the case and I have no doubt that Duncan is correct in his statment
[root@k2 root]# vmware -v VMware ESX Server 3.5.0 build-123630 [root@esx-1 root]# cat /etc/vmware/esx.conf | grep "teamPolicy\/team" /net/vswitch/child[0000]/teamPolicy/team = "lb_ip" /net/vswitch/child[0001]/teamPolicy/team = "lb_srcid" /net/vswitch/child[0002]/teamPolicy/team = "lb_srcid"
Also you can extract this information using good ol vimsh:
[root@k2 root]# vmware-vim-cmd hostsvc/net/vswitch_info | grep -E '(policy|name)' name = "vSwitch0", policy = (vim.host.NetworkPolicy) { policy = "loadbalance_ip", name = "vSwitch1", policy = (vim.host.NetworkPolicy) { policy = "loadbalance_srcid", name = "vSwitch5", policy = (vim.host.NetworkPolicy) { policy = "loadbalance_srcid",
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Ahhh, awesome. I was greping policy with a lowercase p, lol. I didn't know that info would come up under the vmware-vim-cmd though. Thanks to both of you!