How to set the LoadBalancingPolicy using PowerCLI
As a virtualisation admin you maybe tasked with configuring VMware’s vSwitches in a particular load balancing configuration. I have had to do this for link aggregation between the teaming of my vmnic’s and physical Cisco switches. See the link for more info:
Here’s how I did it using PowerCLI.
Connect-VIServer VirtualCenterServerFQDN
Get-VMHost -Name HostName | Get-VirtualSwitch -name vSwitchNumber |
Get-NicTeamingPolicy | Set-NicTeamingPolicy -LoadBalancingPolicy LoadBalanceIP
Just bear in mind you will need to set the, Virtual Center Server, Host Nane and vSwitch name.
I hope this helps!
Stuart



