Hi Luc ,
could yu check following code to set load balancing at distributed port group level to "route based on physical nic load"
$dvsw=Read-Host "PROVIDE THE Vds NAME"
$pgs=Get-VDPortgroup -VDSwitch $dvsw
foreach($pg in $pgs)
{
Get-VDPortgroup -VDSwitch $dvsw | get-vduplinkteamingpolicy | % {
write-output " teaming policy on $($_.vdportgroup) is $($_.loadbalancingpolicy)"
}
}
for some weired reasons its printing output thrice also what line to be added in above to change this to "route based on physical node" as there is no proper argument in set-nicteaming command.
Try like this
$dvsw=Read-Host "PROVIDE THE Vds NAME"
$pgs=Get-VDPortgroup -VDSwitch $dvsw
foreach($pg in $pgs)
{
Get-VDUplinkTeamingPolicy -VDPortgroup $pg | Set-VDUplinkTeamingPolicy -LoadBalancingPolicy LoadBalanceLoadBased | % {
write-output " teaming policy on $($_.vdportgroup) is $($_.loadbalancingpolicy)"
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
$dvsw=Read-Host "PROVIDE THE Vds NAME"
$pgs=Get-VDPortgroup -VDSwitch $dvsw
foreach($pg in $pgs)
{
Get-VDUplinkTeamingPolicy -VDPortgroup $pg | Set-VDUplinkTeamingPolicy -LoadBalancingPolicy LoadBalanceLoadBased | % {
write-output " teaming policy on $($_.vdportgroup) is $($_.loadbalancingpolicy)"
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc.it worked but no where this thing mentioned in comannd,
below is the -loadbalancingpolicy parameter in command.do i need to update powercli though its on 6.5 release1 4624819.
Thanks for your help.
You could upgrade to 6.5.3, but I suspect this an omission in the documentation, not a problem with the cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc.Iam checking this.