Delayed clock at show log command

Unanswered Question
Nov 26th, 2007

My company bought a Catalyst 2960(flash:c2960-lanbase-mz.122-35.SE5) but the logs at show log command are displaing a very delayed time from the current clock time (show clock) in the switch. Is it a IOS release issue or there is a specific command to syncronize the logs with the clock sets ?

Brgds Fabio Nunes - Brazil

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Kevin Dorrell Mon, 11/26/2007 - 06:57

Normally the timestamps on the messages are pretty accurate, and are exactly what the clock says at the time the event occurred.

I wonder whether you have your timezone set up correctly, and whether your logging is configured to show you local time.

For your timezone, you should use the configuration command clock timezone XYZ -3. I'm presuming that Brazil has UTC-3 normally in Winter, and that your winter timezone is called XYZ.

Then tell it about your summertime timezone. That will require a command like clock summer-time ZYX recurring last Sun Oct 03:00 last Sun Apr 02:00. That tells it the dates to apply an hour offset for daylight saving time, and the name of your summertime timezone.

Once you have set up your timezones, set the clock to your local time, or let NTP do it for you.

Now the bit you asked about. You need service timestamps log datetime localtime. I reckon it is that localtime parameter you are missing.

Kevin Dorrell



This Discussion