Time mismatch in log file?

Unanswered Question
Oct 15th, 2008
User Badges:
  • Purple, 4500 points or more

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Jon Marshall Wed, 10/15/2008 - 07:31
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

John Blakley Wed, 10/15/2008 - 07:38
User Badges:
  • Purple, 4500 points or more

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!

Actions

This Discussion