As per the title:
# All hosts connected in vCenter $scope = Get-VMHost #OR specify a cluster #$scope = Get-Cluster -Name 'Vsphere.Cluster01' | Get-VMHost foreach ($esx in $scope){ Write-Host "HostName:", $esx $hbas = Get-VMHostHba -VMHost $esx -Type FibreChannel foreach ($hba in $hbas){ $wwpn = "{0:x}" -f $hba.PortWorldWideName Write-Host `t $hba.Device, "|", $hba.model, "|", "World Wide Port Name:" $wwpn }}
Leave a Reply