Powershell

Need to determine what the uplink policy is for your DVSwitches? Here is a quick PowerCLI snippet to do that. I’d go into more detail but I don’t have time this moment. Consider this longer than a tweet, but shorter than my normal blog post. Smile

Here is the corresponding screen in the vSphere Client (pardon the font issues, I’m running blind-person-size-font) with the relevant portion highlighted:

vSphere client screenshot

And the code:

PS> $pgName = 'Name of your DV port group'
PS> $pg = Get-View -ViewType DistributedVirtualPortgroup -Filter @{ Name = $pgName }
PS> $pg.Config.DefaultPortConfig.UplinkTeamingPolicy.UplinkPortOrder

ActiveUplinkPort  : {dvUplink1, dvUplink2}
StandbyUplinkPort :
Inherited         : True
DynamicType       :
DynamicProperty   :

: http://halr9000.com/article/903

No comments yet.

  • Microblog

  • Recent Posts

  • Recent Comments

  • meta

  • PowerShell Blogroll