networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Fri Feb 03, 2012 4:06 am 
Offline
Senior Member
Senior Member
User avatar

Joined: Thu Sep 17, 2009 3:06 pm
Posts: 272
In which case it's useful or needed to timestamp log or debug messages with time since the last reload("service timestamps log uptime")? Is anyone using this in practice? :roll:


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 9:06 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Fri Apr 25, 2008 2:16 pm
Posts: 1363
Location: Jacksonville, FL
Certs: CCNP, CCNA:Sec, MCSE
I use 'service timestamps log datetime localtime' on all my stuffs.

_________________
"A problem well stated is a problem half solved". (Charles Kettering)


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 9:13 am 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Jun 23, 2011 3:17 pm
Posts: 579
Certs: CCNA, CCNA Security
Same here, always on

_________________
Networking is much like making love to a beautiful woman
Slide your equipment in to the rack, Stick your plug in the socket, and if you have done it right at the end everyone is happy


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 9:59 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Tue Aug 21, 2007 2:15 pm
Posts: 8303
Location: Frederick MD
Certs: Instanity
we add the msec option in the logging, for more accurate event timing

service timestamps log datetime msec localtime

_________________
"If you're good at anticipating the human mind. It leaves nothing to chance."
-Jigsaw


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 11:29 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Nov 23, 2009 7:55 pm
Posts: 1395
Location: South Carolina
Certs: CCNP, CCNA Sec
I always use datetime and msec for more accurate timing. If you use uptime, you have to do math which wastes time in my opinion.


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 12:08 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Feb 08, 2010 9:30 am
Posts: 1173
Location: Santiago, Chile
Certs: CCENT, CCNA,CCNP Route
Quote:
I always use datetime and msec for more accurate timing. If you use uptime, you have to do math which wastes time in my opinion.


Not to mention when days or weeks have elapsed:

18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.142.1 not on common subne
t for Vlan14
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.139.1 not on common subne
t for Vlan11
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.141.1 not on common subne
t for Vlan13
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.139.1 not on common subne
t for Vlan11
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.141.1 not on common subne
t for Vlan13
Feb 3 14:08:40: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastE
thernet0/4 (10), with SWITCH2 FastEthernet0/5 (2).
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.139.1 not on common subne
t for Vlan11
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.142.1 not on common subne
t for Vlan14
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.138.1 not on common subne
t for Vlan10
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.139.1 not on common subne
t for Vlan11
18w5d: IP-EIGRP(Default-IP-Routing-Table:150): Neighbor 10.6.141.1 not on common subne

How the hell do you know at what time an event has ocurred?


Last edited by Carlitos_30 on Fri Feb 03, 2012 12:11 pm, edited 3 times in total.

Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 12:10 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Jan 17, 2005 11:01 pm
Posts: 5148
Location: Canada eh
Certs: 350-001, CCNP, CXFF, ITILv3F
At a previous job we had a customer who had the uptime stamps on their gear... And there was a specific reason why they could not use the datetime stamps... But I'll be damned if I remember what that was.

uptime sucks. I avoid it.

_________________
blog.brokennetwork.ca


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 1:34 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Tue Aug 21, 2007 2:15 pm
Posts: 8303
Location: Frederick MD
Certs: Instanity
Carlitos_30 wrote:

How the hell do you know at what time an event has ocurred?



show ver
tells you time singe last reboot, little math and your in.

_________________
"If you're good at anticipating the human mind. It leaves nothing to chance."
-Jigsaw


Top
 Profile  
 
PostPosted: Fri Feb 03, 2012 3:53 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Mon Feb 08, 2010 9:30 am
Posts: 1173
Location: Santiago, Chile
Certs: CCENT, CCNA,CCNP Route
Quote:
show ver
tells you time singe last reboot, little math and your in.


Yes, but if you rest "18w5d" to the "show ver" uptime, doesn't tell you an specific hour like 13:51:24, and this specific hour is always important.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group