NetOps Toolkit

Cisco IOS

Cable Diagnostics (TDR)

Generate Cisco TDR cable test commands, parse show cable-diagnostics tdr output, and troubleshoot copper & fiber cable faults

What is TDR Cable Diagnostics?

Many Catalyst switches include a built-in Time Domain Reflectometer (TDR) in their DSP/PHY. The test cable-diagnostics tdr command sends an electrical pulse down each of the four copper pairs on an RJ-45 port and measures the reflection to determine pair status and, when there's a fault or a remote link partner, the approximate distance to it — all without unplugging a single cable.

TDR is a copper-only feature built into the switch port's PHY. It cannot test fiber — see the Fiber / Optical tab for the fiber equivalent (DOM).

How It Works

  1. The PHY injects a test pulse onto each pair (A, B, C, D).
  2. The pulse travels down the cable and reflects back when it hits an impedance change — an open end, a short, a bad connector, or a properly terminated link partner.
  3. The switch measures the round-trip time of the reflection and converts it to a distance using the cable's nominal velocity of propagation.
  4. Results are reported per pair: status (Open / Short / Terminated / Pair up) and distance to the fault or termination point.

Requirements & Limitations

  • Copper RJ-45 ports only — not supported on SFP/fiber interfaces.
  • Running the test on an active link briefly interrupts traffic (link flap of roughly 1–2 seconds) — schedule it during a maintenance window on production ports.
  • Distance readings are estimates, typically accurate to ± 10 meters, and become unreliable on very short cable runs (under ~15 m / 50 ft).
  • Not all platforms/linecards support it — older fixed-config switches and most router WAN ports do not implement TDR.
  • The interface should be administratively up (no shutdown) before testing; an admin-down port typically returns Not Completed.

Platform Support

PlatformCommandNotes
Catalyst 2960/3560/3750 (classic IOS)test cable-diagnostics tdrOriginal implementation — the reference syntax used throughout this tool
Catalyst 9200/9300/9400/9500 (IOS-XE)test cable-diagnostics tdrSame syntax, carried forward into IOS-XE
Catalyst 4500 / 6500test cable-diagnostics tdrSupport varies by supervisor/linecard — verify with show cable-diagnostics tdr help
ISR/ASR routersn/aTDR is a switch-port PHY feature; generally not available on router copper WAN interfaces
SFP / fiber portsn/aUse show interfaces transceiver (DOM) instead — see Fiber / Optical tab