PowerCLI – Finding host bus adapter (HBA) World Wide Name (WWN)

While trying to get the World Wide Name (WWN) for a host that I needed zoning by the storage team, I ran into an issue working remotely that I couldn’t get at the webclient or the c# client.

PoweCLI to the rescue:

Get-VMHostHBA -Type FibreChannel | Select VMHost,Device,@{N="WWN";E={"{0:X}" -f $_.PortWorldWideName}}


More information about ‘Get-VMHostHBA’ from vSphere PowerCLI Cmdlets Reference

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.