Cisco Cisco ASR 5000

Page of 9109
Exec Mode Commands (A-C)   
▀  clock set 
 
 
▄  Command Line Interface Reference, StarOS Release 18 
4028 
   
clock set 
Sets the system time. 
Product
 
All 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec 
The following prompt is displayed in the Exec mode: 
[local]host_name
Syntax
 
clock set date_time 
date_time
 
Specifies the date and time to set the system clock in the format YYYY:MM:DD:HH:mm or 
YYYY:MM:DD:HH:mm:ss. Where: 
 
YYYY = 4-digit year 
 
MM = 2-digit month in the range 01 through 12 
 
DD = 2-digit day in the range 01 through 31 
 
HH = 2-digit hour in the range 00 through 23 
 
mm = 2-digit minute in the range 00 through 59 
 
 ss = 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. 
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. 
clock set 2011:08:05:02:30 
clock set 2011:08:05:02:31:30