Re: Extracting system UUID...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 20.04.10 14:52, Darryl L. Pierce (dpierce@xxxxxxxxxx) wrote:

> Does anything return the UUID for the host system? Such as what was
> returned by hal with:
> 
> (mcpierce@mcpierce-desktop:~)$ hal-get-property --udi \
>      /org/freedesktop/Hal/devices/computer --key system.hardware.uuid
> 00DD19E3-DD3A-DE11-90DA-812C97507C34

That's the product UUID key from the DMI data, which you also can read
from sysfs:

/sys/devices/virtual/dmi/id/product_uuid

Not sure what you want to use this for, but given that many BIOS vendors
just write rubbish to that field, it's mostly useless.

The D-Bus machine ID is usually more useful, as stored in
/var/lib/dbus/machine-id. It's nowadays available on virtually all
systems and considered part of the D-Bus API, and hence can be reliably
be used to identify a system. There's no need to actually use libdbus to
read that file.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux