09-03-2007 08:30 PM - edited 03-03-2019 06:35 PM
Hi all,
I want to set the clock of switch and I have typed clock set 12:00:00 4 Sep 2007 to do it..
When I issue "show clock" command the time is match with the current time.
4948A#sho clock
12:01:21.427 UTC Tue Sep 4 2007
But when I "show logging" ----time is not match with current time. How can I make it to current time?
02:16:27: %SYS-5-CONFIG_I: Configured from console by console
02:16:44: %SYS-6-CLOCKUPDATE: System clock has been updated from 21:03:31 UTC Mon Sep 3 2007 to 12:00:00 UTC Tue Sep 4 2
007, configured from console by console.
02:17:10: %SYS-5-CONFIG_I: Configured from console by console
09-03-2007 11:17 PM
hi,
You can set the clock via this command "clock set 12:00:00 4 Sep 2007" (this command is entered in the enable mode, not the global configuration mode) but be aware that this clock will be reset when the router/switch reloads and will need to be reconfigured, the other recommended method is to use ntp if you are connected to the internet:
HTH,
Mohammed Mahmoud.
09-03-2007 11:44 PM
Hello Jack.
Please use the following commands:
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
This will enable logging to use your set time.
Hope this helps.
Please rate all helpful posts.
09-03-2007 11:59 PM
Hi,
Sorry Jack, missed your main concern, and i think that Pavlo has covered it (using the service timestamps to reflect the time in the logging, its is most probably using "uptime" in your configuration, changing it with "datetime" will solve your issue).
HTH,
Mohammed Mahmoud.
09-03-2007 11:52 PM
You need this command:
service timestamps log datetime localtime
Pls Rate
Reagard
Mats
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