PowerCLI – Find the HBA model, WWPN and driver details.

Loading

Just a quick blog to show the HBA details of all hosts connected to a vCenter Server.

Get-vmhost | Get-VMHostHba -Type FibreChannel |
Select  VMHost,Device, model,Driver,PortWorldWideName, NodeWorldWideName |
Export-Csv -NoTypeInformation c:\demo\HBA-details.csv

For a specific host, we could use the following command

Connect-VIServer sfo-m01-vc02.ash.local
$vmHost = Get-VMHost
$vmHost | Get-VMHostHba -Type FibreChannel | Select VMHost,Name,Pci,Driver, PortWorldWideName, @{name=”WWN”;Expression={“{0:x}” -f $_.PortWorldWideName}} |FT -Auto

(Visited 38 times, 1 visits today)