incorrect time in log file

Answered Question
Jun 19th, 2008
User Badges:

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

Correct Answer by Kevin Dorrell about 9 years 1 month 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 (7 ratings)
Loading.
Correct Answer
Kevin Dorrell Thu, 06/19/2008 - 06:45
User Badges:
  • Green, 3000 points or more

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


broow Thu, 06/19/2008 - 06:55
User Badges:

you da man,

thanks, that was it.

Richard Burts Fri, 06/20/2008 - 11:40
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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