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 42 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.