From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 5 16:15:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 080EB16A4CF for ; Fri, 5 Nov 2004 16:15:19 +0000 (GMT) Received: from coruscant.rfc1149.org (coruscant.rfc1149.org [217.160.130.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B67143D4C for ; Fri, 5 Nov 2004 16:15:18 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: by coruscant.rfc1149.org (Postfix, from userid 110) id 344333E98; Fri, 5 Nov 2004 17:15:17 +0100 (CET) Received: from kamino.rfc1149.org (kamino.rfc1149.org [2001:8d8:81:11::2]) by coruscant.rfc1149.org (Postfix) with ESMTP id 18E143D09; Fri, 5 Nov 2004 17:15:15 +0100 (CET) Received: by kamino.rfc1149.org (Postfix, from userid 1001) id C32B84088; Fri, 5 Nov 2004 17:15:13 +0100 (CET) To: "Dan Mahoney, System Admin" 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> From: Arne Schwabe Date: Fri, 05 Nov 2004 17:15:13 +0100 Message-ID: <864qk4e0ha.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on coruscant.rfc1149.org X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Level: cc: hackers@freebsd.org Subject: Re: Hardware Serial Numbers under FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 16:15:19 -0000 "Dan Mahoney, System Admin" 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