JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Administration: Common Tasks     Oracle Solaris 11 Information Library
search filter icon
search icon

Document Information

About This Book

1.  Locating Information About Oracle Solaris Commands

2.  Managing User Accounts and Groups (Overview)

3.  Managing User Accounts and Groups (Tasks)

4.  Booting and Shutting Down an Oracle Solaris System

5.  Working With Oracle Configuration Manager

6.  Managing Services (Overview)

7.  Managing Services (Tasks)

8.  Using the Fault Manager

9.  Managing System Information (Tasks)

What's New in Displaying and Changing System Information

Support for Administratively Provided driver.conf Files

Displaying System Information (Task Map)

Displaying System Information

How to Display a System's Release 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 Default and Customized Property Values for a Device

How to Display the Date and Time

Identifying Information About Chip Multithreading Features

How to Display a System's Physical Processor Type

How to Display a System's Logical Processor Type

Changing System Information (Task Map)

Changing System Information

How to Manually Set a System's Date and Time

How to Set Up a Message-Of-The-Day

How to Change a System's Identity (nodename)

10.  Managing System Processes (Tasks)

11.  Monitoring System Performance (Tasks)

12.  Managing Software Packages (Tasks)

13.  Managing Disk Use (Tasks)

14.  Scheduling System Tasks (Tasks)

15.  Setting Up and Administering Printers by Using CUPS (Tasks)

16.  Managing the System Console, Terminal Devices, and Power Services (Tasks)

17.  Managing System Crash Information (Tasks)

18.  Managing Core Files (Tasks)

19.  Troubleshooting System and Software Problems (Tasks)

20.  Troubleshooting Miscellaneous System and Software Problems (Tasks)


Changing System Information

This section describes commands that enable you to change general system information.

How to Manually Set a System's Date and Time

  1. Become an administrator.
  2. Enter the new date and time.
    # 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.

  3. Verify that you have reset your system's date correctly by using the date command with no options.

Example 9-8 Manually Setting a System's Date and Time

The following example shows how to use the date command to manually set a system's date and time.

# date
Monday, September 13. 2010 02:00:16 PM MDT
# date 0921173404
Thu Sep 17:34:34 MST 2010

How to Set Up a Message-Of-The-Day

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.

  1. Become the root role.
    $ su -

    Note - This method works whether root is a user or a role.

  2. Edit the /etc/motd file and add a message of your choice.

    Edit the text to include the message that will be displayed during user login. Include spaces, tabs, and carriage returns.

  3. Verify the changes by displaying the contents of the /etc/motd file.
    $ cat /etc/motd
    Welcome to the UNIX Universe. Have a nice day.

Example 9-9 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. 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.

How to Change a System's Identity (nodename)

  1. Become the root role.
  2. To set the name of a host, specify the config/nodename SMF property for the svc:/system/identity:node service, as follows:
    # svccfg -s svc:/system/identity:node setprop config/nodename = some-name