Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2003 15:30:45 -0700
From:      paul beard <paulbeard@mac.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to get system information
Message-ID:  <3F776115.9000102@mac.com>
In-Reply-To: <3F76C421.1000104@intersonic.se>
References:  <3F76B9B3.6030805@intersonic.se> <00f701c385ad$c9a18cb0$0201a8c0@dredster> <3F76C421.1000104@intersonic.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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 could try seeing what values are available through SNMP, if 
you're interested in dynamic values like memory usage, CPU usage, 
disk usage, etc. Manufacturing details on the CPU won't change 
between reboots, but there should be other ways to find that out.

dmesg.boot gives me all this data, some of which might be useful 
for what you're after.

CPU: Pentium II/Pentium II Xeon/Celeron (233.29-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x634  Stepping = 4
 
Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>

-- 
Paul Beard
<http://paulbeard.no-ip.org/movabletype/>;
whois -h whois.networksolutions.com ha=pb202

A university is what a college becomes when the faculty loses interest
in students.
		-- John Ciardi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F776115.9000102>