Cisco Cisco Packet Data Gateway (PDG) Guida Alla Risoluzione Dei Problemi
Exec Mode Commands (A-C)
▀ clock set
▄ Cisco ASR 5000 Series Command Line Interface Reference
OL-22947-02
clock set
Sets the system time.
Product
All
Privilege
Security Administrator, Administrator
Syntax
Specifies the date and time to set the system clock. Specified as YYYY:MM:DD:HH:mm or
YYYY:MM:DD:HH:mm:ss. Where YYYY is a 4-digit year, MM is a 2-digit month in the range 01 through
12, DD is a 2-digit day in the range 01 through 31, HH is a 2-digit hour in the range 00 through 23, mm is a
2-digit minute in the range 00 through 59, and ss is a 2 digit second in the range 00 through 59.
YYYY:MM:DD:HH:mm:ss. Where YYYY is a 4-digit year, MM is a 2-digit month in the range 01 through
12, DD is a 2-digit day in the range 01 through 31, HH is a 2-digit hour in the range 00 through 23, mm is a
2-digit minute in the range 00 through 59, and ss is a 2 digit second in the range 00 through 59.
Usage
Set the clock to adjust the system clock for such things as timing drift, day-light savings adjustment, etc. New
settings are immediately applied to all CPUs in the system.
settings are immediately applied to all CPUs in the system.
Important:
This command should only be used if there is no NTP server enabled for any context. If NTP is
running on the system, this command returns a failure.
Example
The following commands set the system clock where one sets the exact second as well.
The following commands set the system clock where one sets the exact second as well.