Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 167985

Re: Script to output WWN Datacenter Cluster Host

$
0
0

Sure, try something like this

 

foreach($dcinGet-Datacenter){
 
foreach($clusterinGet-Cluster-Location$dc){
   
foreach($esxinGet-VMHost-Location$cluster){
     
Get-VMHostHba-VMHost$esx-TypeFibreChannel|
     
Select@{N="DC";E={$dc.Name}},@{N="Cluster";E={$cluster.Name}},
       
@{N="Host";E={$esx.Name}},Name,
       
@{N="HBA Node WWN";E={"{0:x}"-f$_.NodeWorldWideName}},
       
@{N="HBA Port WWN";E={"{0:x}"-f$_.PortWorldWideName}}
    }
  }
}

Viewing all articles
Browse latest Browse all 167985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>