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 |
Use the isainfo command to determine whether a system has 32–bit or 64-bit capabilities enabled.
# 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.
For x86 based systems, the isalist command can also be used to display this information.
For more information, see theisalist(1) man page.
The isainfo command output for an UltraSPARC system that is running previous releases of the 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 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 Solaris Operating System is displayed as follows:
$ isainfo -b 32 |
The isainfo command output from a 64–bit UltraSPARC system that is running the 64–bit Solaris Operating System 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.
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 Solaris Operating System is displayed as follows:
$ isainfo -b 32 |
The isainfo command output from an x86 based system that is running the 64–bit Solaris Operating System 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 Solaris capabilities enabled.
Display the contents of the /etc/release file to identify your Solaris release version.
% cat /etc/release Solaris Nevada snv_26 SPARC Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 24 October 2005 |
To display general system information, use the showrev command.
$ 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 $ |
The following example shows the showrev command output. The -a option displays all available system information.
% showrev -a Hostname: suwat Hostid: 830915da Release: 5.11 Kernel architecture: sun4u Application architecture: sparc Hardware provider: Sun_Microsystems Domain: boulder.Central.Sun.COM Kernel version: SunOS 5.11 SunOS_Development OpenWindows version: Solaris X11 Version 6.6.3 12 October 2005 Patch: 116298-08 Obsoletes: Requires: Incompatibles: Packages: SUNWxsrt, ... Patch: 116302-02 Obsoletes: Requires: Incompatibles: Packages: SUNWxrpcrt |
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.
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' |
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 |
The following example shows sample output from the date command.
$ date Wed Jan 21 17:32:59 MST 2004 $ |