Solved

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

Posted on 2011-09-09
4
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…
Suggested Courses

724 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