How to set clock on a cisco device?

Answered Question
Oct 1st, 2007
User Badges:

Hi I have NTP servers, timezones and summertime set up on our devices, but while 'show clock' does show the correct time (without the star too), 'show log' runs one hour behind.

What can I do to sort it out?

Thank you.

Correct Answer by Danilo Dy about 9 years 7 months ago

Hi,


Apply the following config


service timestamps debug datetime msec show-timezone localtime

service timestamps log datetime msec show-timezone localtime



Regards,

Dandy

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
Correct Answer
Danilo Dy Mon, 10/01/2007 - 05:58
User Badges:
  • Blue, 1500 points or more

Hi,


Apply the following config


service timestamps debug datetime msec show-timezone localtime

service timestamps log datetime msec show-timezone localtime



Regards,

Dandy

VictorAKur Mon, 10/01/2007 - 06:12
User Badges:

Thank you very much - one question - why 'service timestamps debug datetime msec show-timezone localtime' ?

Danilo Dy Mon, 10/01/2007 - 06:25
User Badges:
  • Blue, 1500 points or more

Hi,


Command "service timestamps"


Options;

debug = Indicates that the timestamp should be applied to debugging messages.

log = Indicates that the timestamp should be applied to system logging messages.

uptime = Time stamp with the time since the system was rebooted. The time stamp format for uptime is HHHH:MM:SS.

datetime = Time stamp with the date and time. The time stamp format for datetime is MMM DD HH:MM:SS.

msec = Include milliseconds in the time stamp.

localtime = Time stamp relative to the local time zone.

year = Include the year in the datetime format.

show-timezone = Include the time zone name in the time stamp.


Regards,

Dandy


Danilo Dy Mon, 10/01/2007 - 07:03
User Badges:
  • Blue, 1500 points or more

Glad to help :)


Regards,

Dandy

Actions

This Discussion