Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Nov 2004 17:15:13 +0100
From:      Arne Schwabe <arne@rfc2549.org>
To:        "Dan Mahoney, System Admin" <danm@prime.gushi.org>
Cc:        hackers@freebsd.org
Subject:   Re: Hardware Serial Numbers under FreeBSD
Message-ID:  <864qk4e0ha.fsf@kamino.rfc1149.org>
In-Reply-To: <20041104115425.A95642@prime.gushi.org> (Dan Mahoney's message of "Thu, 4 Nov 2004 12:01:15 -0500 (EST)")
References:  <20041104115425.A95642@prime.gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Dan Mahoney, System Admin" <danm@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864qk4e0ha.fsf>