Powershell – List WWNs per cluster

Ever build a new cluster and have to send the WWNs to your storage team for zoning? 

This script will make that a littler easier for you. 

Get-Cluster ClusterName| Get-VMhost | Get-VMHostHBA -Type FibreChannel | Select VMHost,Device,@{N=”WWN”;E={“{0:X}”-f$_.PortWorldWideName}} | Sort VMhost,Device| export-csv c:\storage\blahblahyaya.csv

 

Leave a comment

Filed under Uncategorized

Leave a comment