Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2017 16:55:53 -0400
From:      Rick Miller <vmiller@hostileadmin.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Ascertain host serial number under UEFI
Message-ID:  <CAHzLAVE3YOzNrzZp=ae5A0R4U56m9-sR9fDWBmZ0an0aukAevg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

Tossed this question up on twitter, but it might get additional audience
here...

How does one ascertain a host's serial number with FreeBSD sans
hint.smbios.0.mem (stable/10 or 11, for example) on a system in pure UEFI
mode?  hint.smbios.0.mem [ in -CURRENT ] stores the address of the smbios
table. dmidecode uses this as it's entry point to the smbios table where
the host's serial number can be found.

Variants of `dd if=/dev/mem ... | strings | grep ''` worked, but also
rebooted the hardware on occasion.  Not ideal.

-- 
Take care
Rick Miller



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHzLAVE3YOzNrzZp=ae5A0R4U56m9-sR9fDWBmZ0an0aukAevg>