From owner-freebsd-hackers Tue Dec 1 13:37:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA20019 for freebsd-hackers-outgoing; Tue, 1 Dec 1998 13:37:51 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA20012 for ; Tue, 1 Dec 1998 13:37:48 -0800 (PST) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.9.1/8.9.1) id NAA08132; Tue, 1 Dec 1998 13:36:57 -0800 (PST) (envelope-from dhw) Date: Tue, 1 Dec 1998 13:36:57 -0800 (PST) From: David Wolfskill Message-Id: <199812012136.NAA08132@pau-amma.whistle.com> To: freebsd-hackers@FreeBSD.ORG, wang@tdiinc.com Subject: Re: how to get hardware info In-Reply-To: <36644F7D.7101F716@tdiinc.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Tue, 01 Dec 1998 12:20:14 -0800 >From: Xiangzhou wang >Is anyone know how to write a program to collect hardware info on a >running freeBSD system, like disk, CPU etc. I sympathize with the question. I've been sysadmin for a few other systems, for which sysinfo proved quite handy. Unfortunately, I couldn't figure out how to get at the information that sysinfo reports for FreeBSD, so I could port sysinfo to FreeBSD, and thus just use the same tool on each of the systems I administer to get a fairly consistent report of the system configuration. Someone else suggested the "dmesg" program (and, quite correctly, mentioned that it's available on several other flavors of UNIX). One thing that wasn't apparent to me until someone pointed it out to me is that by default, reasonably current FreeBSD systems write the output of "dmesg" just after boot time to /var/run/dmesg.boot. It may well be easier or more useful for you to be able to examine a file, rather than the output of a process. david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message