C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Clock Commands on Cisco IOS XR Software
clock set
SMR-76
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
clock set
To change the software clock settings, use the
clock set
command in EXEC mode.
clock
set
hh
:
mm
:
ss
{
day
month
year
|
month
day
year
}
Syntax Description
Defaults
Clock is not set.
Command Modes
EXEC
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Generally, if the system is synchronized by a valid outside timing mechanism, such as a Network Time
Protocol (NTP) clock source, or if you have a networking device with calendar capability, you need not
set the software clock. Use the
clock set
command if no other time sources are available. The time
specified in this command is relative to the configured time zone.
Task ID
Examples
Setting the Software Clock
This example shows how to set the software clock using the
clock set
hh
:
mm
:
ss day month year
form of
the command
:
RP/0/RP0/CPU0:router#
clock set 14:12:00 10 feb 2005
14:12:00.114 JST Fri Feb 10 2005
This example shows how to set the software clock using the
clock set
hh
:
mm
:
ss month day year
form of
the command
:
RP/0/RP0/CPU0:router#
clock set 14:38:00 feb 10 2005
14:38:00.069 PST Tue Feb 10 2005
hh
:
mm
:
ss
Current time in hours (24-hour format), minutes, and seconds. Colons are
required between values.
day
Current day (by date) in the month.
month
Current month (by name).
year
Current year (no abbreviation). Enter a valid four-digit year.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
host-services
execute