JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Advanced Administration
search filter icon
search icon

Document Information

Preface

1.  Managing Terminals and Modems (Overview)

2.  Setting Up Terminals and Modems (Tasks)

3.  Managing Serial Ports With the Service Access Facility (Tasks)

4.  Managing System Resources (Overview)

5.  Displaying and Changing System Information (Tasks)

Displaying System Information (Task Map)

Displaying System Information

How to Determine Whether a System Has 32-Bit or 64-Bit Capabilities Enabled

How to Display Oracle Solaris Release Information

How to Display General System Information

How to Display a System's Host ID Number

How to Display a System's Product Name

How to Display a System's Installed Memory

How to Display the Date and Time

How to Display a System's Physical Processor Type

How to Display a System's Logical Processor Type

How to Display Locales Installed on a System

How to Determine If a Locale is Installed on a System

Changing System Information (Task Map)

Changing System Information

How to Set a System's Date and Time Manually

How to Set Up a Message-Of-The-Day

How to Change a System's Host Name

How to Add a Locale to a System

How to Remove a Locale From a System

6.  Managing Disk Use (Tasks)

7.  Managing UFS Quotas (Tasks)

8.  Scheduling System Tasks (Tasks)

9.  Managing System Accounting (Tasks)

10.  System Accounting (Reference)

11.  Managing System Performance (Overview)

12.  Managing System Processes (Tasks)

13.  Monitoring System Performance (Tasks)

14.  Troubleshooting Software Problems (Overview)

15.  Managing System Messages

16.  Managing Core Files (Tasks)

17.  Managing System Crash Information (Tasks)

18.  Troubleshooting Miscellaneous Software Problems (Tasks)

19.  Troubleshooting File Access Problems (Tasks)

20.  Resolving UFS File System Inconsistencies (Tasks)

21.  Troubleshooting Software Package Problems (Tasks)

Index

Displaying System Information (Task Map)

Task
Description
For Instructions
Determine whether a system has 32–bit or 64–bit capabilities enabled.
Use the isainfo command to determine whether a system has 32–bit or 64-bit capabilities enabled. For x86 based systems, you can use the isalist command to display this information.
Display Oracle Solaris release information.
Display the contents of the /etc/release file to identify the Oracle Solaris release version.
Display general system information.
Use the showrev command to display general system information.
Display a system's host ID number.
Use the hostid command to display your system's host id.
Display a system's product name.
Starting with the Solaris 10 1/06 release, you can use the prtconf -b command to display the product name of a system.
Display a system's installed memory.
Use the prtconf command to display information about your system's installed memory.
Display a system's date and time.
Use the date command to display your system's date and time.
Display a system's physical processor type.
Use the psrinfo -p command to list the total number of physical processors on a system.

Use the psrinfo -pv command to list all physical processors on a system and the virtual processors that is associated with each physical processor.

Display a system's logical processor type.
Use the psrinfo -v command to display a system's logical processor type.
Display locales that are installed on a system.
Use the localeadm command to display locales that are installed on your system.
Determine if a locale is installed on a system.
Use the -q option of the localeadm command and a locale to determine if a locale is installed on your system.

Displaying System Information

The following table describes commands that enable you to display general system information.

Table 5-1 Commands for Displaying System Information

Command
System Information Displayed
Man Page
date
Date and time
hostid
Host ID number
isainfo
The number of bits supported by native applications on the running system, which can be passed as a token to scripts
isalist
Processor type for x86 based systems
localeadm
Locales installed on the system
prtconf
System configuration information, installed memory, and product name
psrinfo
Processor type
showrev
Host name, host ID, release, kernel architecture, application architecture, hardware provider, domain, and kernel version
uname
Operating system name, release, version, node name, hardware name, and processor type

How to Determine Whether a System Has 32–Bit or 64–Bit Capabilities Enabled

Example 5-1 SPARC: Determining Whether a System Has 32–Bit or 64–Bit Capabilities Enabled

The isainfo command output for an UltraSPARC system that is running previous releases of the Oracle Solaris OS using a 32-bit kernel is displayed as follows:

$ isainfo -v
32-bit sparc applications

This output means that this system can support only 32–bit applications.

The current release of the Oracle Solaris OS only ships a 64–bit kernel on SPARC based systems. The isainfo command output for an UltraSPARC system that is running a 64–bit kernel is displayed as follows:

$ isainfo -v
64-bit sparcv9 applications 
32-bit sparc applications

This output means that this system is capable of supporting both 32–bit and 64–bit applications.

Use the isainfo -b command to display the number of bits supported by native applications on the running system.

The output from a SPARC based, x86 based, or UltraSPARC system that is running the 32–bit Oracle Solaris OS is displayed as follows:

$ isainfo -b
32

The isainfo command output from a 64–bit UltraSPARC system that is running the 64–bit Oracle Solaris OS is displayed as follows:

$ isainfo -b
64

The command returns 64 only. Even though a 64–bit UltraSPARC system can run both types of applications, 64–bit applications are the best kind of applications to run on a 64–bit system.

Example 5-2 x86: Determining Whether a System Has 32–Bit or 64–Bit Capabilities Enabled

The isainfo command output for an x86 based system that is running the 64-bit kernel is displayed as follows:

$ isainfo
amd64 i386

This output means that this system can support 64–bit applications.

Use the isainfo -v command to determine if an x86 based system is capable of running a 32–bit kernel.

$ isainfo -v
64-bit amd64 applications
        fpu tsc cx8 cmov mmx ammx a3dnow a3dnowx fxsr sse sse2 
32-bit i386 applications
        fpu tsc cx8 cmov mmx ammx a3dnow a3dnowx fxsr sse sse2 

This output means that this system can support both 64–bit and 32–bit applications.

Use the isainfo -b command to display the number of bits supported by native applications on the running system.

The output from an x86 based system that is running the 32–bit Oracle Solaris OS is displayed as follows:

$ isainfo -b
32

The isainfo command output from an x86 based system that is running the 64–bit Oracle Solaris OS is displayed as follows:

$ isainfo -b
64

You can also use the isalist command to determine whether an x86 based system is running in 32–bit or 64–bit mode.

$ isalist
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

In the preceding example, amd64 indicates that the system has 64–bit capabilities enabled.

How to Display Oracle Solaris Release Information

How to Display General System Information

Example 5-3 Displaying General System Information

The following example shows the showrev command output. The -a option displays all available system information.

$ showrev -a
Hostname: stonetouch
Hostid: 8099dfb9
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: boulder.Central.Sun.COM
Kernel version: SunOS 5.10 s10_46

OpenWindows version: 
Solaris X11 Version 6.6.2 20 October 2003

No patches are installed

How to Display a System's Host ID Number

Example 5-4 Displaying a System's Host ID Number

The following example shows sample output from the hostid command.

$ hostid
80a5d34c

How to Display a System's Product Name

Solaris 10 1/06: The -b option to the prtconf command enables you to display a system's product name. For more information on this feature, see the prtconf(1M) man page.

Example 5-5 Displaying a System's Product Name

This example shows sample output from the prtconf -b command.

$ prtconf -b
name:  SUNW,Ultra-5_10
model:  SUNW,375-0066
banner-name:  Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz)

This example shows sample output from the prtconf -vb command.

$ prtconf -vb
name:  SUNW,Ultra-5_10
model:  SUNW,375-0066
banner-name:  Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz)
idprom: 01800800.20a6c363.00000000.a6c363a9.00000000.00000000.405555aa.aa555500
openprom model:  SUNW,3.15
openprom version: 'OBP 3.15.2 1998/11/10 10:35'

How to Display a System's Installed Memory

Example 5-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: 128 Megabytes

How to Display the Date and Time

Example 5-7 Displaying the Date and Time

The following example shows sample output from the date command.

$ date
Wed Jan 21 17:32:59 MST 2004
$

How to Display a System's Physical Processor Type

How to Display a System's Logical Processor Type

Example 5-8 SPARC: Displaying a System's Processor Type

This example shows how to display information about a SPARC based system's processor type.

$ psrinfo -v
Status of virtual processor 0 as of: 04/16/2004 10:32:13
  on-line since 03/22/2004 19:18:27.
  The sparcv9 processor operates at 650 MHz,
  and has a sparcv9 floating point processor.

Example 5-9 x86: Displaying a System's Processor Type

This 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

How to Display Locales Installed on a System

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Display the locales currently installed on your system using the localeadm command. The -l option displays the locales that are installed on the system. For example:
    # localeadm -l
    Checking for installed pkgs. This could take a while.
    
    Checking for Australasia region (aua)
    (1of2 pkgs)
    |......|
    .
    .
    .
    The following regions are installed on concordance on Wed Dec 17 15:13:00 MST 2003
    
    
    POSIX (C)
    
    Central Europe (ceu)
    [ Austria, Czech Republic, Germany, Hungary, Poland, Slovakia, 
    Switzerland (German), Switzerland (French) ]
    
    Done.

How to Determine If a Locale is Installed on a System

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Determine if a locale is installed on your system using the localeadm command. The -q option and a locale queries the system to see if that locale is installed on the system. To see if the Central European region (ceu) is installed on your system, for example:
    # localeadm -q ceu
    locale/region name is ceu
    Checking for Central Europe region (ceu)
    .
    .
    .
    The Central Europe region (ceu) is installed on this system