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

What is the reason time is different in the log and clock?

Hi,

Looking at the 877 router log thru the web interface, I am seeing these last few lines:

Jul 18 15:30:02.630: %LINK-3-UPDOWN: Interface ATM0, changed state to down
Jul 18 15:30:34.226: %LINK-3-UPDOWN: Interface ATM0, changed state to up
Jul 18 15:30:48.262: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to down
Jul 18 15:31:10.784: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up

The interesting thing is that current time on the router is:

12:32:29.924 EDT Sun Jul 18 2010
Time source is NTP
Summer time starts 02:00:00 EST Sun Mar 14 2010
Summer time ends 02:00:00 EDT Sun Nov 7 2010
cisco877#

I.e. the log shows either different time zone or just some random numbers. What am I doing wrong and how can I know what time the router's modem dropped DSL connection?

Thanks

Zen

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: What is the reason time is different in the log and clock?

Zen

It appears that your log is using time that is local router time + 3 hours.

We might be able to provide better answers if you would post the output of show run | include time

HTH

Rick

5 REPLIES
Hall of Fame Super Silver

Re: What is the reason time is different in the log and clock?

Hello Zen,

there is an option (localtime) in the command that specifies the use of date time in log messages

if you use

config t

service timestamps log datetime msec localtime

you should be able to have the same time in both log messages and on the router

see

http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_r1.html#wp1030116

Hope to help

Giuseppe

New Member

Re: What is the reason time is different in the log and clock?

That's great. Can I also find out what time the logs currenly use so that I can provide correct down time to the ISP for investigation?

Hall of Fame Super Silver

Re: What is the reason time is different in the log and clock?

Zen

It appears that your log is using time that is local router time + 3 hours.

We might be able to provide better answers if you would post the output of show run | include time

HTH

Rick

New Member

Re: What is the reason time is different in the log and clock?

cisco877#show run | include time

service timestamps debug datetime msec

service timestamps log datetime msec localtime

clock timezone EST -5

clock summer-time EDT recurring

ip http timeout-policy idle 60 life 86400 requests 10000

This feature requires the one-time use of the username "cisco"

scheduler max-task-time 5000

Hall of Fame Super Silver

Re: What is the reason time is different in the log and clock?

Zen

Thank you for providing the information that I asked about. Would I be correct in assuming that you have already implemented the suggestion by Giuseppe to include localtime in the timestamps command?

From what you have posted I would expect that the timestamp in your log messages would now be the same as the time on the router. If that is not the case then please provide a new sample of log messages with time stamps and the ouput of show clock detail on the router at the time that the log messages were generated.

HTH

Rick

563
Views
0
Helpful
5
Replies