System Administration Guide

Using Commands to Display System Information

Table 56-1 describes commands that enable you to display general system information.

Table 56-1 Commands for Displaying System Information

Command 

Enables You to Display a System's ... 

showrev(1m)

Hostname, host identification number, release, kernel architecture, application architecture, hardware provider, domain, and kernel version 

uname(1)

Operating system name, release, and version; node name; hardware name; processor type 

hostid(1)

Host ID number 

prtconf(1M)

Installed memory 

date(1)

Date and time 

How to Display System and Software Release Information

To display specific system and software release information, use the showrev command.


$ showrev [-a]

-a

Displays all system release information available. 

Example--Displaying System and Software Release Information

The following example shows showrev command output.


$ showrev -a
Hostname: pluto
Hostid: 5721864d
Release: 5.6
Kernel architecture: sun4cm
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: solar.com
Kernel version: SunOS 5.6 Generic August 1997
 
OpenWindows version:
OpenWindows Version 3.6 January 1997
No patches are installed
$ 

How to Display General System Information (uname)

To display system information, use the uname command.


$ uname[-a] 

-a

Displays the operating system name as well as the system node name, operating system release, operating system version, hardware name, and processor type. 

Example--Displaying General System Information

The following example shows uname command output.


$ uname
SunOS
$ uname -a
SunOS pluto 5.6 Generic sun4m sparc SUNW,SPARCstation-5
$

How to Display a System's Host ID Number

To display the host identification number in hexadecimal format, use the hostid command.


$ hostid

Example--Displaying a System's Host ID Number

The following example shows sample output from the hostid command.


$ hostid
7725ac42

How to Display a System's Installed Memory

To display the amount of memory installed on your system, use the prtconf command.


$ prtconf [| grep Memory]

grep Memory

Focuses output from this command to display memory information only. 

Example--Displaying a System's Installed Memory

The following example shows sample output from the prtconf command.


# prtconf | grep Memory
Memory size: 56 Megabytes
 

How to Display the Date and Time

To display the current date and time according to your system clock, use the date command.


$ date

Example--Displaying the Date and Time

The following example shows sample output from the date command.


$ date
Thu Mar  6 09:06:52 MST 1997
$