5 Powerful Cisco Troubleshooting Commands Every Network Technician Should Know

When users complain that the network is slow, the first troubleshooting steps are usually predictable.
You check the switch port.
The interface is up.
You review the configuration.
Everything looks correct.
You ping the end device.
The device responds successfully.
Yet the user continues to experience network problems.
This is one of the most frustrating situations for network technicians because basic troubleshooting commands may indicate that everything is functioning normally, while the actual user experience tells a different story.
Effective network troubleshooting requires looking beyond interface status and basic connectivity tests.
Cisco switches provide several powerful diagnostic commands that can help network administrators identify physical cable faults, locate interfaces generating errors, monitor degrading fiber connections, investigate Spanning Tree instability, and troubleshoot network authentication problems.
Unfortunately, some of these commands receive little attention during entry-level networking training.
In this article, we will examine five useful Cisco troubleshooting commands that can significantly improve your ability to diagnose difficult network problems.
1. Find Cable Faults with TDR
One of the most common causes of network connectivity problems is faulty copper cabling.
Traditionally, troubleshooting cable problems requires physically visiting the network location with a cable tester.
However, some Cisco switches include a built-in cable diagnostic feature called Time Domain Reflectometry (TDR).
The command is:
test cable-diagnostics tdr interface <interface>
For example:
test cable-diagnostics tdr interface GigabitEthernet0/2
After starting the test, wait several seconds and display the results using:
show cable-diagnostics tdr interface GigabitEthernet0/2
How TDR Works
Time Domain Reflectometry works by sending an electrical signal through the twisted pairs of an Ethernet cable.
The switch analyzes reflections returning from the cable.
Based on these reflections, the switch can determine whether the cable pairs are functioning normally or whether a physical fault exists.
The results may include several statuses.
Normal means the cable pair is functioning correctly.
Open indicates that there is a break somewhere along the cable.
Short means that the conductors inside the cable are touching each other.
One of the most valuable pieces of information provided by TDR is the estimated distance to the cable fault.
For example, if the switch reports an open pair approximately two meters away, the problem may be located near the patch cable or patch panel.
However, if the switch reports a fault approximately 40 meters away, the problem may exist somewhere along the structured cabling route.
This information can significantly reduce troubleshooting time.
Important Considerations
TDR diagnostics generally work only on copper Ethernet connections.
Support also varies between Cisco switch models.
On some platforms, running the test may temporarily interrupt the network connection or affect Power over Ethernet (PoE) devices.
For this reason, network technicians should exercise caution before running cable diagnostics on critical production interfaces.
Despite these limitations, TDR is extremely useful when troubleshooting individual users, wireless access points, IP phones, cameras, and other Ethernet-connected devices.
2. Quickly Find Interfaces Generating Errors
Most network technicians are familiar with:
show interfaces
The command provides extensive information about individual interfaces.
However, examining dozens of switch ports individually can be inefficient, particularly when you do not know which interface is causing the problem.
A faster approach is:
show interfaces counters errors
This command displays interface error counters for multiple switch ports in a single table.
Depending on the switch platform, the output may include information about:
- Alignment errors
- Frame Check Sequence (FCS) errors
- Runts
- Giants
- Output discards
- Collisions
- Late collisions
Instead of investigating 24 or 48 interfaces individually, you can quickly scan the table and identify ports displaying abnormal error counts.
Understanding Common Interface Errors
FCS errors may indicate faulty Ethernet cables, failing Network Interface Cards (NICs), or duplex configuration problems.
Output discards typically indicate congestion. The switch is receiving traffic faster than the interface can transmit it.
Late collisions on modern switched networks may indicate duplex mismatches or cabling problems.
However, there is an important consideration when interpreting interface counters.
Counters accumulate over time.
A switch interface showing thousands of errors may initially appear problematic.
But if the switch has been operating continuously for several years, those errors may have accumulated over a long period.
The more useful question is whether the errors are actively increasing.
You can record the current counters or clear them using:
clear counters
Allow the network to operate while the reported problem occurs, then check the counters again.
If the error counters continue increasing rapidly, you have identified an interface that requires further investigation.
This technique can help network technicians reduce the troubleshooting scope from dozens of switch ports to a single problematic interface within minutes.
3. Detect Degrading Fiber Connections Before They Fail
Fiber connections do not always fail suddenly.
In many situations, optical links gradually degrade.
A dirty fiber connector, damaged patch cord, excessive attenuation, or slowly failing optical transceiver can cause the received optical power to decrease over time.
The link may remain operational while users experience packet errors, intermittent connectivity, or unexplained interface flapping.
Cisco switches can provide valuable information about the health of optical transceivers using:
show interfaces transceiver detail
Many modern Small Form-factor Pluggable (SFP) transceivers support Digital Optical Monitoring (DOM), also known as Digital Diagnostic Monitoring (DDM).
DOM-capable transceivers monitor several operational parameters, including:
- Temperature
- Supply voltage
- Transmit optical power
- Receive optical power
- Alarm thresholds
- Warning thresholds
The command displays the current measurements alongside the supported thresholds.
Why Optical Power Monitoring Matters
Suppose the receive optical power is approaching the low-warning threshold.
The fiber link may still be operational.
However, the decreasing optical signal could indicate a developing problem.
Possible causes include:
- Dirty fiber connectors
- Excessive insertion loss
- Damaged fiber patch cords
- Poor splices
- Failing optical transceivers
- Problems with the transmitter on the remote device
Checking optical power levels allows network administrators to identify degrading fiber connections before complete failure occurs.
This command is also useful for proactive network monitoring.
Organizations can periodically collect DOM statistics from network devices and track optical power trends over time.
A gradual decline in receive power can trigger maintenance before users experience a major outage.
However, the transceiver must support DOM functionality.
Some older or low-cost optical modules may not provide diagnostic monitoring information.
4. Find the Port Causing Spanning Tree Instability
Spanning Tree Protocol (STP) protects Layer 2 networks from switching loops.
Most network administrators regularly use:
show spanning-tree
However, another command provides significantly more troubleshooting information:
show spanning-tree detail
The detailed output includes valuable information about topology changes.
For each VLAN, the switch can display:
- Number of topology changes
- Time since the last topology change
- Interface responsible for the topology change
This information can help diagnose one of the most frustrating network problems: intermittent Layer 2 instability.
Why Frequent Topology Changes Are a Problem
When Spanning Tree detects a topology change, switches may update their forwarding information and age or flush dynamic MAC address entries, depending on the STP mode and event.
Traffic may temporarily be flooded while switches relearn MAC addresses.
Occasional topology changes are normal.
For example, network devices connecting or disconnecting may cause legitimate topology changes.
However, repeated topology changes from the same interface can indicate a problem.
Possible causes include:
- Flapping switch interfaces
- Faulty Ethernet cables
- Unstable network devices
- Misconfigured access ports
- Missing PortFast configuration on appropriate edge ports
- Switching loops
Users may experience short periods of network slowness, intermittent connectivity, or temporary application freezes.
Because the network never completely fails, traditional monitoring systems may not generate obvious alerts.
This is where show spanning-tree detail becomes extremely useful.
If the command shows a high topology-change count and indicates that the most recent change repeatedly originated from the same interface, you have identified a strong troubleshooting lead.
If that interface connects to another switch, run the command on the next switch.
Continue following the topology-change path until you identify the interface or device responsible for the instability.
Once you locate the problematic port, you can investigate the connected device, cable, interface configuration, or physical connection.
Interestingly, this may lead you back to the first command in this article: TDR cable diagnostics.
5. Troubleshoot 802.1X and MAB Authentication Problems
Modern enterprise networks often use network access control technologies such as IEEE 802.1X authentication and MAC Authentication Bypass (MAB).
These technologies determine whether devices should be allowed to access the network.
When authentication problems occur, troubleshooting can become difficult.
The Ethernet interface may be operational.
The switch can detect the connected device.
However, the user cannot access the network or is assigned to the wrong VLAN.
A useful troubleshooting command is:
show authentication sessions interface <interface> details
For example:
show authentication sessions interface GigabitEthernet0/2 details
Depending on the Cisco IOS or IOS XE version, newer platforms may use:
show access-session interface <interface> details
These commands provide detailed information about the authentication session.
The output may include:
- Client MAC address
- Authentication method
- Authentication status
- Authorization status
- Assigned VLAN
- Downloadable Access Control Lists (dACLs)
- Session policies
- Authentication server results
Why This Command Is Important
Consider a situation where a device is physically connected to the switch.
The interface status is up.
However, the device cannot access the corporate network.
The problem could be caused by several factors.
The 802.1X supplicant may not be configured correctly.
MAB authentication may be failing because the MAC address is not registered.
The RADIUS server may be rejecting the authentication request.
The Network Access Control (NAC) system may be assigning the device to a restricted VLAN.
Instead of troubleshooting blindly, the authentication session command allows administrators to see exactly what happened during the authentication process.
For example, if authentication succeeds but the device receives the wrong VLAN assignment, the problem may exist within the RADIUS or NAC policy rather than the switch.
If the interface is physically operational but the authentication session shows an unauthorized state, troubleshooting should focus on authentication rather than cabling.
This distinction can save significant troubleshooting time.
Cisco Troubleshooting Commands Summary

Building a Better Network Troubleshooting Workflow
Knowing individual Cisco commands is useful.
Knowing how to combine them into a systematic troubleshooting process is even more valuable.
When users report network problems, begin by identifying the affected scope.
Is the problem affecting one device, several users, an entire switch, a VLAN, or the whole network?
Next, determine which layer of the network is most likely involved.
For suspected physical connectivity problems, check interface status, interface counters, and cable diagnostics.
For fiber connections, inspect optical transceiver statistics.
For intermittent Layer 2 instability, investigate Spanning Tree topology changes.
For devices that are physically connected but unable to access network resources, examine authentication sessions.
The objective is not to randomly execute commands.
The objective is to progressively eliminate possible causes until the fault domain becomes small enough to identify the actual problem.
Final Thoughts
Successful network troubleshooting is not simply about knowing hundreds of Cisco commands.
It is about knowing which command provides the right information at the right moment.
The five troubleshooting techniques discussed in this article can help network technicians investigate problems that basic commands such as ping, show interfaces status, and show running-config may not immediately reveal.
TDR cable diagnostics can identify physical cable faults without requiring you to leave your desk.
Interface error counters can quickly locate problematic switch ports.
Digital Optical Monitoring can reveal degrading fiber links before complete failure.
Detailed Spanning Tree information can identify ports causing repeated Layer 2 instability.
Authentication session commands can show exactly why a connected device is not being granted the expected network access.
None of these commands automatically fixes the network.
Their value lies in providing better visibility.
And better visibility leads to faster fault isolation, more accurate diagnoses, reduced downtime, and more effective network troubleshooting.
For network technicians, engineers, system administrators, and IT professionals working with Cisco infrastructure, adding these commands to your troubleshooting toolkit can make a significant difference when dealing with difficult network problems.
Previous: AI With Python 2026 (Part 7): Introduction to Machine Learning — Teaching Computers to Learn
Next: AI With Python 2026 (Part 8): Your First Machine Learning Model — From Data to Predictions
Leave a comment