Solved

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

Posted on 2011-09-09
4
208 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH logs Cisco switch 4 63
Best sims for HP switches 4 39
2 routers, one cable modem 10 86
access vs trunk with voice vlan 2 20
This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now