Skip navigation
VMware

This Question is Answered

1 "correct" answer available (10 pts)
466 Views 4 Replies Last post: Jun 5, 2009 11:58 AM by KellyOlivier RSS
KellyOlivier Enthusiast 96 posts since
Dec 16, 2008
Currently Being Moderated

Jun 4, 2009 2:07 PM

Display not set nicteaming policy

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.

depping Champion VMware Employees User Moderators vExpert 4,238 posts since
Jan 17, 2005
Currently Being Moderated
1. Jun 5, 2009 8:36 AM in response to: KellyOlivier
Re: Display not set nicteaming policy

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

Twitter: http://www.twitter.com/depping

 

If you find this information useful, please award points for "correct" or "helpful".

Duncan | Yellow-Bricks.com | Author of the vSphere 5.0 Clustering Deepdive
depping Champion VMware Employees User Moderators vExpert 4,238 posts since
Jan 17, 2005
Currently Being Moderated
2. Jun 5, 2009 8:30 AM in response to: depping
Re: Display not set nicteaming policy

I checked it on ESX 4.0 by the way, but I'm 99.99% sure it's the same in 3.5!

 

 

 

 

Duncan

VMware Communities User Moderator | VCP | VCDX

-


Blogging: http://www.yellow-bricks.com

Twitter: http://www.twitter.com/depping

 

If you find this information useful, please award points for "correct" or "helpful".

Duncan | Yellow-Bricks.com | Author of the vSphere 5.0 Clustering Deepdive
lamw Guru vExpert 5,952 posts since
Nov 27, 2007
Currently Being Moderated
3. Jun 5, 2009 8:43 AM in response to: depping
Re: Display not set nicteaming policy

Duncan .... you never know you still got that 0.01% chance ;P

 

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".

*Disclaimer: VMware Employee - William Lam | http://www.virtuallyghetto.com | http://blogs.vmware.com/vsphere/automation | @lamw

Bookmarked By (0)

Share This Page

Communities