unique hardware identification
John Baldwin
jhb at freebsd.org
Wed Feb 7 18:32:03 UTC 2007
On Thursday 01 February 2007 14:40, M. Warner Losh wrote:
> In message: <20070201104917.C82313 at xorpc.icir.org>
> Luigi Rizzo <rizzo at icir.org> writes:
> : On Thu, Feb 01, 2007 at 11:38:51AM -0700, M. Warner Losh wrote:
> : > In message: <20070128181132.GR927 at turion.vk2pj.dyndns.org>
> : > Peter Jeremy <peterjeremy at optushome.com.au> writes:
> : > : On Sun, 2007-Jan-28 10:39:36 -0600, Jon Passki wrote:
> : > : >If the machine is a PXE-compliant device [2], it should have a GUID/
> : > : >UUID [1] available. This can be exposed by sysutil/hal [3] via the
> : > : >smbios.system.uuid field.
> : > :
> : > : You can also get it via kenv(8) without needing any ports:
> : > : # kenv smbios.system.uuid
> : > : 9F345F4F-BEFC-D431-1340-61235A56DEF9
> : >
> : > I wonder why the smbios stuff isn't exported via sysctls as well...
> :
> : and this is probably a lazy vendor :)
> :
> : smbios.bios.reldate="07/12/2006"
> : smbios.bios.vendor="American Megatrends Inc."
> : smbios.bios.version="P1.10"
> : smbios.chassis.maker="To Be Filled By O.E.M."
> : smbios.chassis.serial="To Be Filled By O.E.M."
> : smbios.chassis.tag="To Be Filled By O.E.M."
> : smbios.chassis.version="To Be Filled By O.E.M."
> : smbios.planar.maker=" "
> : smbios.planar.product="775i945GZ"
> : smbios.planar.serial=" "
> : smbios.planar.version=" "
> : smbios.socket.enabled="1"
> : smbios.socket.populated="1"
> : smbios.system.maker="To Be Filled By O.E.M."
> : smbios.system.product="775i945GZ"
> : smbios.system.serial="To Be Filled By O.E.M."
> : smbios.system.uuid="00020003-0004-0005-0006-000700080009"
> : smbios.system.version="To Be Filled By O.E.M."
>
> Heh!
>
> My comment though is why do we have to go to kenv when we could
> export these via sysctl, like everything else.
Because the kernel doesn't expose them. This is done via /boot/loader.
--
John Baldwin
More information about the freebsd-hackers
mailing list