Post date: Jun 3, 2014 3:24:20 PM
Modified from some magic on the VMware Forums thanks ssbkang.
Handy if your looking for a list of WWNN and WWPN for a cluster!
############################################################################
#GetClusterHBA.ps1
#
#USAGE: ./GetClusterHBA.ps1 <"cluster name">
############################################################################
param(
[parameter(Mandatory = $true)]
[string[]]$Cluster
)
Get-Cluster $Cluster | Get-VMhost | Get-VMHostHBA -Type FibreChannel | Select VMHost,Device,@{N="WWNN";E={"{0:X}"-f$_.NodeWorldWideName}},@{N="WWPN";E={"{0:X}"-f$_.PortWorldWideName}} | Sort VMhost,Device