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.

Time mismatch in log file?

I have a 3750 that I noticed has the incorrect time in a log file. To prove this, I cleared the log and waited for it to log something. Then I did a sh clock:

In log file:

006252: Oct 15 15:22:57

sh clock:

10:23:45.665 C Wed Oct 15 2008

What would cause this? I have service timestamps log datetime enabled.

Thanks,

John

HTH, John *** Please rate all useful posts ***
2 REPLIES
Hall of Fame Super Blue

Re: Time mismatch in log file?

John

Is this switch getting it's time from a timeserver ?

NTP is very useful for keeping accurate log timestamps across your network.

Are you sure you have set the correct timezone for this switch ?

Jon

Re: Time mismatch in log file?

I got it. I set service timestamps to localtime. It was using NTP, but the NTP server time was correct, and the routers clock matched that. The logs themselves weren't matching with that time, so I changed it to:

service timestamps log datetime localtime

That fixed it. :-)

Thanks!

HTH, John *** Please rate all useful posts ***
751
Views
5
Helpful
2
Replies