I've used the script from the link below that worked great for me...
Script to pull host UUID for VMware PowerCLI
1. open this url in to the browser with filling the hostname of your browser and login cred.
https://<ESX HOST IP>/mob/?moid=ha-host&doPath=hardware.systemInfo
2. Powershell Script is able to download here. http://professionalvmware.com/2009/04/new-script-get-vm-or-esx-host-uuids-get-uuidps1/
3. For any specific host you can use this one liner too..
Get-View -ViewType HostSystem -Propert Name, hardware.systeminfo -Filter @{“Name”=”VMHostNameHere” } | Select Name, @{N=”UUID” ; E={$_.hardware.systeminfo.uuid } }
Hi
Similarly you can get the information from vCenter database with the help of SQL query for all the ESXi host. You can run the query by login into vCenter database
select DNS_NAME , UUID_BIOS from [dbo].[VPXV_HOSTS]
NOTE : Would recommend not to go inside the database without the help of database administrator.
Looks like there is no vcli way of getting the information?
I am not sure if this will work but you can try find your host uuid via this command or go with the help by (--help | -h ) .
system uuid get
Hi,
Have a look here:
http://www.vi-toolkit.com/wiki/index.php/Hostsvc/hostsummary
--
Wil
Access the ESXi shell of your host (vSphere Documentation Center) and execute that command:
# esxcli system uuid get
thank you, the PowerCLI one liner without a filter helped list all host UUIDs
Get-View -ViewType HostSystem -Property Name,hardware.systeminfo | Select-Object Name,@{N="UUID";E={$_.hardware.systeminfo.uuid}}
Hi,
You can try the following command
Get-VMHost "hostname" | Select Name,@{n="HostUUID";e={$_.ExtensionData.hardware.systeminfo.uuid}}
Hello,
it's easy by using ESXCLI command:
[root@localhost:~] esxcli system uuid get
this command get host uuid 🙂