incorrect time in log file

Answered Question
Jun 19th, 2008

we have several cisco switches. we have NTP setup running on a msfc of a 6500. switches are set to get time from 6500. the show clock command on the switches show the correct time. But when something is put in the log file of the switch,the time is 4 hours ahead. Any ideas?? Thanks

I have this problem too.
0 votes
Correct Answer by Kevin Dorrell about 8 years 5 months ago

It sounds like it is logging with UTC timestamps instead of the local timezone. Try:

service timestamps log datetime localtime show-timezone

Kevin Dorrell

Luxembourg

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (5 ratings)
Loading.
Correct Answer
Kevin Dorrell Thu, 06/19/2008 - 06:45

It sounds like it is logging with UTC timestamps instead of the local timezone. Try:

service timestamps log datetime localtime show-timezone

Kevin Dorrell

Luxembourg

Richard Burts Fri, 06/20/2008 - 11:40

William

If that was it, then rating the post (with a 5) and using the check mark assignment would be a good way to indicate to people who read the forum that a solution had been provided.

HTH

Rick

Actions

This Discussion