<chapter id="sysressysinfo-75169"><title>Displaying and
Changing System Information (Tasks)</title><highlights><para>This chapter describes the tasks that are required to display and change
the most common system information. </para><itemizedlist><para>For information about the procedures associated with displaying and
changing system information, see the following:</para><listitem><para><olink targetptr="emxzp" remap="internal">Displaying System Information (Task
Map)</olink></para>
</listitem><listitem><para><olink targetptr="enmvl" remap="internal">Changing System Information (Task
Map)</olink></para>
</listitem>
</itemizedlist><para>For overview information about managing system resources, see <olink targetptr="sysresconcepts-23051" remap="internal">Chapter&nbsp;4, Managing System Resources
(Overview)</olink>.</para>
</highlights><sect1 id="emxzp"><title>Displaying System Information (Task Map)</title><informaltable frame="all"><tgroup cols="3" colsep="1" rowsep="1"><colspec colwidth="33*"/><colspec colwidth="33*"/><colspec colwidth="33*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>Determine whether a system has 32 bit or 64&ndash;bit capabilities enabled.</para>
</entry><entry><para>Use the <command>isainfo</command> command to determine whether a system
has 32&ndash;bit or 64-bit capabilities enabled. For x86 based systems, you
can use the <command>isalist</command> command to display this information.</para>
</entry><entry><para><olink targetptr="enfli" remap="internal">How to Determine Whether a System Has 32&ndash;bit
or 64&ndash;Bit Solaris Capabilities Enabled</olink></para>
</entry>
</row><row><entry><para>Display Solaris Release Information</para>
</entry><entry><para>Display the contents of the <filename>/etc/release</filename> file to
identify your Solaris release version.</para>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="enfll" remap="internal">How to Display Solaris Release Information</olink></para>
</entry>
</row><row><entry><para>Display General System Information.</para>
</entry><entry><para>Use the <command>showrev</command> command to display general system
information.</para>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="enflk" remap="internal">How to Display General System Information</olink></para>
</entry>
</row><row><entry><para>Display a system's Host ID number.</para>
</entry><entry><para>Use the <command>hostid</command> command to display your system's host
id.</para>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="enfln" remap="internal">How to Display a System's Host ID Number</olink></para>
</entry>
</row><row><entry><para>Display a System's product name</para>
</entry><entry><para>Starting with the Solaris Express 7/05  release, you can use the <command>prtconf</command> <option>b</option> command
to display the product name of a system.</para>
</entry><entry colsep="0"><para><olink targetptr="gaefk" remap="internal">How to Display a System's Product Name</olink></para>
</entry>
</row><row><entry><para>Display a System's Installed Memory</para>
</entry><entry><para>Use the <command>prtconf</command> command to display information about
your system's installed memory.</para>
</entry><entry><para><olink targetptr="enflm" remap="internal">How to Display a System's Installed Memory</olink></para>
</entry>
</row><row><entry><para>Display a system's date and time.</para>
</entry><entry><para>Use the <command>date</command> command to display your system's date
and time.</para>
</entry><entry><para><olink targetptr="enflo" remap="internal">How to Display the Date and Time</olink></para>
</entry>
</row><row><entry><para>Display a system's physical processor type.</para>
</entry><entry><para>Use the <command>psrinfo <option>p</option></command> command to list
the total number of physical processors on a system.</para><para> Use the <command>psrinfo</command> <option>pv</option> command to list
all physical processors on a system and the virtual processors that is associated
with each physical processor.</para>
</entry><entry colsep="0"><para><olink targetptr="eqbvg" remap="internal">How to Display a System's Physical Processor
Type</olink></para>
</entry>
</row><row><entry><para>Display a system's logical processor type.</para>
</entry><entry><para>Use the <command>psrinfo</command> <option>v</option> command to display
a system's logical processor type.</para>
</entry><entry colsep="0"><para><olink targetptr="enflj" remap="internal">How to Display a System's Logical Processor
Type</olink></para>
</entry>
</row><row><entry><para>Display locales that are installed on a system.</para>
</entry><entry><para>Use the <command>localeadm</command> command to display locales that
are installed on your system.</para>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="eezby" remap="internal">How to Display Locales Installed on a System</olink></para>
</entry>
</row><row><entry><para>Determine if a locale is installed on a system.</para>
</entry><entry><para>Use the <option>q</option> option of the <command>localeadm</command> command
and a locale to determine if a locale is installed on your system.</para>
</entry><entry colsep="0" rowsep="0"><para><olink targetptr="eezdg" remap="internal">How to Determine if a Locale is Installed on
a System</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><sect2 id="sysressysinfo-1"><title>Displaying System Information</title><para>The following table describes commands that enable you to display
general system information. </para><table frame="topbot" id="sysressysinfo-tbl-7"><title>Commands for Displaying
System Information</title><tgroup cols="3" colsep="0" rowsep="0"><colspec colname="colspec0" colwidth="27.60*"/><colspec colname="colspec1" colwidth="42.00*"/><colspec colname="colspec4" colwidth="29.40*"/><thead><row><entry rowsep="1"><para>Command</para>
</entry><entry rowsep="1"><para>System Information Displayed</para>
</entry><entry rowsep="1"><para>Man Page</para>
</entry>
</row>
</thead><tbody><row><entry><para><command>date</command> </para>
</entry><entry><para>Date and time</para>
</entry><entry><para><olink targetdoc="refman" targetptr="date-1" remap="external"><citerefentry><refentrytitle>date</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>hostid</command></para>
</entry><entry><para>Host ID number</para>
</entry><entry><para><olink targetdoc="refman" targetptr="hostid-1" remap="external"><citerefentry><refentrytitle>hostid</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>isainfo</command></para>
</entry><entry><para>The number of bits supported by <emphasis>native</emphasis> applications
on the running system, which can be passed as a token to scripts</para>
</entry><entry><para><olink targetdoc="refman" targetptr="isainfo-1" remap="external"><citerefentry><refentrytitle>isainfo</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>isalist</command></para>
</entry><entry><para>Processor type for x86 based systems</para>
</entry><entry><para><olink targetdoc="refman" targetptr="psrinfo-1m" remap="external"><citerefentry><refentrytitle>psrinfo</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>localeadm</command></para>
</entry><entry><para>Locales installed on the system</para>
</entry><entry><para><olink targetdoc="refman" targetptr="localeadm-1m" remap="external"><citerefentry><refentrytitle>localeadm</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>prtconf</command> </para>
</entry><entry><para>System configuration information, installed memory, and product name</para>
</entry><entry><para><olink targetdoc="refman" targetptr="prtconf-1m" remap="external"><citerefentry><refentrytitle>prtconf</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>psrinfo</command></para>
</entry><entry><para>Processor type</para>
</entry><entry><para><olink targetdoc="refman" targetptr="psrinfo-1m" remap="external"><citerefentry><refentrytitle>psrinfo</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>showrev</command></para>
</entry><entry><para>Host name, host ID, release, kernel architecture, application architecture,
hardware provider, domain, and kernel version</para>
</entry><entry><para><olink targetdoc="refman" targetptr="showrev-1m" remap="external"><citerefentry><refentrytitle>showrev</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink></para>
</entry>
</row><row><entry><para><command>uname</command></para>
</entry><entry><para>Operating system name, release, version, node name, hardware name, and
processor type</para>
</entry><entry><para><olink targetdoc="refman" targetptr="uname-1" remap="external"><citerefentry><refentrytitle>uname</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink></para>
</entry>
</row>
</tbody>
</tgroup>
</table><task id="enfli"><title>How to Determine Whether a System Has 32&ndash;bit
or 64&ndash;Bit Solaris Capabilities Enabled</title><procedure remap="single-step"><step><para>Use the <command>isainfo</command> command to determine whether
a system has 32&ndash;bit or 64-bit capabilities enabled.</para><screen># <userinput>isainfo <replaceable>options</replaceable></userinput></screen><para>The <command>isainfo</command> command, run without specifying any options,
displays the name or names of the  native instruction  sets for applications
supported by the current OS version.</para><variablelist><varlistentry><term><option>v</option></term><listitem><para>Prints detailed information about the other options</para>
</listitem>
</varlistentry><varlistentry><term><option>b</option></term><listitem><para>Prints the number of bits in the address space of  the native
instruction set.</para>
</listitem>
</varlistentry><varlistentry><term><option>n</option></term><listitem><para>Prints the name of the native instruction set used  by portable
applications supported by the current version of the OS.</para>
</listitem>
</varlistentry><varlistentry><term><option>k</option></term><listitem><para>Prints the name of the instruction set or sets that are used
by the OS kernel components  such as device drivers and STREAMS modules.</para>
</listitem>
</varlistentry>
</variablelist><note><para>For x86 based systems, the <command>isalist</command> command
can also be used to display this information.</para><para>For more information, see the<olink targetdoc="group-refman" targetptr="isalist-1" remap="external"><citerefentry><refentrytitle>isalist</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink> man page.</para>
</note>
</step>
</procedure><example id="sysressysinfo-68" arch="sparc"><title>Determining Whether a System Has 32&ndash;Bit or 64&ndash;Bit Solaris
Capabilities Enabled</title><para>The <command>isainfo</command> command output for an UltraSPARC system
that is running previous releases of the Solaris OS using a 32-bit kernel
is displayed as follows:</para><screen>$ <userinput>isainfo -v</userinput>
32-bit sparc applications</screen><para>This output means that this system can support only 32&ndash;bit applications.</para><para>The current release of the Solaris OS only ships a 64&ndash;bit kernel
on SPARC based systems. The <command>isainfo</command> command output for
an UltraSPARC system that is running a 64&ndash;bit kernel is displayed as
follows: </para><screen>$ <userinput>isainfo -v</userinput>
64-bit sparcv9 applications 
32-bit sparc applications</screen><para>This output means that this system is capable of supporting both 32&ndash;bit
and 64&ndash;bit applications.  </para><para>Use the <command>isainfo -b</command> command to display the number
of bits supported by native applications on the running system.</para><para>The output from a SPARC based, x86 based, or UltraSPARC system that
is running the 32&ndash;bit Solaris Operating System is displayed as follows:  </para><screen>$ <userinput>isainfo -b</userinput>
32</screen><para>The <command>isainfo</command> command output from a 64&ndash;bit UltraSPARC
system that is running the 64&ndash;bit Solaris Operating System is displayed as follows:</para><screen>$ <userinput>isainfo -b</userinput>
64</screen><para>The command returns <literal>64</literal> only. Even though a 64&ndash;bit
UltraSPARC system can run both types of applications, 64&ndash;bit applications
are the best kind of applications to run on a 64&ndash;bit system.</para>
</example><example id="fapvw" arch="x86"><title>Determining Whether a System Has 32&ndash;Bit or 64&ndash;Bit Solaris
Capabilities Enabled</title><para>The <command>isainfo</command> command output for an x86 based system
that is running the 64-bit kernel is displayed as follows:</para><screen>$ <userinput>isainfo</userinput>
amd64 i386</screen><para>This output means that this system can support 64&ndash;bit applications.</para><para>Use the isainfo <option>v</option> command to determine if an x86 based
system is capable of running a 32&ndash;bit kernel.</para><screen>$ <userinput>isainfo -v</userinput>
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 </screen><para>This output means that this system can support both 64&ndash;bit and
32&ndash;bit applications.</para><para>Use the <command>isainfo -b</command> command to display the number
of bits supported by native applications on the running system.</para><para>The output from an x86 based system that is running the 32&ndash;bit Solaris Operating System is
displayed as follows:  </para><screen>$ <userinput>isainfo -b</userinput>
32</screen><para>The <command>isainfo</command> command output from an x86 based system
that is running the 64&ndash;bit Solaris Operating System is displayed as follows:</para><screen>$ <userinput>isainfo -b</userinput>
64</screen><para>You can also use the <command>isalist</command> command to determine
whether an x86 based system is running in 32&ndash;bit or 64&ndash;bit mode.</para><screen>$ <userinput>isalist</userinput>
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86</screen><para>In the preceding example, <literal>amd64</literal> indicates that the
system has 64&ndash;bit Solaris capabilities enabled.</para>
</example>
</task><task id="enfll"><title>How to Display Solaris Release Information</title><procedure remap="single-step"><step><para>Display the contents of the <filename>/etc/release</filename> file
to identify your Solaris release version.</para><screen>% <userinput>cat /etc/release</userinput>
                           Solaris Nevada snv_26 SPARC
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 24 October 2005</screen>
</step>
</procedure>
</task><task id="enflk"><title>How to Display General System Information</title><procedure remap="single-step"><step><para>To display general system information, use the <command>showrev</command> command.</para><screen>$ <userinput>showrev <replaceable>options</replaceable></userinput></screen><variablelist><varlistentry><term><option>a</option></term><listitem><para>Prints all system revision information available.</para>
</listitem>
</varlistentry><varlistentry><term><option>c (command)</option></term><listitem><para>Prints the revision information about command</para>
</listitem>
</varlistentry><varlistentry><term><option>p</option></term><listitem><para>Prints only the revision information about patches.</para>
</listitem>
</varlistentry><varlistentry><term><option>R (root_path)</option></term><listitem><para>Defines the full path name of a directory to use as the root_path. </para>
</listitem>
</varlistentry><varlistentry><term><option>s (host name)</option></term><listitem><para>Performs this operation on the specified host name</para>
</listitem>
</varlistentry><varlistentry><term><option>w</option></term><listitem><para>Prints only the OpenWindows revision information.</para>
</listitem>
</varlistentry>
</variablelist><para>You can also use the <command>uname</command> command to display system
information. The following example shows the <command>uname</command> command
output. The <option>a</option> option displays the operating system name as
well as the system node name, operating system release, operating system version,
hardware name, and processor type.</para><screen>$ <userinput>uname</userinput>
SunOS
$ <userinput>uname -a</userinput>
SunOS starbug 5.10 Generic sun4u sparc SUNW,Ultra-5_10
$</screen>
</step>
</procedure><example id="sysressysinfo-3"><title>Displaying General System Information</title><para>The following example shows the <command>showrev</command> command output.
The <option>a</option> option displays all available system information.</para><screen width="100">% <userinput>showrev -a</userinput>
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</screen>
</example>
</task><task id="enfln"><title>How to Display a System's Host ID Number</title><procedure remap="single-step"><step><para>To display the host ID number in hexadecimal format, use the <command>hostid</command> command. </para>
</step>
</procedure><example id="sysressysinfo-5"><title>Displaying a System's Host ID Number</title><para>The following example shows sample output from the <command>hostid</command> command. </para><screen>$ <userinput>hostid</userinput>
80a5d34c</screen>
</example>
</task><task id="gaefk"><title>How to Display a System's Product Name</title><tasksummary><para><emphasis role="strong">Solaris 10 1/06:</emphasis> The <option>b</option> option to the <command>prtconf</command> command enables you to
display a system's product name. For more information on this feature, see
the <olink targetdoc="refman" targetptr="prtconf-1m" remap="external"><citerefentry><refentrytitle>prtconf</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page.</para>
</tasksummary><procedure remap="single-step"><step><para>To display the product name for your system, use the <command>prtconf</command> command with the <option>b</option> option.</para>
</step>
</procedure><example id="gaefq"><title>Displaying a System's Product Name</title><para>This example shows sample output from the <command>prtconf</command> <option>b</option> command.</para><screen width="100"># <userinput>prtconf -b</userinput>
name:  SUNW,Ultra-5_10
model:  SUNW,375-0066
banner-name:  Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz)</screen><para>This example shows sample output from the <command>prtconf</command> <option>vb</option> command.</para><screen width="100"># <userinput>prtconf -vb</userinput>
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'</screen>
</example>
</task><task id="enflm"><title>How to Display a System's Installed Memory</title><procedure remap="single-step"><step><para>To display the amount of memory that is installed on your system,
use the <command>prtconf</command> command.</para>
</step>
</procedure><example id="sysressysinfo-6"><title>Displaying a System's Installed Memory</title><para>The following example shows sample output from the <command>prtconf</command> command.
The <command>grep Memory</command> command selects output from the <command>prtconf</command> command to display memory information only.</para><screen># <userinput>prtconf | grep Memory</userinput>
Memory size: 128 Megabytes</screen>
</example>
</task><task id="enflo"><title>How to Display the Date and Time</title><procedure remap="single-step"><step><para>To display the current date and time according to your system
clock, use the <command>date</command> command. </para>
</step>
</procedure><example id="sysressysinfo-7"><title>Displaying the Date and Time</title><para>The following example shows sample output from the <command>date</command> command. </para><screen>$ <userinput>date</userinput>
Wed Jan 21 17:32:59 MST 2004
$</screen>
</example>
</task>
</sect2><sect2 id="frcbd"><title><command>psrinfo</command> Command
Option to Identify Chip Multithreading Features</title><para><emphasis role="strong">Solaris 10:</emphasis> The <command>psrinfo</command> 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 <option>p</option> option
reports the total number of physical processors that are in a system. Using
the <command>psrinfo</command> <option>pv</option> 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 <command>psrinfo</command> command continues to display the virtual processor information
for a system.</para><para>For more information, see the <olink targetdoc="refman" targetptr="psrinfo-1m" remap="external"><citerefentry><refentrytitle>psrinfo</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man page.</para><para>For information about the procedures associated with this feature, see <olink targetptr="eqbvg" remap="internal">How to Display a System's Physical Processor Type</olink>.</para>
</sect2><task id="eqbvg"><title>How to Display a System's Physical Processor Type</title><procedure remap="single-step"><step><para>Use the <command>psrinfo -p</command> command to display the total
number of physical processors on a system.</para><screen>$ <userinput>psrinfo -p</userinput>
1</screen><para>Use the <command>psrinfo</command> <option>pv</option> command to display
information about each physical processor on a system, and the virtual processor
associated with each physical processor.</para><screen>$ <userinput>psrinfo -pv</userinput>
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)</screen><para>When you use the <command>psrinfo</command> <option>pv</option> command
on an x86 based system, the following output is displayed:</para><screen>$ <userinput>psrinfo -pv</userinput>
The i386 physical processor has 2 virtual processors (0, 2)
The i386 physical processor has 2 virtual processors (1, 3)</screen>
</step>
</procedure>
</task><task id="enflj"><title>How to Display a System's Logical Processor Type</title><procedure remap="single-step"><step><para>Use the <command>psrinfo -v</command> command to display information
about a system's processor type.</para><screen>$ <userinput>psrinfo -v</userinput></screen><para>On an x86 based system, use the <command>isalist</command> command
to display the virtual processor type.</para><screen>$ <userinput>isalist</userinput></screen>
</step>
</procedure><example id="fawmu" arch="sparc"><title>Displaying a System's Processor Type</title><para>This example shows how to display information about a SPARC based system's
processor type.</para><screen>$ <userinput>psrinfo -v</userinput>
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.</screen>
</example><example id="fblll" arch="x86"><title>Displaying a System's Processor Type</title><para>This example shows how to display information about an x86 based system's
processor type.</para><screen>$ <userinput>isalist</userinput>
pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86</screen>
</example>
</task><sect2 id="frcbc"><title>New <command>localeadm</command> Command</title><para><emphasis role="strong">Solaris 10:</emphasis> The new <command>localeadm</command> command
allows you to change the locales on your system without reinstalling the OS
or manually adding and removing packages. This command also allows you to
query your system to determine which locales are installed. To run the <command>localeadm</command> command, you must have superuser privileges or assume an equivalent
role through role-based access control (RBAC).</para><para>For more information, see the <olink targetdoc="refman" targetptr="localeadm-1m" remap="external"><citerefentry><refentrytitle>localeadm</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man page.</para><para>For more information in this guide, see <olink targetptr="sysressysinfo-75169" remap="internal">Chapter&nbsp;5, Displaying and Changing System
Information (Tasks)</olink>.</para>
</sect2><task id="eezby"><title>How to Display Locales Installed on a System</title><procedure>&rolestep.sgm;<step><para>Display the locales currently installed on your system using the <command>localeadm</command> command. The <option>l</option> option displays the locales
that are installed on the system. For example:</para><screen width="100"># <userinput>localeadm -l</userinput>
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.</screen>
</step>
</procedure>
</task><task id="eezdg"><title>How to Determine if a Locale is Installed on a System</title><procedure>&rolestep.sgm;<step><para>Determine if a locale is installed on your system using the <command>localeadm</command> command. The <option>q</option> 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:</para><screen># <userinput>localeadm -q ceu</userinput>
locale/region name is ceu
Checking for Central Europe region (ceu)
.
.
.
The Central Europe region (ceu) is installed on this system</screen>
</step>
</procedure>
</task>
</sect1><sect1 id="enmvl"><title>Changing System Information (Task Map)</title><informaltable frame="all"><tgroup cols="3" colsep="1" rowsep="1"><colspec colwidth="33*"/><colspec colwidth="33*"/><colspec colwidth="33*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Directions</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>Manually set a system's date and time.</para>
</entry><entry><para>Manually set your system's date and time by using the <command>date</command> <replaceable>mmddHHMM[[cc]yy]</replaceable> command-line syntax.</para>
</entry><entry rowsep="1"><para><olink targetptr="sysressysinfo-11048" remap="internal">How to Set a System's Date and
Time Manually</olink></para>
</entry>
</row><row><entry><para>Set up a message-of-the-day.</para>
</entry><entry><para>Set up a message-of-the-day on your system by editing the <filename>/etc/motd</filename> file.</para>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="sysressysinfo-20988" remap="internal">How to Set Up a Message-Of-The-Day</olink></para>
</entry>
</row><row><entry><para>Change a system's host name.</para>
</entry><entry><para>Change your system's host name by editing the following files:</para><itemizedlist><listitem><para><filename>/etc/nodename</filename></para>
</listitem><listitem><para><filename>/etc/hostname.*</filename><replaceable>host-name</replaceable></para>
</listitem><listitem><para><filename>/etc/inet/hosts</filename></para>
</listitem>
</itemizedlist><note><para>If you are running the Solaris 3/05, 1/06, 6/06, or 11/06 releases, you also need
to update the <filename>/etc/inet/ipnodes</filename> file. Starting with Solaris 10 8/07 release, the Solaris OS does not
have two separate <filename>hosts</filename> files. The <filename>/etc/inet/hosts</filename> file is the single <filename>hosts</filename> file that contains
both IPv4 and IPv6 entries.</para>
</note>
</entry><entry colsep="0" rowsep="1"><para><olink targetptr="sysressysinfo-70" remap="internal">How to Change a System's Host Name</olink></para>
</entry>
</row><row><entry><para>Add a locale to a system.</para>
</entry><entry><para>Use the <command>localeadm</command> command to add a locale to your
system.</para>
</entry><entry colsep="0" rowsep="1"><para><olink type="custom-text" targetptr="eezcz" remap="internal">How to Add a Locale to a
System</olink></para>
</entry>
</row><row><entry><para>Remove a locale from a system.</para>
</entry><entry><para>Use the <option>r</option> option of the <command>localeadm</command> command
and the locale to remove of locale from your system.</para>
</entry><entry rowsep="1"><para><olink type="custom-text" targetptr="eezcy" remap="internal">How to Remove a Locale From
a System</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect1><sect1 id="sysressysinfo-8"><title>Changing System Information</title><para>This section describes commands that enable you to change general system
information.</para><task id="sysressysinfo-11048"><title>How to Set a System's Date and Time
Manually</title><procedure>&rolestep.sgm;<step id="sysressysinfo-step-16"><para>Enter the new date and time.  </para><screen># <userinput>date</userinput> <replaceable>mmddHHMM[[cc]yy]</replaceable></screen><variablelist><varlistentry><term><replaceable>mm</replaceable></term><listitem><para>Month, using two digits.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>dd</replaceable></term><listitem><para>Day of the month, using two digits.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>HH</replaceable></term><listitem><para>Hour, using two digits and a 24-hour clock.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>MM</replaceable></term><listitem><para>Minutes, using two digits.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>cc</replaceable></term><listitem><para>Century, using two digits.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>yy</replaceable></term><listitem><para>Year, using two digits.</para>
</listitem>
</varlistentry>
</variablelist><para>See the <olink targetdoc="refman" targetptr="date-1" remap="external"><citerefentry><refentrytitle>date</refentrytitle><manvolnum>1</manvolnum></citerefentry></olink> man
page for more information.</para>
</step><step id="sysressysinfo-step-49"><para>Verify that you have reset your system's
date correctly by using the <command>date</command> command with no options.</para>
</step>
</procedure><example id="emjej"><title>Setting a System's Date and Time Manually</title><para>The following example shows how to
use the <command>date</command> command to manually set a system's date and
time.    </para><screen># <userinput>date</userinput>
Wed Mar  3 14:04:19 MST 2004
# <userinput>date 0121173404</userinput>
Thu Jan 21 17:34:34 MST 2004</screen>
</example>
</task><task id="sysressysinfo-20988"><title>How to Set Up a Message-Of-The-Day</title><tasksummary><para>Edit the message-of-the-day file, <filename>/etc/motd</filename>, to
include announcements or inquiries to all users of a system when they log
in. Use this feature sparingly, and edit this file regularly to remove obsolete
messages.   </para>
</tasksummary><procedure>&rolestep.sgm;<step id="sysressysinfo-step-21"><para>Edit the <filename>/etc/motd</filename> file
and add a message of your choice.</para><para>Edit the text to include the
message that will be displayed during user login. Include spaces, tabs, and
carriage returns.</para>
</step><step id="sysressysinfo-step-50"><para>Verify the changes by displaying the
contents of the <filename>/etc/motd</filename> file.</para><screen>$ <userinput>cat /etc/motd</userinput>
Welcome to the UNIX Universe. Have a nice day.</screen>
</step>
</procedure><example id="emjep"><title>Setting Up a Message-Of-The-Day</title><para>The default message-of-the-day, which is provided when you install
Solaris software, contains SunOS version information.    </para><screen>$ <userinput>cat /etc/motd</userinput>
Sun Microsystems Inc.   SunOS 5.10       Generic  May 2004</screen><para>The following example shows an edited <filename>/etc/motd</filename> file
that provides information about system availability to each user who logs
in. </para><screen>$ <userinput>cat /etc/motd</userinput>
The system will be down from 7:00 a.m to 2:00 p.m. on
Saturday, July 7, for upgrades and maintenance.
Do not try to access the system during those hours.
Thank you.</screen>
</example>
</task><task id="sysressysinfo-70"><title>How to Change a System's Host Name</title><tasksummary><para>A system's host name is specified in several different locations.</para><para>Remember to update your name service database to reflect the new host
name.</para><para>Use the following procedure to change or rename a system's host name.</para><para>You can also use the <command>sys-unconfig</command> command to reconfigure
a system, including the host name. For more information, see the <olink targetdoc="refman" targetptr="sys-unconfig-1m" remap="external"><citerefentry><refentrytitle>sys-unconfig</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man page.</para>
</tasksummary><procedure>&rolestep.sgm;<step id="sysressysinfo-step-72"><para>Change the system's host name in the
following files:</para><itemizedlist><listitem><para><filename>/etc/nodename</filename></para>
</listitem><listitem><para><filename>/etc/hostname.*</filename><replaceable>interface</replaceable></para>
</listitem><listitem><para><filename>/etc/inet/hosts</filename></para>
</listitem><listitem><para><filename>/etc/inet/ipnodes</filename> &ndash; Applies <emphasis>only</emphasis> to some release Solaris releases.</para>
</listitem>
</itemizedlist><note><para>Starting with the Solaris
10 8/07 release, there is no longer two separate <filename>hosts</filename> files.
The <filename>/etc/inet/hosts</filename> file is the single <filename>hosts</filename> file
that contains both IPv4 and IPv6 entries. You do not need to maintain IPv4
entries in two <filename>hosts</filename> files that always require synchronization.
For backward compatibility, the <filename>/etc/inet/ipnodes</filename> file
is replaced with a symbolic link of the same name to the <filename>/etc/inet/hosts</filename> file.  For more information, see the <olink targetdoc="group-refman" targetptr="hosts-4" remap="external"><citerefentry><refentrytitle>hosts</refentrytitle><manvolnum>4</manvolnum></citerefentry></olink> man page.</para>
</note>
</step><step performance="optional" id="sysressysinfo-step-6"><para>If you are using
a name service, change the system's host name in the <filename>hosts</filename> file.</para>
</step><step><para>Rename the host name directory within the <filename>/var/crash</filename> directory.</para><screen># <userinput>cd /var/crash</userinput>
# <userinput>mv <replaceable>old-host-name</replaceable> <replaceable>new-host-name</replaceable></userinput></screen>
</step><step id="sysressysinfo-step-73"><para>Reboot the system to activate the new
host name.</para><screen># <userinput>init 6</userinput></screen>
</step>
</procedure>
</task><task id="eezcz"><title>How to Add a Locale to a System</title><procedure>&rolestep.sgm;<step><para>Add the packages for the locale you want to install on your system
using the <command>localeadm</command> command. The <option>a</option> option
and a locale identifies the locale that you want to add. The <option>d</option> option
and a device identifies the device containing the locale packages you want
to add. To add the Central European region (ceu) to your system, for example:</para><screen># <userinput>localeadm -a ceu -d /net/install/latest/Solaris/Product</userinput>

locale/region name is ceu

Devices are /net/install/latest/Solaris/Product
.
.
.
One or more locales have been added. 
To update the list of locales available at
.
.
.</screen>
</step>
</procedure>
</task><task id="eezcy"><title>How to Remove a Locale From a System</title><procedure>&rolestep.sgm;<step><para>Remove the packages for the locale installed on your system using
the <command>localeadm</command> command. The <option>r</option> option and
a locale identifies the locale that you want to remove from the system. To
remove the Central European region (ceu) from your system, for example:</para><screen># <userinput>localeadm -r ceu</userinput>
locale/region name is ceu
Removing packages for Central Europe (ceu)
.
.
.
One or more locales have been removed.
To update the list of locales available
at the login screen's "Options->Language" menu,
.
.
.</screen>
</step>
</procedure>
</task>
</sect1>
</chapter>