Hi PowerCLI community,
How come Get-VMHostHba returns an HBAs world wide names in a bogus format? I.e.:
NodeWorldWideName : 2305843171164295343
and
NodeWorldWideName : 2305843171164295343
whereas if you view this information in the vSphere client you actually see a WWN formatted as one would expect:
20:00:00:25:b5:02:10:af 20:00:00:25:b5:b2:10:5f
Is there a way to make Get-VMHostHba return WWNs in the 'normal' format?
Thanks!
You can modify it for multiple hosts with a foreach.
Get-VMHost | select -First 1 | Get-VMHostHba -Type Fibrechannel | select @{ N="WWN"; E={ "{0:X}" -f $_.PortWorldWideName } }
You can modify it for multiple hosts with a foreach.
Get-VMHost | select -First 1 | Get-VMHostHba -Type Fibrechannel | select @{ N="WWN"; E={ "{0:X}" -f $_.PortWorldWideName } }
check my ques this might be useful
Script to convert HBA WWNs to lowercase and add ":"
DZ1,
I understand the calculated property you used there, but can you explain this bit some more? "{0:X}" -f
Thanks!