Cisco devices have two clocks, one hardware and one software. By default the software clock is synced from the hardware one. But there are many things thing that we can modify for our environment.
To view the current time configured:
R0#show clock
*23:21:08.907 UTC Sun May 24 200
R0#show clock detail
*23:21:26.111 UTC Sun May 24 2009
Time source is hardware calendar
Set the software clock time:
R0#clock set 11:26:30 24 MAY 2009
R0#show clock
11:26:32.839 GMT Sun May 24 2009
To change your timezone:
R0(config)#clock timezone IST +5 30
R0(config)#do show clock
11:39:08.535 IST Sun May 24 2009
If you want to set the daylight savings, use command "clock summer-time" with correct options. See "clock summer-time ?"
To sync hardware and software clocks:
R0#clock read-calendar - Read the hardware calendar into the clock
R0#clock update-calendar - Update the hardware calendar from the clock
To view and set the hardware clock:
R0#show calendar
00:40:37 GMT Mon May 25 2009
R0#calendar set 11:45:30 24 MAY 2009
To set time via NTP, see my post about Cisco NTP client configuration
No comments:
Post a Comment