Quantcast
Viewing all articles
Browse latest Browse all 231887

Re: Distributed port state find

Try something like this

 

foreach($dvSwinGet-VDSwitch){
 
$dvSw.ExtensionData.FetchDVPorts($null) |
 
where {$_.Connectee} |
 
Select@{N="dvSwitch";E={$dvSw.Name}},
   
@{N="Port Id";E={$_.Key}},
   
@{N="Connectee";E={Get-View$_.Connectee.ConnectedEntity|Select-ExpandPropertyName}},
   
@{N="LinkUp";E={$_.State.RuntimeInfo.LinkUp}}
}

Viewing all articles
Browse latest Browse all 231887

Trending Articles