Obtaining Hardware Specifications from a Solaris server
Posted by superuser
Here you can find is a list of useful unix-shell commands in order to obtain all the required hardware specifications from your Solaris machine. They should work for all platforms (SPARC, UltraSparc, i386, amd64, ... ) although have been tested only on *SPARCs. I use them often, so exposing them here is a way to remember them. Please check the example's output to see what kind of indormations are included in any case.
The most common command but with poor output:
$ uname -a
SunOS myhost.lan 5.9 Generic_118118-05 sun4u sparc SUNW,Sun-Fire-V210
Hard Disk Specifications:
$ iostat -EAn alternative is the
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: FUJITSU Product: xxTxN SUN72G Revision: x6x2 Serial No: 0xx9Bx1xEP Size: 73.40GB <73400057856 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: FUJITSU Product: xxTxN SUN72G Revision: 0x2x Serial No: 0x0xx0xFxK Size: 73.40GB <73400057856 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 st11 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: QUANTUM Product: xxTx8xx0 Revision: xx50 Serial No: P
$ formatcommand which provides hard disk infos but root permissions are requested.
A good command with complete peripherals references:
$ prtconf
System Configuration: Sun Microsystems sun4u Memory size: 2048 Megabytes System Peripherals (Software Nodes): SUNW,Sun-Fire-V240 packages (driver not attached) SUNW,builtin-drivers (driver not attached) deblocker (driver not attached) disk-label (driver not attached) terminal-emulator (driver not attached) dropins (driver not attached) kbd-translator (driver not attached) obp-tftp (driver not attached) SUNW,i2c-ram-device (driver not attached) SUNW,fru-device (driver not attached) SUNW,asr (driver not attached) ufs-file-system (driver not attached) chosen (driver not attached) openprom (driver not attached) client-services (driver not attached) options, instance #0 aliases (driver not attached) memory (driver not attached) virtual-memory (driver not attached) SUNW,UltraSPARC-IIIi (driver not attached) memory-controller, instance #0 SUNW,UltraSPARC-IIIi (driver not attached) memory-controller, instance #1 pci, instance #0 network, instance #0 network, instance #1 pci, instance #1 isa, instance #0 flashprom (driver not attached) rtc (driver not attached) i2c, instance #0 i2c-bridge (driver not attached) i2c-bridge (driver not attached) motherboard-fru-prom, instance #0 chassis-fru-prom, instance #1 power-supply-fru-prom, instance #2 power-supply-fru-prom, instance #8 dimm-spd, instance #3 dimm-spd, instance #4 dimm-spd, instance #5 dimm-spd, instance #6 rscrtc (driver not attached) nvram, instance #7 idprom (driver not attached) gpio, instance #0 ..... gpio, instance #3 power, instance #0 serial, instance #0 serial, instance #1 rmc-comm, instance #0 pmu, instance #0 i2c, instance #0 gpio, instance #0 usb, instance #0 ide, instance #0 disk (driver not attached) cdrom (driver not attached) SUNW,qlc, instance #0 fp (driver not attached) disk (driver not attached) fp, instance #0 SUNW,qlc, instance #1 fp (driver not attached) disk (driver not attached) fp, instance #1 SUNW,qlc, instance #2 fp (driver not attached) disk (driver not attached) fp, instance #2 SUNW,qlc, instance #3 fp (driver not attached) disk (driver not attached) fp, instance #3 pci, instance #2 scsi, instance #0 disk (driver not attached) tape (driver not attached) sd, instance #0 sd, instance #1 .............. st, instance #5 (driver not attached) st, instance #6 (driver not attached) scsi, instance #1 disk (driver not attached) tape (driver not attached) sd, instance #15 (driver not attached) sd, instance #16 (driver not attached) sd, instance #17 (driver not attached) ...... st, instance #11 st, instance #12 (driver not attached) st, instance #13 (driver not attached) pci, instance #3 network, instance #2 network, instance #3 pseudo, instance #0
I left the best for the end. This is a powerful scanning of your hardware system. Covers nearly everything. CPU, Processors, Memory, pci, Fan speed, temperature sensors, voltage sensors, led state, ...
$ /usr/platform/`uname -m`/sbin/prtdiag -v
System Configuration: Sun Microsystems sun4u Sun Fire V240 System clock frequency: 167 MHZ Memory size: 2GB ==================================== CPUs ==================================== E$ CPU CPU Temperature CPU Freq Size Implementation Mask Die Amb. Status Location --- -------- ---------- ------------------- ----- ---- ---- ------ -------- 0 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.3 - - online MB/P0 1 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.3 - - online MB/P1 ================================= IO Devices ================================= Bus Freq Slot + Name + Type MHz Status Path Model ---- ---- ---------- ---------------------------- -------------------- pci 66 MB pci108e,1648 (network) okay /pci@1f,700000/network@2 pci 66 MB pci108e,1648 (network) okay /pci@1f,700000/network@2,1 pci 33 MB isa/su (serial) okay /pci@1e,600000/isa@7/serial@0,3f8 pci 33 MB isa/su (serial) okay /pci@1e,600000/isa@7/serial@0,2e8 pci 33 MB pci10b9,5229 (ide) okay /pci@1e,600000/ide@d pci 33 PCI2 SUNW,qlc-pci1077,2312 (scsi-+ okay /pci@1e,600000/SUNW,qlc@2 pci 33 PCI2 SUNW,qlc-pci1077,2312 (scsi-+ okay /pci@1e,600000/SUNW,qlc@2,1 pci 33 PCI1 SUNW,qlc-pci1077,2312 (scsi-+ okay /pci@1e,600000/SUNW,qlc@3 pci 33 PCI1 SUNW,qlc-pci1077,2312 (scsi-+ okay /pci@1e,600000/SUNW,qlc@3,1 pci 66 MB scsi-pci1000,21 (scsi-2) okay /pci@1c,600000/scsi@2 pci 66 MB scsi-pci1000,21 (scsi-2) okay /pci@1c,600000/scsi@2,1 pci 66 MB pci108e,1648 (network) okay /pci@1d,700000/network@2 pci 66 MB pci108e,1648 (network) okay /pci@1d,700000/network@2,1 pci 33 7 isa/rmc-comm-rmc_comm (seria+ okay /pci@1e,600000/isa@7/rmc-comm@0,3e8 pci 33 10 pciclass,0c0310 (usb) okay /pci@1e,600000/usb@a ============================ Memory Configuration ============================ Segment Table: ----------------------------------------------------------------------- Base Address Size Interleave Factor Contains ----------------------------------------------------------------------- 0x0 1GB 1 BankIDs 0 0x1000000000 1GB 1 BankIDs 16 Bank Table: ----------------------------------------------------------- Physical Location ID ControllerID GroupID Size Interleave Way ----------------------------------------------------------- 0 0 0 1GB 0 16 1 0 1GB 0 Memory Module Groups: -------------------------------------------------- ControllerID GroupID Labels Status -------------------------------------------------- 0 0 MB/P0/B0/D0 0 0 MB/P0/B0/D1 1 0 MB/P1/B0/D0 1 0 MB/P1/B0/D1 ============================ Environmental Status ============================ Fan Speeds: --------------------------------------------- Location Sensor Status Speed --------------------------------------------- F0 RS okay 6818 rpm F1 RS okay 7031 rpm F2 RS okay 6958 rpm MB/P0/F0 RS okay 16875 rpm MB/P0/F1 RS okay 17307 rpm MB/P1/F0 RS okay 18243 rpm MB/P1/F1 RS okay 17307 rpm PS0 FF_FAN okay PS1 FF_FAN okay Temperature sensors: ----------------------------------------------------------------------------- Location Sensor Temperature Lo LoWarn HiWarn Hi Status ----------------------------------------------------------------------------- MB/P0 T_CORE 55C - - 84C 89C okay MB/P1 T_CORE 50C - - 84C 89C okay MB T_ENC 24C -3C 5C 40C 48C okay PS0 FF_OT - - - - - okay PS1 FF_OT - - - - - okay ---------------------------------------------------------------------- Current sensors: ---------------------------------------------------------------------- Location Sensor Current Lo LoWarn HiWarn Hi Status ---------------------------------------------------------------------- MB FF_SCSI - - - - - okay PS0 FF_OC - - - - - okay PS1 FF_OC - - - - - okay ------------------------------------------------------------------------ Voltage sensors: ------------------------------------------------------------------------ Location Sensor Voltage Lo LoWarn HiWarn Hi Status ------------------------------------------------------------------------ MB/P0 V_CORE 1.45V - 1.26V 1.54V - okay MB/P1 V_CORE 1.46V - 1.26V 1.54V - okay MB V_VTT 1.25V - 1.17V 1.43V - okay MB V_GBE_+2V5 2.51V - 2.25V 2.75V - okay MB V_GBE_CORE 1.21V - 1.08V 1.32V - okay MB V_VCCTM 2.53V - 2.25V 2.75V - okay MB V_+2V5 2.49V - 2.34V 2.86V - okay MB V_+1V5 1.51V - 1.35V 1.65V - okay MB/BAT V_BAT 2.97V - 2.70V - - okay PS0 P_PWR - - - - - okay --------------------- Keyswitch: --------------------- Location State --------------------- SYSCTRL NORMAL -------------------------------------------------- Led State: -------------------------------------------------- Location Led State Color -------------------------------------------------- MB ACT on green MB SERVICE off amber MB LOCATE off white PS0 ACT on green PS0 SERVICE off amber PS0 OK2RM off blue PS1 ACT on green PS1 SERVICE off amber PS1 OK2RM off blue HDD0 SERVICE off amber HDD0 OK2RM off blue HDD1 SERVICE off amber HDD1 OK2RM off blue HDD2 SERVICE off amber HDD2 OK2RM off blue HDD3 SERVICE off amber HDD3 OK2RM off blue =========================== FRU Operational Status =========================== ------------------------- Fru Operational Status: ------------------------- Location Status ------------------------- MB/SC okay PS0 okay HDD0 present HDD1 present PS1 okay ================================ HW Revisions ================================ ASIC Revisions: ------------------------------------------------------------------- Path Device Status Revision ------------------------------------------------------------------- /pci@1f,700000 pci108e,a801 okay 4 /pci@1e,600000 pci108e,a801 okay 4 /pci@1c,600000 pci108e,a801 okay 4 /pci@1d,700000 pci108e,a801 okay 4 System PROM revisions: ---------------------- OBP 4.16.2 2004/10/04 18:22 Sun Fire V210/V240,Netra 240 OBDIAG 4.16.2 2004/10/04 18:23






Really useful commands, indeed. Let me add some more that I've been using from time to time:
- vmstat: report virtual memory statistics
- mpstat: report per-processor or per-processor-set statistics
- modinfo: display information about loaded kernel modules
- isainfo: describe instruction set architectures
I guess you can find out about all the Solaris sysadmin commands on http://www.sun.com/bigadmin/shellme/
thank you pano. Great commands, and this link is really useful!