10-15-2008 07:29 AM - edited 03-06-2019 01:57 AM
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
10-15-2008 07:31 AM
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
10-15-2008 07:38 AM
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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide