Cisco CCNA 200-301 – Show & Debug Troubleshooting

Show Commands

Show commands are used for various purposes such as management, configuration verification, and viewing statistics of various protocols and processes in Cisco IOS. To view all the available show commands in Cisco IOS press “?” after “show”. A brief output of show ? is shown in the picture below.

There are more sub-commands in each category, an output of “show ip ospf ?” shows different show commands that can be used to view various ospf statistics and parameters

 

The table below displays the most commonly used Show commands and their purpose

Show Command Purpose
 

Show Version

To display information about the currently loaded software along with hardware and device information
 

Show running-config

To display the contents of the current running configuration file
 

Show startup-config

To display the contents of the configuration stored in NVRAM
Show ip interface brief Displays a summary of the usability status information for each interface
Show ip protocols To display the parameters and current state of the active routing protocol process
Show ip route To display the current state of the routing table

An output of Show ip interface brief command is also shown below, this command is frequently used to monitor the status of an Interface.

Debug Commands

Cisco IOS Debug Commands are used for troubleshooting purposes. They display information about various router processes and operations. Using Debug commands information about traffic generated and received by the Router can also be viewed. Cisco IOS treats the Debug process as high-priority and it can consume a significant amount of router resources thus extensive debugging in production networks is not encouraged. Debug tools are not recommended to be used for monitoring purposes instead debugging must only be used temporarily for troubleshooting and should be turned off as soon as the issues are identified.

By default Cisco IOS sends debug output to the console when you want to view the debug output from the telnet session the following command must be specified in the privileged EXEC mode

Router# Terminal Monitor

Debug output may also be redirected to the Internal buffer of a Cisco Router or to a Syslog Server. To do so we have to configure message logging using logging command in configuration mode.

The table below shows the logging command options and their explanation

logging on Turns on logging
logging console

[level]
Sends log messages to console
logging buffered [level] Sends log messages to internal buffer memory
logging monitor [level] Sends log messages to virtual terminal sessions
logging trap [level] Sends log message to syslog server
logging [ip-address] Specifies ip-address of the syslog server

The level keyword specifies message severity levels. There are eight severity levels and logging at a particular level enables logging for that level and all levels below it.

Level Name
0 Emergencies
1 Alerts
2 Critical
3 Errors
4 Warnings
5 Notifications
6 Informational
7 Debugging

Pressing ? after the debug keyword invokes the Cisco IOS help and all the debug command options are listed.

The figure below shows a debug output when the “debug ip packet detail” command is used. This command will show packets sourced from the router or destined to the router. To view the debug output of transit packets, Cisco Express Forwarding (CEF) switching must be disabled since debug only shows the output of process-switched packets. In the figure below the router received an ICMP echo request packet from 10.1.1.2 and it replied with an ICMP echo reply packet.

 

Show Command Purpose
 

Show Version

To display information about the currently loaded software along with hardware and device information
 

Show running-config

To display the contents of the current running configuration file
 

Show startup-config

To display the contents of the configuration stored in NVRAM
Show ip interface brief Displays a summary of the usability status information for each interface
Show ip protocols To display the parameters and current state of the active routing protocol process
Show ip route To display the current state of the routing table

In this lesson, we covered a general overview of the Cisco IOS Show and Debug commands. Any Engineer who works with Cisco IOS devices must know the usage of these commands as there are important tools used for troubleshooting issues.