Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (1611 KB)
Chapter 27 Examining and Changing System Information (Tasks)This chapter describes tasks required to examine and change the most common system information. This is a list of the step-by-step instructions in this chapter. Using Commands to Display System InformationThe following table describes commands that enable you to display general system information. Table 27-1 Commands for Displaying System Information
How to Determine Whether a System Can Run the 64-bit Solaris Operating EnvironmentCurrently, the only platform capable of supporting the 64-bit Solaris operating environment is an UltraSPARC system. You can verify whether a system is an UltraSPARC system by using the following command:
If the output of the uname -m command is sun4u, then the machine is an UltraSPARC system. If you are running the Solaris 8 release, you can verify this by using the psrinfo command:
If the processor type is sparcv9, the platform is capable of running the 64-bit Solaris operating environment. This test does not work on previous versions of the psrinfo command, where all platforms report the less precise sparc as the processor type. How to Determine Whether a System Has 64-bit Solaris Capabilities EnabledYou can use the isainfo command to determine whether a system has 64-bit capabilities enabled, which means the system is booted with the 64-bit kernel. Examples--Determining Whether a System Has 64-bit Solaris Capabilities EnabledAn UltraSPARC system running a 32-bit kernel looks like this:
The output means this system is capable of supporting only 32-bit applications. An UltraSPARC system running a 64-bit kernel looks like this:
This output means 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, IA, or UltraSPARC system running the 32-bit Solaris operating environment looks like this:
The output from a 64-bit UltraSPARC system running the 64-bit Solaris operating environment looks like:
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. The uname -p output remains sparc or i386 to ensure that existing 32-bit applications continue to run without interruption. How to Display System and Software Release InformationTo display specific system and software release information, use the showrev command.
Example--Displaying System and Software Release InformationThe following example shows showrev command output.
How to Display General System Information (uname)To display system information, use the uname command.
Example--Displaying General System InformationThe following example shows uname command output.
How to Display a System's Host ID NumberTo display the host identification 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.
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.
Using Commands to Change System InformationThe table below shows man page references and descriptions for some commands that enable you to change general system information. Table 27-2 Commands for Changing System Information
Using these commands, you can set a system's date and time to synchronize with the date and time of another system, such as a server. Or you can change a system's date and time by specifying new information. The message of the day (MOTD) facility, located in /etc/motd, enables you to send announcements or inquiries to all users of a system when they log in. Use this facility sparingly, and edit this file regularly to remove obsolete messages. By editing the /etc/system file, you can: Using Network Time Protocol (NTP) in Your NetworkThe Network Time Protocol (NTP) public domain software from the University of Delaware is included in the Solaris software starting with the Solaris 2.6 release. NTP enables you to manage precise time and network clock synchronization in a network environment. The xntpd daemon sets and maintains the system time-of-day. The xntpd daemon is a complete implementation of the version 3 standard, as defined by RFC 1305. The xntpd daemon reads the /etc/inet/ntp.conf file at system startup. See xntpd(1M) for information about configuration options. Keep the following in mind when using NTP in your network:
How to Set Up an NTP Server
How to Set Up an NTP Client
How to Synchronize Date and Time From Another System
Example--Synchronizing Date and Time From Another SystemThe following example shows how to use rdate to synchronize the date and time of one system with another. In this example, the system earth, running several hours behind, is reset to match the date and time of the server starbug.
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 date to manually set a system's date and time.
How to Set Up a Message of the Day
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 Set the Number of Processes per User
Example--Setting the Number of Processes per UserThe following example shows the line you would add to the /etc/system file to allow users to run 100 processes each.
How to Increase Shared Memory Segments
Example--Increasing Shared Memory SegmentsThe following shared memory values accommodate a system with a large amount of memory (for example, 128 MBytes) that is running a large database application.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||