Activity

  • hipo posted an update 10 years, 11 months ago

    How to check system hardware on a Sun OS server?


    prtdiag

    System Configuration: Sun Microsystems sun4u Sun Fire V490
    System clock frequency: 150 MHz
    Memory size: 8192 Megabytes
    ========================= CPUs ===============================================
    Run E$ CPU CPU
    Brd CPU MHz MB Impl. Mask
    — —– —- —- ——- —-
    A 0, 16 1500 32.0 US-IV+ 2.2
    A 2, 18 1500 32.0 US-IV+ 2.2
    ========================= Memory Configuration ===============================
    Logical Logical Logical
    MC Bank Bank Bank DIMM Interleave Interleaved
    Brd ID num size Status Size Factor with
    — — —- —— ———– —— ———- ———–
    A 0 0 1024MB no_status 512MB 8-way 0
    A 0 1 1024MB no_status 512MB 8-way 0
    A 0 2 1024MB no_status 512MB 8-way 0
    A 0 3 1024MB no_status 512MB 8-way 0
    A 2 0 1024MB no_status 512MB 8-way 0
    A 2 1 1024MB no_status 512MB 8-way 0
    A 2 2 1024MB no_status 512MB 8-way 0
    A 2 3 1024MB no_status 512MB 8-way 0
    ========================= IO Cards =========================
    Bus Max
    IO Port Bus Freq Bus Dev,
    Type ID Side Slot MHz Freq Func State Name Model
    —- —- —- —- —- —- —- —– ——————————– ———————-
    PCI 8 A 0 66 66 1,0 ok pci-pci8086,537c.7/network (netw+ PCI-BRIDGE
    PCI 8 A 0 66 66 0,0 ok network-pci100b,35.30 SUNW,pci-x-qge/pci-bri+
    PCI 8 A 0 66 66 1,0 ok network-pci100b,35.30 SUNW,pci-x-qge/pci-bri+
    PCI 8 A 0 66 66 2,0 ok network-pci100b,35.30 SUNW,pci-x-qge/pci-bri+
    PCI 8 A 0 66 66 3,0 ok network-pci100b,35.30 SUNW,pci-x-qge/pci-bri+

    To get even more verbose info on Sun OS hardware

    try

    prtdiag -v | more

    • psrinfo in Sun OS shows info about installed onboard processors:

      # psrinfo

      0 on-line since 03/18/2012 02:03:17
      2 on-line since 03/18/2012 02:03:17
      16 on-line since 03/18/2012 02:03:17
      18 on-line since 03/18/2012 02:03:17

    • To get kernel parameters on Sun / Solaris (like sysctl -a on Linux / BSD):

      getconf -a

      To get all devices installed and existing on Sun OS

      sysdef

    • modinfo command on Sun OS is like Linux’s lsmod / BSD kldstat, and modload is like Linux’s modprobe

    • FreeBSD’s netstat -rn (list routing table info) equivalent under Sun OS is netstat -ri

    • Linux’s tcpdump equivalent on Sun OS is snoop

    • pkgchk -l -p /usr/sbin/ping
      Pathname: /usr/sbin/ping
      Type: regular file
      Expected mode: 4511
      Expected owner: root
      Expected group: bin
      Expected file size (bytes): 47932
      Expected sum(1) of contents: 20791
      Expected last modification: Sep 30 22:37:21 2004
      Referenced by the following packages:
      SUNWbip
      Current status: installed

    • Sun OS / Solaris equivalent of Linux’s:

      cat /etc/issue

      is
      # cat /etc/release

      Solaris 9 9/05 s9s_u8wos_05 SPARC
      Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
      Use is subject to license terms.
      Assembled 04 August 2005

    • Sun OS equivalent to Linux’s strace trace system process calls is truss

    • Sun OS / Solaris equivalent to Linux’s
      free -m

      is

      vmstat 1 2

      kthr memory page disk faults cpu
      r b w swap free re mf pi po fr de sr m1 m1 m1 m2 in sy cs us sy id
      0 0 0 13367576 5693088 228 185 8 11 10 0 0 0 0 0 0 418 462 340 33 3 64
      0 0 0 13070920 5463592 0 6 0 0 0 0 0 0 0 0 0 418 793 764 25 0 75

PC Knowledge sharetank

Skip to toolbar