Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018
 
 

Displaying System Information

This section describes commands that enable you to display general system information.

Commands That Are Used to Display System Information

Table 1  Commands for Displaying System Information
Command
System Information Displayed
Man Page
date
Date and time.
hostid
Host ID number.
isainfo
Identifies various attributes of the instruction set architectures supported on the currently running system. Examples of questions that isainfo can answer include whether 64-bit applications are supported, or whether the running kernel uses 32-bit or 64-bit device drivers.
prtconf
System configuration information, installed memory, device properties, and product name.
prtdiag
System configuration and diagnostic information, including any failed field replacement units (FRUs).
psrinfo
Processor information.
uname
Operating system name, release, version, node name, hardware name, and processor type.

Displaying Release Information

You can use the following command to display the contents of the /etc/release file, which helps in identifying your release version.

$ cat /etc/release

Displaying Date and Time

You can use the date command to display the current date and time according to your system clock.

$ date
Fri Jun  1 16:07:44 MDT 2012
$

Displaying Host ID Number

You can use the hostid command to display the host ID number in a numeric (hexadecimal) format.

$ hostid
80a5d34c

Displaying Architecture Type

You can use the isainfo command to display the architecture type and names of the native instruction sets, for applications that are supported by the current operating system.

The following sample output is from an x86 based system:

$ isainfo
amd64 i386

The following sample output is from a SPARC based system:

$ isainfo
sparcv9 sparc

The isainfo –v command displays 32-bit and 64-bit application support. For example, the following sample output is from a SPARC based system:

$ isainfo -v
64-bit sparcv9 applications
        asi_blk_init
32-bit sparc applications
        asi_blk_init v8plus div32 mul32
#

The following example shows the output of the isainfo –v command from an x86 based system:

$ isainfo -v
64-bit amd64 applications
        sse4.1 ssse3 ahf cx16 sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        sse4.1 ssse3 ahf cx16 sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu

For more information, see the isainfo(1) man page.

Displaying Processor Type

You can use the isainfo –x command to display information about the processor of a system. The following sample output is from an x86 based system:

$ isainfo -x
amd64: avx xsave pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3\
       sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
i386: avx xsave pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 sse3\
       sse2 sse fxsr mmx cmov sep cx8 tsc fpu

The following sample output is from a SPARC based system:

$ isainfo -x
sparcv9: ima fmaf vis2 vis popc
sparc: ima fmaf vis2 vis popc v8plus div32 mul32

For more information, see the isainfo(1) man page.

Displaying Product Name

You can display the product name of your system using the prtconf command with the –b option:

$ prtconf -b

For more information, see the prtconf(8) man page.

The following example shows sample output from the prtconf –b command on a SPARC based system:

$ /usr/sbin/prtconf -b
name:  ORCL,SPARC-T7-2
banner-name:  SPARC T7-2
compatible: 'sun4v'

The following example shows sample output from the prtconf –vb command on a SPARC based system. The added –v option specifies verbose output.

$ /usr/sbin/prtconf -vb
name:  ORCL,SPARC-T7-2
banner-name:  SPARC T7-2
compatible: 'sun4v'
idprom:  01860010.e09a6650.00000000.9a665077.00000000.00000000.00000000.00000000
openprom model:  SUNW,4.38.2
openprom version: 'OBP 4.38.2 2015/10/30 13:09'

Displaying Installed Memory

You can display the amount of memory that is installed on your system using the prtconf command with the grep Memory command. The following example shows a sample output, where the grep Memory command selects output from the prtconf command to display memory information only:

$ prtconf | grep Memory
Memory size: 523776 Megabytes 

Displaying Default and Customized Property Values for a Device

You can use the prtconf –u command to display the default and customized property values for devices.

$ prtconf -u

The output of the prtconf –u command displays the default and customized properties for all of the drivers that are installed on the system.

For more information about this option, see the prtconf(8) man page.

Example 1  SPARC: Displaying Default and Custom Device Properties

This example shows the default and custom properties for the bge.conf file. Note that vendor-provided configuration files are located in the /kernel and /platform directories, while the corresponding modified driver configuration files are located in the /etc/driver/drv directory.

$ /usr/sbin/prtconf -u
System Configuration:Oracle Corporation sun4v
Memory size: 40960 Megabytes
System Peripherals(Software Nodes):

ORCL,SPARC-T7-2
  scsi_vhci, instance #0
     disk, instance #6
     disk, instance #7
  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)
    SUNW,asr(driver not attached)
     kbd-translator (driver not attached)
    obp-tftp(driver not attached)
     vdisk-helper-pkg (driver not attached)
     vnet-helper-pkg (driver not attached)
     zfs-file-system (driver not attached)
     hsfs-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)
   iscsi-hba(driver not attached)
     disk (driver not attached)
    reboot-memory(driver not attached)
   virtual-devices, instance #0
     flashprom (driver not attached)
      random-number-generator, instance #0
      dax, instance #0
     console, instance #0
      channel-devices, instance #0
          virtual-channel, instance #0
          virtual-channel, instance #3
          virtual-console-concentrator, instance #0
          virtual-network-switch, instance #0
          virtual-disk-server, instance #0
          virtual-disk-server, instance #1
          virtual-channel-client, instance #1
          virtual-channel-client, instance #2
          pciv-communication, instance #0
          virtual-domain-service, instance #0
    cpu (driver not attached)
    cpu (driver not attached)
    cpu (driver not attached)
     cpu (driver not attached)
     cpu (driver not attached)  
Example 2  x86: Displaying Default and Custom Device Properties

This example shows the default and custom properties for the bge.conf file. Note that vendor-provided configuration files are located in the /kernel and /platform directories, while the corresponding modified driver configuration files are located in the /etc/driver/drv directory.

$ /usr/sbin/prtconf -u
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
    scsi_vhci, instance #0
    pci, instance #0
        pci10de,5e (driver not attached)
        isa, instance #0
            asy, instance #0
            motherboard (driver not attached)
            pit_beep, instance #0
        pci10de,cb84 (driver not attached)
        pci108e,cb84, instance #0
            device, instance #0
                keyboard, instance #0
                mouse, instance #1
        pci108e,cb84, instance #0
        pci-ide, instance #0
            ide, instance #0
                sd, instance #0
            ide (driver not attached)
        pci10de,5c, instance #0
            display, instance #0
        pci10de,cb84, instance #0
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci1022,1100, instance #0
        pci1022,1101, instance #1
        pci1022,1102, instance #2
        pci1022,1103 (driver not attached)
        pci1022,1100, instance #3
        pci1022,1101, instance #4
        pci1022,1102, instance #5
        pci1022,1103 (driver not attached)
    pci, instance #1
        pci10de,5e (driver not attached)
        pci10de,cb84 (driver not attached)
        pci10de,cb84, instance #1
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci10de,5d (driver not attached)
        pci1022,7458, instance #1
        pci1022,7459 (driver not attached)
        pci1022,7458, instance #2
            pci8086,1011, instance #0
            pci8086,1011, instance #1
            pci1000,3060, instance #0
                sd, instance #1
                sd, instance #2
        pci1022,7459 (driver not attached)
    ioapics (driver not attached)
        ioapic, instance #0 (driver not attached)
        ioapic, instance #1 (driver not attached)
    fw, instance #0
        cpu (driver not attached)
        cpu (driver not attached)
        cpu (driver not attached)
        cpu (driver not attached)
        sb, instance #1
    used-resources (driver not attached)
    iscsi, instance #0
    fcoe, instance #0
    pseudo, instance #0
    options, instance #0
    xsvc, instance #0
    vga_arbiter, instance #0
Example 3  x86: Displaying System Configuration Information

This example shows how to use the prtconf command with the –v option on an x86 based system to identify which disk, tape, and DVD devices are connected to the system. The output of this command displays driver not attached messages next to the device instances for which no device exists.

$ /usr/sbin/prtconf -v | more
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
    System properties:
        name='#size-cells' type=int items=1
            value=00000002
        name='#address-cells' type=int items=1
            value=00000003
        name='relative-addressing' type=int items=1
            value=00000001
        name='MMU_PAGEOFFSET' type=int items=1
            value=00000fff
        name='MMU_PAGESIZE' type=int items=1
            value=00001000
        name='PAGESIZE' type=int items=1
            value=00001000
        name='acpi-status' type=int items=1
            value=00000013
        name='biosdev-0x81' type=byte items=588
            value=01.38.74.0e.08.1e.db.e4.fe.00.d0.ed.fe.f8.6b.04.08.d3.db.e4.fe
...

For more information, see the driver(5), driver.conf(5), and prtconf(8) man pages.

For instructions on how to create administratively provided configuration files, see Chapter 1, Managing Devices in Oracle Solaris in Managing Devices in Oracle Solaris 11.4.

Displaying System Diagnostic Information

You can use the prtdiag command to display configuration and diagnostic information for a system.

$ prtdiag [-v] [-l]
–v

Verbose mode.

–l

Log output. If failures or errors exist in the system, output this information to syslogd(8) only.

Example 4  SPARC: Displaying System Diagnostic Information

This example shows the output for the prtdiag –v command on a SPARC based system.

$ /usr/sbin/prtdiag -v | more
System Configuration:  Oracle Corporation  sun4v SPARC T7-2
Memory size: 40960 Megabytes

================================ Virtual CPUs ================================


CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      4133 MHz  SPARC-M7               on-line  
1      4133 MHz  SPARC-M7               on-line  
2      4133 MHz  SPARC-M7               on-line  
3      4133 MHz  SPARC-M7               on-line  
4      4133 MHz  SPARC-M7               on-line  
5      4133 MHz  SPARC-M7               on-line  
6      4133 MHz  SPARC-M7               on-line  
...
======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base               Segment  Interleave   Bank     Contains
Address            Size     Factor       Size     Modules
--------------------------------------------------------------
0x0                480 GB   0            480 GB   /SYS/MB/CM0/CMP/MR0/BOB0/CH0/DIMM
                                              /SYS/MB/CM0/CMP/MR0/BOB0/CH1/DIMM
                                              /SYS/MB/CM0/CMP/MR0/BOB1/CH0/DIMM
                                              /SYS/MB/CM0/CMP/MR0/BOB1/CH1/DIMM
                                              /SYS/MB/CM0/CMP/MR1/BOB0/CH0/DIMM
...
======================================== IO Devices =======================================
Slot +            Bus   Name +                            Model      Max Speed  Cur Speed 
Status            Type  Path                                         /Width     /Width    
-------------------------------------------------------------------------------------------
/SYS/MB/SASHBA0   PCIE  scsi-pciex1000,97                            8.0GT/x8   8.0GT/x8   
                        /pci@301/pci@1/scsi@0                       
...
============================ Environmental Status ============================
Fan sensors:
----------------------------------------------------------------
Location                           Sensor             Status    
----------------------------------------------------------------
SYS/FANBD/F0                       TACH               ok
SYS/FANBD/F1                       TACH               ok                                 
...
Example 5  x86: Displaying System Diagnostic Information

This example shows the output for the prtdiag –l command on an x86 based system.

$ /usr/sbin/prtdiag -l
System Configuration: ... Sun Fire X4100 M2
BIOS Configuration: American Megatrends Inc. 0ABJX104 04/09/2009
BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)

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

Version                          Location Tag
-------------------------------- --------------------------
Dual-Core AMD Opteron(tm) Processor 2220 CPU 1
Dual-Core AMD Opteron(tm) Processor 2220 CPU 2

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

Type        Status Set Device Locator      Bank Locator
----------- ------ --- ------------------- ----------------
unknown     empty  0   DIMM0                NODE0
unknown     empty  0   DIMM1                NODE0
DDR2        in use 0   DIMM2                NODE0
DDR2        in use 0   DIMM3                NODE0
unknown     empty  0   DIMM0                NODE1
unknown     empty  0   DIMM1                NODE1
DDR2        in use 0   DIMM2                NODE1
DDR2        in use 0   DIMM3                NODE1

==== On-Board Devices =====================================
 LSI serial-SCSI #1
 Gigabit Ethernet #1
 ATI Rage XL VGA

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

ID  Status    Type             Description
--- --------- ---------------- ----------------------------
1   available PCI Express      PCIExp SLOT0
2   available PCI Express      PCIExp SLOT1
3   available PCI-X            PCIX SLOT2
4   available PCI Express      PCIExp SLOT3
5   available PCI Express      PCIExp SLOT4
$

Chip Multithreading Features

The psrinfo command has been modified to provide information about physical processors in addition to information about virtual processors. This enhanced functionality has been added to identify chip multithreading (CMT) features. The –p option reports the total number of physical processors that are in a system. The –t option displays a tree of the processors of the system and their associated socket, core, and CPU IDs.

Using the psrinfo –pv command lists all the physical processors that are in the system as well as the virtual processors that are associated with each physical processor. The default output of the psrinfo command continues to display the virtual processor information for a system.

For more information, see the psrinfo(8) man page.

Displaying the Physical Processor Type of a System

You can use the psrinfo -p command to display the total number of physical processors on a system.

$ psrinfo -p
1

You can use the –-v option to display information about the virtual processor that is associated with each physical processor.

The following example shows sample output for the psrinfo –pv command on an x86 based system.

$ /usr/sbin/psrinfo -pv
The physical processor has 4 cores and 8 virtual processors (0-3,8-11)
  The core has 2 virtual processors (0,8)
  The core has 2 virtual processors (1,9)
  The core has 2 virtual processors (2,10)
  The core has 2 virtual processors (3,11)
    x86 (GenuineIntel 206C2 family 6 model 44 step 2 clock 2400 MHz)
      Intel(r) Xeon(r) CPU           E5620  @ 2.40GHz
The physical processor has 4 cores and 8 virtual processors (4-7,12-15)
  The core has 2 virtual processors (4,12)
  The core has 2 virtual processors (5,13)
  The core has 2 virtual processors (6,14)
  The core has 2 virtual processors (7,15)
    x86 (GenuineIntel 206C2 family 6 model 44 step 2 clock 2400 MHz)
      Intel(r) Xeon(r) CPU           E5620  @ 2.40GHz

Displaying the Virtual Processor Type of a System

You can use the –v option to display the virtual processor type on a SPARC-based system.

$ /usr/sbin/psrinfo -v

This example shows how to display information about a virtual processor type on a SPARC-based system.

$ /usr/sbin/psrinfo -v
Status of virtual processor 0 as of: 08/20/2015 11:13:38
  on-line since 08/13/2015 19:24:23.
  The i386 processor operates at 2901 MHz,
        and has an i387 compatible floating point processor.
Status of virtual processor 1 as of: 08/20/2015 11:13:38
  on-line since 08/13/2015 19:24:29.
  The i386 processor operates at 2901 MHz,
        and has an i387 compatible floating point processor.
 ...

You can use the isainfo command to display the virtual processor type on an x86 based system.

$ isainfo

This example shows the sample output for the isainfo command on an x86 based system.

$ isainfo
amd64 i86
Example 6  SPARC: Displaying the Virtual Processor That is Associated With Each Physical Processor on a System

This example shows the output of the psrinfo command, when run with the –-pv options on an Oracle SPARC T4-4 server. The output displays both the chip (physical processor) and the core information about the thread location. This information can be helpful in determining which physical CPU a thread is on, and how it is mapped at the core level.

$ /usr/sbin/psrinfo -pv
The physical processor has 3 cores and 20 virtual processors(0-19)
The core has 8 virtual processors (0-7)
The core has 8 virtual processors (8-15)
The core has 4 virtual processors (16-19)
    SPARC-M7(chipid 0, clock 4133 MHz)