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  [ 5 posts ] 
Author Message
 Post subject: 3 days no debug for you
PostPosted: Thu Jan 19, 2012 7:24 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Thu Apr 17, 2008 6:44 pm
Posts: 6071
Location: Perth, WA
Certs: CCNA
Something I feel that gets glazed over in the real world that I took for granted when just labbing is the debug command. When you have one device with a million plus connections running through it running a debug command isn't always feasible.

In most cases you just can't do it. In the lab it's as easy as debug <this> and debug <that> and also debug <someofthis>. Sure you can get granular but in most cases that I've been in even specific debug commands targeting one area can cause too much load on a device.

If you have to and there's no way around it though make sure to no console logging. It might just give you those 2 extra seconds to turn debugging off.

_________________
- Pete


Top
 Profile  
 
PostPosted: Thu Jan 19, 2012 9:04 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Sat Dec 19, 2009 11:52 pm
Posts: 1197
Location: West FL
Certs: CCNP, JNCIA, MCSA
This got me thinking....if you have nothing connected to the console port, then is the switch/router logging to console in the first place? And if it is not, then is 'no logging console' really doing anything?

Over an SSH/telnet connection, the switch/router is logging to the vty session (assuming you have 'terminal monitor' on). Even with 'no logging console,' it still logs to the vty session:

Code:
Router#term mon
Router#sh run | i logging monitor
logging monitor informational
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no logging console
Router(config)#end
Router#
*Jan 20 03:11:10.610: %SYS-5-CONFIG_I: Configured from console by killabee on vty0 (1.1.1.1)
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#end
Router#
*Jan 20 03:11:15.002: %SYS-5-CONFIG_I: Configured from console by killabee on vty0 (1.1.1.1)
Router#


This also assumes you have 'logging monitor' configured. In my case, I had it configured to log up to informational messages. It may also be appropriate to do 'no logging monitor' as well and have the switch/router just log to the buffer (assuming you have 'logging buffered' configured). At that point it'll only be using CPU cycles to log to one source.


Top
 Profile  
 
PostPosted: Thu Jan 19, 2012 9:56 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Thu Apr 17, 2008 6:44 pm
Posts: 6071
Location: Perth, WA
Certs: CCNA
The thing is thought unless you've got bulk memory/space you aren't going to know what your buffer should be and could miss information. Hence the point of displaying it on screen.

But when a device is under load some of these debug commands just rape stuff.

_________________
- Pete


Top
 Profile  
 
PostPosted: Fri Jan 20, 2012 4:26 am 
Offline
CCIE #38070
CCIE #38070
User avatar

Joined: Wed Jun 18, 2008 7:49 am
Posts: 12488
Location: London, UK
Certs: CCIE ,CC-NP/IP, JNCIP-SP, JNCIS-ENT, BC-/SPNE/NP
If you simply must debug, debug through an ACL and set an interface (or subinterface)

_________________
www.mellowd.co.uk/ccie/


Top
 Profile  
 
PostPosted: Fri Jan 20, 2012 10:32 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Tue Aug 21, 2007 2:15 pm
Posts: 8459
Location: Frederick MD
Certs: Instanity
killabee wrote:
This got me thinking....if you have nothing connected to the console port, then is the switch/router logging to console in the first place? And if it is not, then is 'no logging console' really doing anything?


If a tree falls in the forest and nobody is there to hear it. does it make a sound ?

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


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: raven, vlad777 and 7 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