cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2112
Views
15
Helpful
2
Replies

Time mismatch in log file?

John Blakley
VIP Alumni
VIP Alumni

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 2

Jon Marshall
Hall of Fame
Hall of Fame

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

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 ***