Hi all,
I am trying to get host uuid through vCenter / Powercli.
When I check directly on my host, I get its UUID :
[root@esxi-01:~] esxcli system uuid get
58817e8c-xxxx-xxxx-xxxx-xxxxxxxxx6d6
But when I check with Powercli on a vCenter 6.0 u2, I got the following :
PowerCLI C:\> (Get-VMHost esxi-01 | Get-View).hardware.systeminfo.uuid
00000000-0000-0000-0000-xxxxxxxxx6d6
There is only the last part of the UUID that is correct (btw I need the first part of the UUID to get installation date of the esxi).
I checked 6.0 u2 esxi & 5.5 u2/u3 : same truncated UUID.
Do you have any idea why the vCenter/powercli is not getting the right/full uuid ?
thanks,
vinny
Those are UUID for two different things, one is for the HW BIOS, the other is the ESXi system UUID.
Get-VMHost | Select Name,
@{N='HW BIOS Uuid';E={$_.Extensiondata.Hardware.SystemInfo.Uuid}},
@{N='ESXi System UUid';E={(Get-Esxcli -VMHost $_).system.uuid.get()}}
Update: Alan did a nice post on the different UUIDs. See A Quick Reference of vSphere IDs
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Those are UUID for two different things, one is for the HW BIOS, the other is the ESXi system UUID.
Get-VMHost | Select Name,
@{N='HW BIOS Uuid';E={$_.Extensiondata.Hardware.SystemInfo.Uuid}},
@{N='ESXi System UUid';E={(Get-Esxcli -VMHost $_).system.uuid.get()}}
Update: Alan did a nice post on the different UUIDs. See A Quick Reference of vSphere IDs
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
you're perfectly right, thanks for pointing me in the right direction,
vinny