It is because your esxihost are connected to vcenter by IP addresses not the name.
This will do the trick.
Get-VMHost | Select-object @{N="HostName";E={ $_ | Get-VMHostNetwork | select -ExpandProperty Hostname}},
@{N="IPAddress"; E={($_ | Get-VMHostNetwork).VirtualNic | Where-Object {$_.ManagementTrafficEnabled} | Select-Object -ExpandProperty IP}},
Manufacturer,
Model,
ProcessorType,
@{N="BIOS version";E={$_.ExtensionData.Hardware.BiosInfo.BiosVersion}},
@{N="HBA Model";E={($_ | get-vmhosthba -Type FibreChannel | select-object -ExpandProperty Model) -join ", "}},
@{N="Driver";E={($_ | get-vmhosthba -Type FibreChannel | select-object -ExpandProperty Driver) -join ", "}}
Message was edited by: Kunal Udapi