How to (more) safely run debugs on Cisco routers

Home -> Networking -> Cisco -> Routers

6690 views

From the computer of: abanks (41 recipes)
Created: Dec 15, 2006     Updated: Dec 18, 2006


1 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Running debug commands can bring a busy router to a crawl. Not sending the output to the console can help. This tech-recipe describes turning off console debugging output and techniques for viewing debug information in a router-friendly way.

Some debug commands, like

debug ip packet detail

can cause a router to stop responding while it attempts to display all the data you've requested. Frequently, it's trying to force a lot of data down a 9600 baud (slow) console port.

So, we can turn this off!

config t
no logging console


But, now debugs are not very useful, since they won't display. We can telnet to the router, then

terminal monitor


to send all the debug output down the pipe to the telnet client. Better, but this can still backfire.

We can just push all the messages to a buffer:

logging buffered <buffer size>


then view them with

show log


Another option which will make some debug commands, like

debug ip packet


safer is to specify an access-list for just the traffic you want. For example:

access-list 100 permit ip any host 1.1.1.1
access-list 100 permit ip host 1.1.1.1 any

debug ip packet detail


Will give you IP packet detail for any packets coming from or going to a host with ip address 1.1.1.1.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




1 Recipe comments: View comments

How to (more) safely run debugs on Cisco routers by AWfki



Related recipes:

  Using reload to safely configure remote Cisco routers
  Configure On-Demand Routing (ODR) on Cisco routers
  Configure IGRP routing on a Cisco router
  Increase or change Cisco router log size
  Authenticate Cisco RIP version 2 (RIPv2) Routers
  Cisco HSRP (like VRRP) - Redundant gateway router configuration
  Configure Cisco router as a basic DHCP server
  Enable and password protect telnet logins to Cisco routers
  Authenticate Cisco EIGRP routers
  OSPF Authentication on Cisco Routers

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.