Hardware Serial Numbers under FreeBSD

Arne Schwabe arne at rfc2549.org
Fri Nov 5 08:15:19 PST 2004


"Dan Mahoney, System Admin" <danm at prime.gushi.org> writes:

> Hey all, I'm trying to create an inventory script for systems that will be 
> loaded via net-boot.  I was wondering if there was any useful way to 
> obtain the serial number of devices like the hard drives, processor, 
> and/or motherboard.  (as far as I can guess, those are the only things 
> likely to store a serial number in a machine-readable format).
>
> I'm scripting in perl, but of course have nothing against making system 
> calls to get at the low-level stuff.

for harddisk you can try smartctl, for bios/mainboard
you can try dmidecode (in ports).

Arne
-- 
compiling millions of tiny c-programs...done
checking for a working configure script... not found


More information about the freebsd-hackers mailing list