Linux/Solaris CPU and Memory Info
Hi,
Does anyone know if there is a tool out there that can display (in a shell) the processor speed, number of CPUs, processor type, and amount of RAM installed on the system? I am looking for something that does this in both Linux and Solaris...it doesn't have to be the same tool, but that would obviously be helpful. I'm not looking for anything detailed, just a simple
(2) AMD Athlon(TM) MP 2000+
1253.012 Mhz
896 MB
If there isn't anything like this, any ideas on how I can program it myself? I would prefer not to have to parse through the /proc/cpuinfo and /proc/meminfo files (and their Solaris equivalents). Also, I'd like to do this in either PHP, a shell script, or C++ (but I'll take it in Java if you're awesome enough to code it all for me). Trying to shoot for some platform independance here...
|