Friday, August 03, 2007

Getting detailed system information on Solaris

Getting detailed system information on Solaris; tools.

Getting detailed memory usage information:

# TERM=vt100; export TERM
# /usr/bin/mdb -k
Loading modules: [ unix genunix specfs dtrace uppc pcplusmp scsi_vhci ufs ip hook neti sctp arp usba uhci qlc fctl nca lofs zfs random md cpc fcip crypto fcp logindmux ptm sppp nfs emlxs ]
> ::memstat
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 440220 1719 85%
Anon 37669 147 7%
Exec and libs 9736 38 2%
Page cache 10625 41 2%
Free (cachelist) 14809 57 3%
Free (freelist) 6747 26 1%

Total 519806 2030
Physical 519805 2030

::kmastat
..... output ....
# /usr/bin/vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr cd cd cd s0 in sy cs us sy id
0 0 0 6031912 132516 0 4 0 0 0 0 1 0 11 11 -4 548 283 349 0 1 99
# /opt/csw/bin/top -o size | head -10
last pid: 10375; load avg: 0.02, 0.03, 0.02; up 10+06:56:00 19:27:30
73 processes: 72 sleeping, 1 on cpu

Memory: 2038M phys mem, 91M free mem, 6001M swap, 6001M free swap

PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
688 root 1 59 0 278M 18M sleep 3:28 0.00% Xorg
778 noaccess 25 59 0 80M 57M sleep 8:06 0.00% java
531 root 16 59 0 12M 8880K sleep 0:06 0.00% fmd
789 root 1 59 0 11M 7448K sleep 2:04 0.00% dtgreet
(top was installed from blastwave)

Hardware information:
  • dmesg(1M) - collect system diagnostic messages to form error log (also contains valuable information)

  • arch(1) - display the architecture of the current host
# /usr/bin/arch -k
i86pc

  • psrinfo(1M) - displays information about processors
# /usr/sbin/psrinfo -v
Status of virtual processor 0 as of: 08/03/2007 18:50:37
on-line since 07/24/2007 12:31:43.
The i386 processor operates at 3392 MHz,
and has an i387 compatible floating point processor.
Status of virtual processor 1 as of: 08/03/2007 18:50:37
on-line since 07/24/2007 12:31:58.
The i386 processor operates at 3392 MHz,
and has an i387 compatible floating point processor.

  • isainfo(1) - describe instruction set architectures
# /usr/bin/isainfo -v
64-bit amd64 applications
cx16 mon sse3 pause sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
ahf cx16 mon sse3 pause sse2 sse fxsr mmx cmov sep cx8 tsc fpu
  • prtdiag(1M) - display system diagnostic information
# /usr/sbin/prtdiag -v
System Configuration: FUJITSU SIEMENS CELSIUS M / W
BIOS Configuration: FUJITSU SIEMENS // Phoenix Technologies Ltd. 5.00 R1.10.2156.A1 05/08/2006

==== Processor Sockets ====================================

Version Location Tag
-------------------------------- --------------------------
Intel(R) Pentium(R) 4 CPU CPU

==== Memory Device Sockets ================================

Type Status Set Device Locator Bank Locator
------- ------ --- ------------------- --------------------
DDR2 in use 0 Slot-1 Channel A
DDR2 in use 0 Slot-3 Channel A
DDR2 in use 0 Slot-2 Channel B
DDR2 in use 0 Slot-4 Channel B

==== On-Board Devices =====================================
SMsC SuperI/O
Realtek ALC260
Intel 945G
Heimdall
BCM5751

==== Upgradeable Slots ====================================

ID Status Type Description
--- --------- ---------------- ----------------------------
1 available PCI Express PCI-Express x16
3 available PCI Express PCI-Express-1 x1
2 available PCI Express PCI-Express-2 x1
4 available PCI PCI-1
5 in use PCI PCI-2
6 available PCI PCI-3
7 available PCI PCI-4


  • prtconf(1M) - print system configuration. Use -v for verbose (expect over 2000 lines).
# /usr/sbin/prtconf
System Configuration: Sun Microsystems i86pc
Memory size: 2039 Megabytes
System Peripherals (Software Nodes):

i86pc
scsi_vhci, instance #0
isa, instance #0
motherboard (driver not attached)
fdc (driver not attached)
lp (driver not attached)
asy, instance #0
pci, instance #0
pci1734,1084 (driver not attached)
display, instance #1
pci8086,27d0, instance #1
pci8086,27d2, instance #5
pci1734,1096, instance #2
pci8086,27d4, instance #2
pci8086,27d6, instance #3
pci1734,1085, instance #4
pci1734,1085, instance #5
pci1734,1085, instance #6
pci1734,1085, instance #7
pci1734,1085, instance #1
pci8086,244e, instance #0
pci10b8,b452 (driver not attached)
pci1734,1085 (driver not attached)
pci-ide, instance #0
ide, instance #0
sd, instance #0
ide (driver not attached)
pci-ide, instance #1
ide, instance #2
cmdk, instance #0
cmdk, instance #1
ide, instance #3
cmdk, instance #3
pci1734,1085 (driver not attached)
pci, instance #0
iscsi, instance #0
pseudo, instance #0
options, instance #0
agpgart, instance #0
xsvc, instance #1
used-resources (driver not attached)
cpus (driver not attached)
cpu, instance #0 (driver not attached)
cpu, instance #1 (driver not attached)
Disks

  • format(1M) - disk partitioning and maintenance utility
# /usr/sbin/format < /dev/null Searching for disks...done c3t0100003005CC77CE00002A004680C8B4d0: configured with capacity of 1024.00GB c3t0100003005CC77CE00002A004680C91Ad0: configured with capacity of 1024.00GB c3t0100003005CC77CE00002A004680CA6Ad0: configured with capacity of 1024.00GB c3t0100003005CC77CE00002A004680CA6Bd0: configured with capacity of 1024.00GB AVAILABLE DISK SELECTIONS: 0. c1d0
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
1. c1d1
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@1,0
2. c2d1
/pci@0,0/pci-ide@1f,2/ide@1/cmdk@1,0
3. c3t0100003005CC77CE00002A004680C8B4d0
/scsi_vhci/disk@g0100003005cc77ce00002a004680c8b4
4. c3t0100003005CC77CE00002A004680C91Ad0
/scsi_vhci/disk@g0100003005cc77ce00002a004680c91a
5. c3t0100003005CC77CE00002A004680CA6Ad0
/scsi_vhci/disk@g0100003005cc77ce00002a004680ca6a
6. c3t0100003005CC77CE00002A004680CA6Bd0
/scsi_vhci/disk@g0100003005cc77ce00002a004680ca6b

Specify disk (enter its number):


  • iostat(1M) - report I/O statistics
# /usr/bin/iostat -En
c1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: WDC WD2000JD-22 Revision: Serial No: WD-WCAMT10 Size: 200.05GB <200047067136>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c1d1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: WDC WD5000KS-00 Revision: Serial No: WD-WMANU15 Size: 500.10GB <500101152768>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c2d1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: WDC WD5000KS-00 Revision: Serial No: WD-WMANU15 Size: 500.10GB <500101152768>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c0t0d0 Soft Errors: 1 Hard Errors: 264 Transport Errors: 0
Vendor: _NEC Product: DVD_RW ND-4550A Revision: 1.85 Serial No:
Size: 0.00GB <0>
Media Error: 0 Device Not Ready: 264 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c3t0100003005CC77CE00002A004680CA6Bd0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: SUN Product: SOLARIS Revision: 1 Serial No:
Size: 1099.51GB <1099511627776>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c3t0100003005CC77CE00002A004680C91Ad0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: SUN Product: SOLARIS Revision: 1 Serial No:
Size: 1099.51GB <1099511627776>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c3t0100003005CC77CE00002A004680CA6Dd0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: SUN Product: SOLARIS Revision: 1 Serial No:
Size: 1099.51GB <1099511627776>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c3t0100003005CC77CE00002A004680CA92d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: SUN Product: SOLARIS Revision: 1 Serial No:
Size: 1099.51GB <1099511627776>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
c3t0100003005CC77CE00002A004680C8B4d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0



USB and Removable Devices:

  • cfgadm(1M) - configuration administration
# /usr/sbin/cfgadm -al
Ap_Id Type Receptacle Occupant Condition
usb5/1 unknown empty unconfigured ok
usb5/2 unknown empty unconfigured ok
usb6/1 unknown empty unconfigured ok
usb6/2 unknown empty unconfigured ok
usb7/1 unknown empty unconfigured ok
usb7/2 unknown empty unconfigured ok
usb8/1 unknown empty unconfigured ok
usb8/2 unknown empty unconfigured ok
usb9/1 unknown empty unconfigured ok
usb9/2 unknown empty unconfigured ok
usb9/3 unknown empty unconfigured ok
usb9/4 unknown empty unconfigured ok
usb9/5 unknown empty unconfigured ok
usb9/6 unknown empty unconfigured ok
usb9/7 unknown empty unconfigured ok
usb9/8 unknown empty unconfigured ok


  • rmformat(1) - removable rewritable media format utility


# /usr/bin/rmformat
Looking for devices...
1. Logical Node: /dev/rdsk/c0t0d0p0
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: _NEC DVD_RW ND-4550A 1.85
Device Type: DVD Reader/Writer
Bus: IDE
Size:
Label:
Access permissions:



System information:

  • kstat(1M) - display kernel statistics

# /usr/bin/kstat | head -10
module: agpgart instance: 0
name: agpinfo class: agp
agp_enabled no
agp_mode_set 0
aper_base 0
aper_size 0
aper_used 0
arc_type UNKNOWN
crtime 66.384729768
master_dev_id 0

  • sysdef(1M) - output system definition
# /usr/sbin/sysdef
*
* Hostid
*
2ed6b4f4
*
* i86pc Configuration
*
*
* Devices
*
scsi_vhci, instance #0
disk, instance #3
disk, instance #4
disk, instance #5
disk, instance #6
disk, instance #7
disk, instance #8
isa, instance #0
motherboard (driver not attached)
fdc (driver not attached)
lp (driver not attached)
asy, instance #0
pci, instance #0
............................ (1000 more lines to follow).......................

  • cat /etc/release - print release information
  • uname(1) - print name of current system
# /usr/bin/uname -a
SunOS solfs 5.11 snv_61 i86pc i386 i86pc

  • showrev(1M) - show machine, software revision, and patch revision information
# /usr/bin/showrev -p
Patch: 124939-03 Obsoletes: Requires: Incompatibles: Packages: SUNWjdmk-base
Patch: 125275-01 Obsoletes: Requires: Incompatibles: Packages: SUNWjdmk-base
Patch: 120186-10 Obsoletes: Requires: Incompatibles: Packages: SUNWstaroffice-core07, SUNWstaroffice-core08, SUNWstaroffice-writer, SUNWstaroffice-lngutils, SUNWstaroffice-javafilter, SUNWstaroffice-draw, SUNWstaroffice-fonts, SUNWstaroffice-gallery, SUNWstaroffice-math, SUNWstaroffice-xsltfilter, SUNWstaroffice-core01, SUNWstaroffice-ooofonts, SUNWstaroffice-calc, SUNWstaroffice-core02, SUNWstaroffice-core03, SUNWstaroffice-agfafonts, SUNWstaroffice-base, SUNWstaroffice-core04, SUNWstaroffice-core05, SUNWstaroffice-gnome-integration, SUNWstaroffice-graphicfilter, SUNWstaroffice-impress, SUNWstaroffice-core06, SUNWstaroffice-core09
Patch: 118669-11 Obsoletes: Requires: Incompatibles: Packages: SUNWj5dvx, SUNWj5dmx, SUNWj5rtx
Patch: 118668-11 Obsoletes: Requires: Incompatibles: Packages: SUNWj5man, SUNWj5dev, SUNWj5rt, SUNWj5cfg, SUNWj5dmo
Patch: 116299-08 Obsoletes: Requires: Incompatibles: Packages: SUNWxsrt, SUNWxrgrt, SUNWxrpcrt, SUNWjaxp
Patch: 116303-02 Obsoletes: Requires: Incompatibles: Packages: SUNWxrpcrt


Network information:
  • dladm(1M) - administer data links
# /usr/sbin/dladm show-dev && /usr/sbin/dladm show-link
bge2 link: up speed: 1000Mb duplex: full
bge2 type: non-vlan mtu: 1500 device: bge2
  • ifconfig(1M) - configure network interface parameters
# /usr/sbin/ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge2: flags=201000843 mtu 1500 index 2
inet 192.168.0.66 netmask ffff0000 broadcast 192.168.255.255
ether de:ad:ca:fe:ba:be

Other cool tools:

intrstat(1M), vmstat(1M), mpstat(1M), prstat(1M), "zpool iostat" or
/usr/X11/bin/scanpci to print installed PCI cards.


0 comments: