VMware Cloud Community
pironet
Enthusiast
Enthusiast
Jump to solution

vSwitch load balancing mode - set values in batch file

Hi Gurus.

I need to change for a long list of hosts the vSwitch load balancing mode to a new value, for instance "route based on the originating port ID" .

And as i'm a lazy VMware admin, I want to batch that

Anyone has a tip for me ?

Thx,

Didier

I wish I was a virtual machine :) http://deinoscloud.wordpress.com
Reply
0 Kudos
1 Solution

Accepted Solutions
benma
Hot Shot
Hot Shot
Jump to solution

Hey Buddy,

thats the command:

vmware-vim-cmd /hostsvc/net/vswitch_setpolicy -nicteaming-policy=loadbalance_srcid vSwitchX

View solution in original post

Reply
0 Kudos
3 Replies
benma
Hot Shot
Hot Shot
Jump to solution

Hey Buddy,

thats the command:

vmware-vim-cmd /hostsvc/net/vswitch_setpolicy -nicteaming-policy=loadbalance_srcid vSwitchX

Reply
0 Kudos
pironet
Enthusiast
Enthusiast
Jump to solution

Thx mate it works like a charm...

BTW what are the other possible values for 'nicteaming-policy' ?

Cheers,

Didier

I wish I was a virtual machine :) http://deinoscloud.wordpress.com
Reply
0 Kudos
benma
Hot Shot
Hot Shot
Jump to solution

<code>vmware-vim-cmd /hostsvc/net/vswitch_setpolicy -nicteaming-policy=loadbalance_ip vSwitchX</code>

<code>vmware-vim-cmd /hostsvc/net/vswitch_setpolicy -nicteaming-policy=loadbalance_srcmac vSwitchX</code>