log time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2008 08:43 PM - edited 03-05-2019 11:58 PM
Hi, I have configured the local and current date and time, but still the logs are showing 7w6d, but the informations are showing current changes. Can anyone help me?
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2008 09:39 PM
7w6d - time since last reboot.
http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp1029551
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2008 09:40 PM
Logging timestamps require an authoritative time on the router.
Have you configure the following in addition to setting the time?
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
clock timezone IST 5 30
Narayan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2008 12:15 AM
Its is not in IST, I am now in Philippines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2008 12:54 AM
Hi,
If you dont know the time zone detail, configure the exact time with "clock set ..." command in previlage mode..
This will enable log & debug time to be captured at current time..
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2008 07:10 AM
All the discussion about time zones and about how to set the clock are interesting and good but not essential to solving the question that Goutam wants answered about how to get the log messages to show clock time instead of uptime. Narayan was exactly right in suggesting that service timestamps log datetime is the essential command to get the log messages to show clock time. He deserves the rating that he got for it.
HTH
Rick
Rick
