Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (2106 KB)
Chapter 15 Displaying and Changing System Information (Tasks)This chapter describes the tasks required to display and change the most common system information. This is a list of the step-by-step instructions in this chapter.
Displaying System InformationThe following table describes commands that enable you to display general system information. Table 15–1 Commands for Displaying System Information
How to Determine If a System Can Run the 64–bit Solaris Operating SystemCurrently, the only platform capable of supporting the 64–bit Solaris Operating System is an UltraSPARC system. To verify if a system is an UltraSPARC system, use the following command:
If the output of the uname -m command is sun4u, then the machine is an UltraSPARC system. You can verify that the machine is an UltraSPARC system by using the psrinfo command:
If the processor type is sparcv9, the platform is capable of running the 64-bit Solaris OS. How to Determine If a System Has 64-bit Solaris Capabilities EnabledUse the isainfo command to determine if a system has 64-bit capabilities enabled, which means that the system is booted with the 64–bit kernel. Examples—Determining If a System Has 64–bit Solaris Capabilities EnabledThe output for an UltraSPARC system running a 32-bit kernel appears as follows:
This output means that this system is capable of supporting only 32-bit applications. The output for an UltraSPARC system running a 64-bit kernel appears as follows:
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, x86, or UltraSPARC system running the 32–bit Solaris OS appears as follows:
The output from a 64–bit UltraSPARC system running the 64–bit Solaris OS appears as follows:
The command returns 64 only. Even though a 64–bit UltraSPARC system is capable of running both types of applications, 64–bit applications are the best kind of applications to run on a 64–bit system. How to Display a System's Processor TypeUse the psrinfo -v command to identify a system's processor type. This command also displays the number of processors, as shown in the following example.
On an x86 system, use the isalist command to identify the processor type.
How to Display Solaris Release InformationDisplay the contents of the /etc/release file to identify your Solaris release version.
How to Display General System InformationTo display general system information, use the showrev command. Examples—Displaying General System InformationThe following example shows the showrev command output. The -a option displays all available system 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.
How to Display a System's Host ID NumberTo display the host ID number in hexadecimal format, use the hostid command. Example—Displaying a System's Host ID NumberThe following example shows sample output from the hostid command.
How to Display a System's Installed MemoryTo display the amount of memory installed on your system, use the prtconf command. Example—Displaying a System's Installed MemoryThe following example shows sample output from the prtconf command. The grep Memory command selects output from the prtconf command to display memory information only.
How to Display the Date and TimeTo display the current date and time according to your system clock, use the date command. Example—Displaying the Date and TimeThe following example shows sample output from the date command.
Changing System InformationThis section describes commands that enable you to change general system information. How to Set a System's Date and Time Manually
Example—Setting a System's Date and Time ManuallyThe following example shows how to use the date command to manually set a system's date and time.
How to Set Up a Message-of-the-DayEdit the message-of-the-day file, /etc/motd, 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.
Example—Setting Up a Message-of-the-DayThe default message-of-the-day, provided when you install Solaris software, contains SunOS version information.
The following example shows an edited /etc/motd file that provides information about system availability to each user who logs in.
How to Change a System's Host NameA system's host name is specified in several different locations. Remember to update your name service database to reflect the new host name. Use the following procedure to change or rename a system's name.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||