Logs showing different timestamp than router time

Answered Question
Dec 1st, 2009
User Badges:

okay, stupid question:

i've noticed on acouple routers that when i do a "sh logg" the timestamps are way off or in military time.


is there a way to change the timestamps to reflect the router's time?


Gary

Correct Answer by Leo Laohoo about 7 years 7 months ago

You need the following:

service timestamps debug datetime localtime show-timezone
service timestamps log datetime localtime show-timezone

And then, this is the time/date settings for Australia.  Choose how you see fit:

clock timezone AEST 10
clock summer-time AEDST recurring 1 Sun Oct 2:00 1 Sun Apr 2:00

Syntax:
clock timezone WORD
clock summer-time WORD recurring ?

Hope this helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Leo Laohoo Tue, 12/01/2009 - 14:54
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

You need the following:

service timestamps debug datetime localtime show-timezone
service timestamps log datetime localtime show-timezone

And then, this is the time/date settings for Australia.  Choose how you see fit:

clock timezone AEST 10
clock summer-time AEDST recurring 1 Sun Oct 2:00 1 Sun Apr 2:00

Syntax:
clock timezone WORD
clock summer-time WORD recurring ?

Hope this helps.

Leo Laohoo Tue, 12/01/2009 - 15:13
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

Thanks for the ratings.

Actions

This Discussion