cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1629
Views
10
Helpful
5
Replies

How to set clock on a cisco device?

VictorAKur
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Danilo Dy
VIP Alumni
VIP Alumni

Hi,

Apply the following config

service timestamps debug datetime msec show-timezone localtime

service timestamps log datetime msec show-timezone localtime

Regards,

Dandy

View solution in original post

5 Replies 5

Danilo Dy
VIP Alumni
VIP Alumni

Hi,

Apply the following config

service timestamps debug datetime msec show-timezone localtime

service timestamps log datetime msec show-timezone localtime

Regards,

Dandy

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

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

Thank you again all worked.

Glad to help :)

Regards,

Dandy

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: