Solved

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

Posted on 2011-09-09
4
214 Views
Last Modified: 2012-05-12
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?
0
Comment
Question by:Titian
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
Ernie Beek earned 250 total points
ID: 36509228
Try adding: service timestamps datetime
0
 
LVL 14

Assisted Solution

by:Otto_N
Otto_N earned 250 total points
ID: 36509240
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
 

Author Closing Comment

by:Titian
ID: 36509280
Well, that was easy!
0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36509286
Even with Cisco, sometimes things are easy ;)
Thx for the points.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question