prtdiag and prtconf are extremely useful commands to quickly learn about RAM, CPU and other components in the system (okay, must be others, like psrinfo , but I use these two quite often).
I have been throughout 2-3 acquisitions in my career so far, and making inventory is always inevitable and I know it's so painful making sure all information is updated, like hostname, IP, services and role of machines, hardware characteristics, etc (painful since it's taking so many time :)Command | SPARC - examples from SF V120 | X86 - example from SF x4200 |
prtconf |grep Mem | Memory size: 1024 Megabytes | Memory size: 12160 Megabytes |
prtconf -v (display PROM or booting system version info) | OBP 4.0.17 2003/10/06 17:10 | DevConf 2.0 |
Command | SPARC - examples from SF V120 | X86 - example from SF x4200 |
prtdiag | head |
System Configuration: Sun Microsystems sun4u Sun Fire V120 (UltraSPARC-IIe 648MHz) System clock frequency: 100 MHz Memory size: 1024 Megabytes |
System Configuration: Sun Microsystems Sun Fire X4200 Server BIOS Configuration: American Megatrends Inc. 080010 09/27/2007 BMC Configuration: IPMI 2.0 (KCS: Keyboard Controller Style) |
prtdiag -v | Shows total size of RAM and size per bank | Interestingly doesn't show total size of RAM or size per bank, but shows memory type, if bank in use. |
Shows nice output about CPU (number, frequency, status, implementation and location) | Shows much less CPU info then SPARC (shame that command doesn't even show CPU frequency) | |
PCI-X info is similar | PCI-X info is similar | |
Shows info about fan and temperature sensors | Nothing of this | |
Shows Power Supply info and voltage info | Doesn't show power supply info |
If you need only information about processors use psrinfo -v , but this doesn't give you CPU Implementation like UltraSPARC-IIIi (use "prtdiag" for this).
If you cannot find 'prtdiag', expecially on Solaris 8, look here: /usr/platform/`uname -i`/sbin
Back to the main page