As per the title:
1 2 3 4 5 6 7 8 9 10 11 12 |
# 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