Storage‎ > ‎

Get Cluster HBA WWNN and WWPN

posted Jun 3, 2014, 8:24 AM by Kris Knight   [ updated Apr 3, 2015, 10:43 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
Comments