Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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?
  • 2
2 Solutions
Ernie BeekExpertCommented:
Try adding: service timestamps datetime
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.
TitianAuthor Commented:
Well, that was easy!
Ernie BeekExpertCommented:
Even with Cisco, sometimes things are easy ;)
Thx for the points.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now