Can I get Cisco device logs to show the time instead of the uptime?

At the moment, I've got telnet sessions to my L3 switches open, in a cmd window. When something happens, the log messages show the uptime instead of the absolute time. Not so useful.

NTP is already set up, so it should be possible to see the time instead of time since reboot?
TitianAsked:
Who is Participating?
 
Ernie BeekConnect With a Mentor ExpertCommented:
Try adding: service timestamps datetime
0
 
Otto_NConnect With a Mentor Commented:
I think Ernie can be right, but I'm using:

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

This puts the debug (your command output) and the log-file ("show log") to use the local time, up to millisecond level, and with an indication of the set timezone.
0
 
TitianAuthor Commented:
Well, that was easy!
0
 
Ernie BeekExpertCommented:
Even with Cisco, sometimes things are easy ;)
Thx for the points.
0
All Courses

From novice to tech pro — start learning today.