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)
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
Changing System Information (Task Map)
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
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)
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)
|
The following table describes commands that enable you to display general system information.
Table 5-1 Commands for Displaying System Information
|
# isainfo options
The isainfo command, run without specifying any options, displays the name or names of the native instruction sets for applications supported by the current OS version.
Prints detailed information about the other options.
Prints the number of bits in the address space of the native instruction set.
Prints the name of the native instruction set used by portable applications supported by the current version of the OS.
Prints the name of the instruction set or sets that are used by the OS kernel components such as device drivers and STREAMS modules.
Note - For x86 based systems, the isalist command can also be used to display this information.
For more information, see the isalist(1) man page.
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.
$ cat /etc/release Solaris 10 s10_51 SPARC Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 21 January 2004
$ showrev options
Prints all system revision information available.
Prints the revision information about command.
Prints only the revision information about patches.
Defines the full path name of a directory to use as the root_path.
Performs this operation on the specified host name.
Prints only the OpenWindows revision information.
You can also use the uname command to display system information. The following example shows the uname command output. The -a option displays the operating system name as well as the system node name, operating system release, operating system version, hardware name, and processor type.
$ uname SunOS $ uname -a SunOS starbug 5.10 Generic sun4u sparc SUNW,Ultra-5_10 $
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
Example 5-4 Displaying a System's Host ID Number
The following example shows sample output from the hostid command.
$ hostid 80a5d34c
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.
% prtconf -b
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'
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
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 $
$ psrinfo -p 1
Use the psrinfo -pv command to display information about each physical processor on a system, and the virtual processor associated with each physical processor.
$ psrinfo -pv The UltraSPARC-IV physical processor has 2 virtual processors (8, 520) The UltraSPARC-IV physical processor has 2 virtual processors (9, 521) The UltraSPARC-IV physical processor has 2 virtual processors (10, 522) The UltraSPARC-IV physical processor has 2 virtual processors (11, 523) The UltraSPARC-III+ physical processor has 1 virtual processor (16) The UltraSPARC-III+ physical processor has 1 virtual processor (17) The UltraSPARC-III+ physical processor has 1 virtual processor (18) The UltraSPARC-III+ physical processor has 1 virtual processor (19)
When you use the psrinfo -pv command on an x86 based system, the following output is displayed:
$ psrinfo -pv The i386 physical processor has 2 virtual processors (0, 2) The i386 physical processor has 2 virtual processors (1, 3)
$ psrinfo -v
On an x86 based system, use the isalist command to display the virtual processor type.
$ isalist
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
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# localeadm -q ceu locale/region name is ceu Checking for Central Europe region (ceu) . . . The Central Europe region (ceu) is installed on this system