Its a one liner for getting HBA details of all hosts connected to a vCenter Server.
[crayon lang=”powershell”]
Connect-VIServer vCenter1
get-vmhost | Get-VMHostHba -Type FibreChannel |
Select VMHost,Device, model,Driver,PortWorldWideName,NodeWorldWideName |
Export-Csv -NoTypeInformation c:\output\HBA-details.csv
[/crayon]