cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1005
Views
0
Helpful
5
Replies

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

Zenith888
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

HTH

Rick

View solution in original post

5 Replies 5

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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?

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

HTH

Rick

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

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

HTH

Rick
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:

Review Cisco Networking products for a $25 gift card