Its a one liner for getting HBA details of all hosts connected to a vCenter Server.
1 2 3 4 5 |
Connect-VIServer vCenter1 get-vmhost | Get-VMHostHba -Type FibreChannel | Select VMHost,Device, model,Driver,PortWorldWideName,NodeWorldWideName | Export-Csv -NoTypeInformation c:\output\HBA-details.csv |