Using Other Time-Related Commands (Tasks)
The following procedure can be used to update the current time when ever
needed, without having to setup NTP.
How to Synchronize Date and Time From Another System
- Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
- Reset the date and time to synchronize with another system, by using the
# rdate another-system
Name of the another system
- Verify that you have reset your system's date correctly by using the date
The output should show a date and time that matches that of the
Example 3-1 Synchronizing Date and Time From Another System
The 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
Tue Jun 5 11:08:27 MDT 2001
earth# rdate starbug
Tue Jun 5 14:06:37 2001
Tue Jun 5 14:06:40 MDT 2001