Getting Hardware UUID: Difference between revisions

From Leo's Notes
This page was last edited on 11 September 2019, at 23:07.
m formatting
m formatting
Line 6: Line 6:
You may get the UUID value from PowerShell.
You may get the UUID value from PowerShell.
{{highlight|lang=terminal|code=
{{highlight|lang=terminal|code=
<nowiki>
> get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID
> get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID
</nowiki>
}}
}}


Line 21: Line 23:


{{highlight|lang=terminal|code=
{{highlight|lang=terminal|code=
# esxcfg-info |grep -i uuid
<nowiki>
# esxcfg-info | grep -i uuid
</nowiki>
}}
}}


Line 27: Line 31:
   
   
{{highlight|lang=text|code=
{{highlight|lang=text|code=
<nowiki>
  |----System UUID..............................................5178962d-2fcf-df50-536d-000423d9985a
  |----System UUID..............................................5178962d-2fcf-df50-536d-000423d9985a
</nowiki>
}}
}}



Revision as of 23:07, 11 September 2019

Every system has a universally unique identifier (UUID) value set onto the system. The UUID is a 128-bit value typically displayed in lowercase hexadecimal digits in 5 groups separated by dashes. An example UUID would look like 5178962d-2fcf-df50-536d-000423d9985a.

While software packages may make use of pseudo random UUIDs, this article will cover only system hardware UUIDs.

Windows

You may get the UUID value from PowerShell.

&gt; get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID

Linux / FreeBSD

Use the dmidecode utility to get the UUID

# dmidecode -s system-uuid

You may need to install dmidecode since it usually isn't bundled with the base OS. On FreeBSD, it's available in ports at /usr/ports/sysutils/dmidecode.

VMWare ESXi

To get the UUID of the physical machine that your ESXi server is running on, login via SSH and run:

# esxcfg-info | grep -i uuid

You will see a bunch of UUIDs, most of which pertain to disks/volumes. What you are looking for is:

 |----System UUID..............................................5178962d-2fcf-df50-536d-000423d9985a