Cisco Systems A9K24X10GETR, ASR 9000 Viewing Debugging Status, Disabling Debugging for a Service

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 127
Image 127
Viewing Debugging Status

Chapter 6 Troubleshooting the Cisco IOS XR Software

Basic Troubleshooting Commands

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

Viewing Debugging Status

Type the show debug command to display the debugging features enabled for your terminal session. The terminal session is labeled tty and represents your connection to the router through a specific port, which might be the console port, auxiliary port, or Management Ethernet interface. In the following example, the command display indicates that debugging is enabled for two features (AAA and ipv4 io icmp) from a terminal session on the console port of RSP1:

RP/0/RSP0/CPU0:router# show debug

#### debug flags set from tty 'con0_RSP1_CPU0' ####

aaa all flag is ON

ipv4 io icmp flag is ON

RP/0/RSP0/CPU0:router# no debug aaa all

RP/0/RSP0/CPU0:router# show debug

#### debug flags set from tty 'con0_RSP1_CPU0' ####

ipv4 io icmp flag is ON

The preceding example is for a Cisco CRS-1 router. On a Cisco XR 12000 Series Router, the slot number of the tty ID is 0 or 1 instead of RSP0 or RSP1.

Type the show debug conditions command to display the conditional debugging status. For example:

RP/0/RSP0/CPU0:router# show debug conditions

#### debug conditions set from tty 'con0_RSP1_CPU0' ####

interface condition is ON for interface 'gi0/2/0/1'

Disabling Debugging for a Service

Use the no form of the debug command or the undebug command to turn off debugging for a service or subsystem.

In the following example, the no debug command disables debugging for the AAA feature:

RP/0/RSP0/CPU0:router# no debug aaa all

RP/0/RSP0/CPU0:router# show debug

#### debug flags set from tty 'con0_RSP1_CPU0' ####

ipv4 io icmp flag is ON

You can also turn off debugging from the undebug mode, as shown in the following example:

RP/0/RSP0/CPU0:router# undebug

RP/0/RSP0/CPU0:router(undebug)# aaa all

RP/0/RSP0/CPU0:router(undebug)# exit

Disabling Debugging for All Services Started at the Active Terminal Session

Use the undebug all or no debug all command to turn off all debugging started by the active terminal session. For example, if you enter either of these commands while connected to the router through the console port on the active RP, all debug sessions started from that console port are disabled. In the following example, debugging for all services is disabled and then verified:

RP/0/RSP0/CPU0:router# undebug all

RP/0/RSP0/CPU0:router# show debug

No matching debug flags set

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

 

OL-17502-01

6-5

 

 

 

Page 127
Image 127
Cisco Systems A9K24X10GETR, ASR 9000, A9KMOD80TR manual Viewing Debugging Status, Disabling Debugging for a Service