Time mismatch in log file?

Unanswered Question
Oct 15th, 2008

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.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Jon Marshall Wed, 10/15/2008 - 07:31


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 ?


John Blakley Wed, 10/15/2008 - 07:38

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. :-)



This Discussion