Gathering Solaris system information

A UNIX administrator may be asked to gather system information about his/her Solaris systems. Here are the commands used on a Solaris to gather various system information.

To find out the WWN of Fibre cards

 # prtpicl -v | grep wwn

PICL provides a method to publish platform-specific information for clients to access in a way that is not specific to the platform. The Solaris PICL framework provides information about the system configuration which it maintains in the PICL tree.

prtdiag command can be used to display the system configuration and diagnostics information. prtdiag command is in '/usr/platform/platform-name/sbin' directory.

To display the partion informatin of a Hard drive

 # prtvtoc /dev/rdsk/c0t0d0s2
# /usr/platform/sun4u/sbin/prtdiag
System Configuration:  Sun Microsystems  sun4u Sun (TM) Enterprise 250 (2 X UltraSPARC-II 400MHz)
System clock frequency: 100 MHz
Memory size: 512 Megabytes

========================= CPUs =========================

                    Run   Ecache   CPU    CPU
Brd  CPU   Module   MHz     MB    Impl.   Mask
---  ---  -------  -----  ------  ------  ----
SYS     0     0      400     2.0   US-II    10.0
SYS     1     1      400     2.0   US-II    10.0


========================= Memory =========================

       Interlv.  Socket   Size
Bank    Group     Name    (MB)  Status
----    -----    ------   ----  ------
  0      none     U0701   128      OK
  0      none     U0801   128      OK
  0      none     U0901   128      OK
  0      none     U1001   128      OK


========================= IO Cards =========================

     Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
SYS  PCI     33     3  pciclass,068000
SYS  PCI     33     3  pciclass,020000                   SUNW,pci-qfe
SYS  PCI     33     3  pciclass,068000
SYS  PCI     33     3  pciclass,020000                   SUNW,pci-qfe
SYS  PCI     33     3  pciclass,068000
SYS  PCI     33     3  pciclass,020000                   SUNW,pci-qfe
SYS  PCI     33     3  pciclass,068000
SYS  PCI     33     3  pciclass,020000                   SUNW,pci-qfe

No failures found in System 
===========================

Processors details:

The psrinfo utility displays processor information. When run in verbose mode, it lists the speed of each processor and when the processor was last placed on-line (generally the time the system was started unless it was manually taken off-line).

 /usr/sbin/psrinfo -v 
 Status of processor 1 as of: 12/12/02 09:25:50
   Processor has been on-line since 11/17/02 21:10:09.
   The sparcv9 processor operates at 400 MHz,
        and has a sparcv9 floating point processor.
 Status of processor 3 as of: 12/12/02 09:25:50
   Processor has been on-line since 11/17/02 21:10:11.
   The sparcv9 processor operates at 400 MHz,
        and has a sparcv9 floating point processor.

The psradm utility can enable or disable a specific processor

To disable a processor:

     /usr/sbin/psradm -f processor_id

To enable a processor:

     /usr/sbin/psradm -n processor_id

The psrinfo utility will display the processor_id when run in either standard or verbose mode.

Memory details:

prtconf utility will display the system configuration, including the amount of physical memory.

  /usr/sbin/prtconf | grep Memory
  Memory size: 4096 Megabytes

Processor and kernel bits

Determine bits of processor:

 # isainfo -bv
 64-bit sparcv9 applications

Determine bits of Solaris kernel:

 # isainfo -kv
 64-bit sparcv9 kernel modules

Network Cards


To find out the network cards available on the system

 # grep -i /etc/network path_to_inst
 "/pci@8,600000/network@1" 0 "ge"
 "/pci@9,700000/network@1,1" 0 "eri"
 "/pci@9,600000/pci@1/network@0" 0 "ce"
 "/pci@9,600000/pci@1/network@1" 1 "ce"

We can also run the following command

 cat /etc/path_to_inst | egrep -i 'eri|ge|ce|qfe|hme'
 "/pci@8,600000/network@1" 0 "ge"
 "/pci@9,700000/ebus@1/serial@1,400000" 0 "se"
 "/pci@9,700000/network@1,1" 0 "eri"
 "/pci@9,600000/pci@1/network@0" 0 "ce"
 "/pci@9,600000/pci@1/network@1" 1 "ce"

"prtdiag" command lists all the add-on network cards available on the system.


To get the serial number and modle number of drives

 # iostat -En

 if Veritas Volume Manager installed, then try 

 # /usr/lib/vxvm/diag.d/vxdmpinq /dev/rdsk/cNtNdNs2

To find out the pagesize value

 # pagesize
 4096

http://www.science.uva.nl/pub/solaris/solaris2/
http://www.brandonhutchinson.com/
http://www.samag.com/topics/os/solaris/
http://cspry.co.uk/table_of_contents.html