Skip Navigation Links | |
Exit Print View | |
Managing System Information, Processes, and Performance in Oracle Solaris 11.1 Oracle Solaris 11.1 Information Library |
1. Managing System Information (Tasks)
What's New in Displaying and Changing System Information
Enhancements to hostname and domainname Commands
Displaying System Information (Task Map)
Commands That Are Used to Display System Information
How to Display a System's Release Information
How to Display the Date and Time
How to Display a System's Host ID Number
Displaying a System's Architecture and Processor Type
How to Display a System's Product Name
How to Display a System's Installed Memory
How to Display Default and Customized Property Values for a Device
How to Display System Diagnostic Information
Identifying Information About Chip Multithreading Features
Changing System Information (Task Map)
How to Manually Set a System's Date and Time
How to Set Up a Message-Of-The-Day
How to Change a System's Identity
2. Managing System Processes (Tasks)
3. Monitoring System Performance (Tasks)
4. Scheduling System Tasks (Tasks)
5. Managing the System Console, Terminal Devices, and Power Services (Tasks)
The following table describes commands that enable you to display general system information.
|
Table 1-1 Commands for Displaying System Information
|
$ cat /etc/release
Example 1-1 Displaying the Date and Time
The following example shows sample output from the date command.
$ date Fri Jun 1 16:07:44 MDT 2012 $
Example 1-2 Displaying a System's Host ID Number
The following example shows sample output from the hostid command.
$ hostid 80a5d34c
The following examples show the output of the isainfo and isalist commands when run on x86 and SPARC based systems.
Example 1-3 Displaying a System's Architecture Type
The following examples show how to display the architecture type and names of the native instruction sets for applications that are supported by the current operating system.
The following output is from an x86 based system:
$ isainfo amd64 i386
The following 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 output if from a SPARC based system:
$ isainfo -v 64-bit sparcv9 applications asi_blk_init 32-bit sparc applications asi_blk_init v8plus div32 mul32 #
This 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
See the isainfo(1) man page.
Example 1-4 Displaying a System's Processor Type
The following example shows how to display information about an x86 based system's processor type.
$ isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
The following example shows how to display information about a SPARC based system's processor type.
$ isalist sparcv9 sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc sparcv9+vis sparcv9+vis2 \ sparcv8plus+vis sparcv8plus+vis2
See the isalist(1) man page.
The -b option to the prtconf command enables you to display the product name of a system. For more information, see the prtconf(1M) man page.
$ prtconf -b
Example 1-5 SPARC: Displaying a System's Product Name
This example shows sample output from the prtconf -b command on a SPARC based system.
$ prtconf -b name: ORCL,SPARC-T4-2 banner-name: SPARC T4-2 compatible: 'sun4v' $
This example shows sample output from the prtconf -vb command on a SPARC based system.
$ prtconf -vb name: ORCL,SPARC-T3-4 banner-name: SPARC T3-4 compatible: 'sun4v' idprom: 01840014.4fa02d28.00000000.a02d28de.00000000.00000000.00000000.00000000 openprom model: SUNW,4.33.0.b openprom version: 'OBP 4.33.0.b 2011/05/16 16:26'
Example 1-6 Displaying a System's Installed Memory
The following example shows sample output from the prtconf command. The grep Memory command selects output from the prtconf command to display memory information only.
$ prtconf | grep Memory Memory size: 523776 Megabytes
To display both the default and customized property values for devices, use the prtconf command with the -u option. For more information about this option, see the prtconf(1M) man page.
$ prtconf -u
The output of the prtconf -u command displays the default and customized properties for all of the drivers that are on the system.
Example 1-7 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.
$ prtconf -u System Configuration: Oracle Corporation sun4v Memory size: 523776 Megabytes System Peripherals (Software Nodes): ORCL,SPARC-T3-4 scsi_vhci, instance #0 disk, instance #4 disk, instance #5 disk, instance #6 disk, instance #8 disk, instance #9 disk, instance #10 disk, instance #11 disk, instance #12 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) 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, instance #0 (driver not attached) virtual-devices, instance #0 flashprom (driver not attached) tpm, instance #0 (driver not attached) n2cp, instance #0 ncp, instance #0 random-number-generator, instance #0 console, instance #0 channel-devices, instance #0 virtual-channel, instance #0 virtual-channel, instance #1 virtual-channel-client, instance #2 virtual-channel-client, instance #3 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) cpu (driver not attached) cpu (driver not attached)
Example 1-8 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.
$ 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 1-9 x86: Displaying System Configuration Information
The following 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 a system. The output of this command displays the driver not attached messages next to the device instances. This message usually indicates that no device exists at that device instance.
$ 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 . . .
See Also
For more information, see the driver(4), driver.conf(4), and prtconf(1M) man pages.
For instructions on how to create administratively provided configuration files, see Chapter 3, Managing Devices (Overview/Tasks), in Oracle Solaris 11.1 Administration: Devices and File Systems.
$ prtdiag [-v] [-l]
Verbose mode.
Log output. If failures or errors exist in the system, output this information to syslogd(1M) only.
Example 1-10 SPARC: Displaying System Diagnostic Information
The following example shows the output for the prtdiag -v command on a SPARC based system. For the sake of brevity, the example has been truncated.
$ prtdiag -v | more System Configuration: Oracle Corporation sun4v Sun Fire T200 Memory size: 16256 Megabytes ================================ Virtual CPUs ================================ CPU ID Frequency Implementation Status ------ --------- ---------------------- ------- 0 1200 MHz SUNW,UltraSPARC-T1 on-line 1 1200 MHz SUNW,UltraSPARC-T1 on-line 2 1200 MHz SUNW,UltraSPARC-T1 on-line 3 1200 MHz SUNW,UltraSPARC-T1 on-line 4 1200 MHz SUNW,UltraSPARC-T1 on-line 5 1200 MHz SUNW,UltraSPARC-T1 on-line 6 1200 MHz SUNW,UltraSPARC-T1 on-line . . . ======================= Physical Memory Configuration ======================== Segment Table: -------------------------------------------------------------- Base Segment Interleave Bank Contains Address Size Factor Size Modules -------------------------------------------------------------- 0x0 16 GB 4 2 GB MB/CMP0/CH0/R0/D0 MB/CMP0/CH0/R0/D1 2 GB MB/CMP0/CH0/R1/D0 MB/CMP0/CH0/R1/D1 2 GB MB/CMP0/CH1/R0/D0 MB/CMP0/CH1/R0/D1 2 GB MB/CMP0/CH1/R1/D0 . . System PROM revisions: ---------------------- OBP 4.30.4.d 2011/07/06 14:29 IO ASIC revisions: ------------------ Location Path Device Revision -------------------- ------------------ IOBD/IO-BRIDGE /pci@780 SUNW,sun4v-pci 0 . . .
Example 1-11 x86: Displaying System Diagnostic Information
The following example shows the output for the prtdiag -l command on an x86 based system.
$ 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 $
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 new -p option reports the total number of physical processors that are in a system. Using the psrinfo -pv command will list 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(1M) man page.
For information about the procedures that are associated with this feature, see How to Display a System's Physical Processor Type.
$ psrinfo -p 1
Use the psrinfo -pv command to display information about each physical processor on a system, and the virtual processor that is associated with each physical processor. For example:
$ psrinfo -pv The physical processor has 8 cores and 32 virtual processors (0-31) The core has 4 virtual processors (0-3) The core has 4 virtual processors (4-7) The core has 4 virtual processors (8-11) The core has 4 virtual processors (12-15) The core has 4 virtual processors (16-19) The core has 4 virtual processors (20-23) The core has 4 virtual processors (24-27) The core has 4 virtual processors (28-31) UltraSPARC-T1 (chipid 0, clock 1000 MHz)
When you use the psrinfo -pv command on an x86 based system, the following output is displayed:
$ psrinfo -pv The physical processor has 2 virtual processors (0 1) x86 (AuthenticAMD 40F13 family 15 model 65 step 3 clock 2793 MHz) Dual-Core AMD Opteron(tm) Processor 2220 [ Socket: F(1207) ] The physical processor has 2 virtual processors (2 3) x86 (AuthenticAMD 40F13 family 15 model 65 step 3 clock 2793 MHz) Dual-Core AMD Opteron(tm) Processor 2220 [ Socket: F(1207) ]
$ psrinfo -v
On an x86 based system, use the isalist command to display the virtual processor type. For example:
$ isalist amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
Example 1-12 SPARC: Displaying a System's Virtual Processor Type
This example shows how to display information about a SPARC based system's virtual processor type.
$ psrinfo -v Status of virtual processor 28 as of: 09/13/2010 14:07:47 on-line since 04/08/2010 21:27:56. The sparcv9 processor operates at 1400 MHz, and has a sparcv9 floating point processor. Status of virtual processor 29 as of: 09/13/2010 14:07:47 on-line since 04/08/2010 21:27:56. The sparcv9 processor operates at 1400 MHz, and has a sparcv9 floating point processor.
Example 1-13 SPARC: Displaying the Virtual Processor That Is Associated With Each Physical Processor on a System
The following 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.
$ psrinfo -pv The physical processor has 8 cores and 64 virtual processors (0-63) The core has 8 virtual processors (0-7) The core has 8 virtual processors (8-15) The core has 8 virtual processors (16-23) The core has 8 virtual processors (24-31) The core has 8 virtual processors (32-39) The core has 8 virtual processors (40-47) The core has 8 virtual processors (48-55) The core has 8 virtual processors (56-63) SPARC-T4 (chipid 0, clock 2998 MHz) The physical processor has 8 cores and 64 virtual processors (64-127) The core has 8 virtual processors (64-71) The core has 8 virtual processors (72-79) The core has 8 virtual processors (80-87) The core has 8 virtual processors (88-95) The core has 8 virtual processors (96-103) The core has 8 virtual processors (104-111) The core has 8 virtual processors (112-119) The core has 8 virtual processors (120-127) SPARC-T4 (chipid 1, clock 2998 MHz)