Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Advanced Administration Oracle Solaris 10 8/11 Information Library |
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
How to Display Locales Installed on a System
How to Determine If a Locale is Installed on a System
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
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)
This section describes commands that enable you to change general system information.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# date mmddHHMM[[cc]yy]
Month, using two digits.
Day of the month, using two digits.
Hour, using two digits and a 24-hour clock.
Minutes, using two digits.
Century, using two digits.
Year, using two digits.
See the date(1) man page for more information.
Example 5-10 Setting a System's Date and Time Manually
The following example shows how to use the date command to manually set a system's date and time.
# date Wed Mar 3 14:04:19 MST 2004 # date 0121173404 Thu Jan 21 17:34:34 MST 2004
Edit 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.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Edit the text to include the message that will be displayed during user login. Include spaces, tabs, and carriage returns.
$ cat /etc/motd Welcome to the UNIX Universe. Have a nice day.
Example 5-11 Setting Up a Message-Of-The-Day
The default message-of-the-day, which is provided when you install Oracle Solaris software, contains version information.
$ cat /etc/motd Oracle Corporation SunOS 5.10 Generic January 2005
The following example shows an edited /etc/motd file that provides information about system availability to each user who logs in.
$ cat /etc/motd 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.
A 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 host name.
You can also use the sys-unconfig command to reconfigure a system, including the host name. For more information, see the sys-unconfig(1M) man page.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
/etc/nodename
/etc/hostname.*interface
/etc/inet/hosts
/etc/inet/ipnodes (Applies only to some releases)
Note - Starting with the Solaris 10 8/07 release, there is no longer two separate hosts files. The /etc/inet/hosts file is the single hosts file that contains both IPv4 and IPv6 entries. You do not need to maintain IPv4 entries in two hosts files that always require synchronization. For backward compatibility, the /etc/inet/ipnodes file is replaced with a symbolic link of the same name to the /etc/inet/hosts file. For more information, see the hosts(4) man page.
# cd /var/crash # mv old-host-name new-host-name
# init 6
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
The -a option and a locale identifies the locale that you want to add. The -d 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:
# localeadm -a ceu -d /net/install/latest/Solaris/Product 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 . . .
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
The -r 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:
# localeadm -r ceu 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, . . .