From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 09:02:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B462B16A4B3 for ; Sun, 28 Sep 2003 09:02:08 -0700 (PDT) Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76C5343FF3 for ; Sun, 28 Sep 2003 09:02:07 -0700 (PDT) (envelope-from mbsd@pacbell.net) Received: from atlas (adsl-64-166-23-243.dsl.snfc21.pacbell.net [64.166.23.243])h8SG25w5001004; Sun, 28 Sep 2003 11:02:06 -0500 (CDT) Date: Sun, 28 Sep 2003 09:02:05 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@atlas.home To: Per olof Ljungmark In-Reply-To: <3F76C421.1000104@intersonic.se> Message-ID: <20030928084915.Q44010@atlas.home> References: <3F76B9B3.6030805@intersonic.se> <00f701c385ad$c9a18cb0$0201a8c0@dredster> <3F76C421.1000104@intersonic.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: how to get system information X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2003 16:02:08 -0000 On Sun, 28 Sep 2003, Per olof Ljungmark wrote: > >> > >>I am wondering how to find out system hardware information from a > >>running system, I know for instance pciconf(8) but what are the > >>corresponding ones for memory, cpu etc? > >> > > > > > > more /var/run/dmesg.boot to get the info at boot time. > > vmstat 5 5 will give you 5 items 5 sconds apart to show you procs, memory, > > page, disks, faults and cpu info. > > > > Thanks, that was a good start. Now, if I wanted to see more detailed > info on the processor than the dmesg.boot output: > > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > > Like cache size etc.? You should be able to get some cpu info with ports/sysutils/x86info. Dunno about memory (its physical configuration, that is). USB devices can be listed with "usbdevs", pci ones with "pciconf", ATA devices with "atacontrol", SCSI ones with "camcontrol", XFree prints lots of info on your graphics card into /var/run/XFree86.0.log. Also, some of the values detected at boot end up as sysctls (usually under "hw"). I know of no simple way to get complete hardware information on a silver platter, though. Nor do I really care :-) $.02, /Mikko