Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Time Stamps wrong in log.

I'm having an issue with a few of the routers on my network. The output of the show clock command displays the correct time, but the log entries are off by about 5-ish hours. Is the router sitting in a time-warp? Events are happening in the future(?) :P

Ex:

May 8 17:39:05.144: %ENTITY_ALARM-6-INFO: ASSERT MINOR AT1/0 Physical Port Link Down

<hostname>#sh clock

12:45:51.975 cdt Tue May 8 2007

Config is as such:

clock timezone cst -6

clock summer-time cdt recurring 2 Sun Mar 2:00 1 Sun Nov 2:00

ntp clock-period 17179830

ntp update-calendar

ntp server <IP of NTP Server> prefer

The router that I copied the above example from is a 7206 running:

Version 12.4(7b)

I also see this problem with some other 7206s as well as a few 1841s. Doesn't seem to be any correlation. Ideas why this is??

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Time Stamps wrong in log.

The log messages are showing a UTC time stamp. Please include the service portion of the config as well. You probably want to add:

service timestamps log datetime localtime

3 REPLIES
Cisco Employee

Re: Time Stamps wrong in log.

The log messages are showing a UTC time stamp. Please include the service portion of the config as well. You probably want to add:

service timestamps log datetime localtime

New Member

Re: Time Stamps wrong in log.

As requested:

service timestamps debug datetime msec

service timestamps log datetime msec

Cisco Employee

Re: Time Stamps wrong in log.

Yep, just add a localtime in there, and you'll get localized time stamps. You might also want to add show-timezone to see to what timezone they're localized. And because I'm pedantic, timezones are usually written in all upper case (i.e. CST and CDT).

538
Views
5
Helpful
3
Replies