Setting the System Clock and Time Zone
Use the following command example to configure the system clock and time zone:
clock set date
:
time
configure
clock timezone timezone
[
local
]
end
Notes:
•
Enter the date and time in the format YYYY:MM:DD:HH:mm or YYYY:MM:DD:HH:mm:ss.
•
Refer to the online Help for the
clock timezone
command for a complete list of supported time zones.
•
The optional
local
keyword indicates that the time zone specified is the local timezone.
•
Daylight Savings Time is automatically adjusted for time zones supporting it.
Save your configuration as described in the
Verifying and Saving Your Configuration
chapter.
Verifying and Saving Your Clock and Time Zone Configuration
Enter the following command to verify that you configured the time and time zone correctly:
show clock
The output displays the date, time, and time zone that you configured.
Configuring Network Time Protocol Support
This section provides information and instructions for configuring the system to enable the use of the Network
Time Protocol (NTP).
Configure the system clock and time zone prior to implementing NTP support. This greatly reduces the
time period that must be corrected by the NTP server.
Important
Many of the services offered by the StarOS require accurate timekeeping derived through NTP. If the time
reference(s) used by StarOS are not accurate, the services may be unreliable. For this reason it should be
assumed that normal system operation requires that NTP be configured.
The system uses NTP to synchronize its internal clock to external time sources (typically GPS NTP sources,
or other Stratum 2 or 3 servers, switches or routers).
The system should have:
•
NTP enabled.
•
NTP configured for use in the local context only. Use of other contexts (which can be specified in the
enable configurable) will cause issues.
•
NTP configured for at least three external NTP servers. With three or more servers, outlyers and broken
or misconfigured servers can be detected and excluded. Generally, the more servers the better (within
reason).
ASR 5500 System Administration Guide, StarOS Release 21.5
26
System Settings
Setting the System Clock and Time Zone