06-17-2006 07:44 AM - edited 03-03-2019 03:41 AM
hi mates :)
anybody knows if I can set the clock based on hardware calendar? Please see how I tried and failed:
switch#show clock detail
*05:00:29.823 UTC Sat Jun 17 2006
Time source is hardware calendar.
unfortunately the time switch shows is wrong (One hour faster). I tried to fix it with the command:
switch#clock set 04:00:00 17 Jun 2006
switch#copy running-config startup-config
switch#show clock
04:01:01.507 UTC Sat Jun 17 2006
Time source is user configuration.
it worked until I re-started the switch. After the re-start, it showed the wrong time again (One hour faster again).
Is there any way to fix it and get the correct time even after re-start th switch?
thanks for help :)
06-17-2006 09:40 AM
The quick answer is no , it will always be wrong after unless you use a ntp server .
06-17-2006 09:42 AM
Are you looking for this:
Setting the Software Clock from the Hardware Clock
Anyway , as the last post the best is to configure a NTP
HTH,
if it does please rate this post.
vlad
06-17-2006 04:17 PM
I will agree that the best way to set the clock is via NTP. However, it is desireable and possible to update the hardware clock (when there is one). If there is a network failure, and your router or switch reboots, you will still want your time rightly set.
Use the command
clock update-calendar
to set the hardware clock from the software clock.
Check
Use the command
ntp update-calendar
to periodically update the hardware clock from ntp
Use the command
calendar set
to manually set the hardware clock
Note that not all Cisco routers and switches have hardware clock that keeps time.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide