Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

clock set

Unanswered Question
Sep 3rd, 2007
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
mohammedmahmoud Mon, 09/03/2007 - 23:17
User Badges:
  • Green, 3000 points or more


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:




Mohammed Mahmoud.

Pavel Bykov Mon, 09/03/2007 - 23:44
User Badges:
  • Silver, 250 points or more

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.

mohammedmahmoud Mon, 09/03/2007 - 23:59
User Badges:
  • Green, 3000 points or more


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).


Mohammed Mahmoud.

mruuth Mon, 09/03/2007 - 23:52
User Badges:

You need this command:

service timestamps log datetime localtime

Pls Rate




This Discussion