Switching - show cable-diagnostics

The show cable-diagnostics command found on Cisco Catalyst switches is a diagnostic tool that can display information about the physical cable connected to a particular interface.

The command has two forms:

show cable-diagnostics tdr show cable-diagnostics prbs

The first uses what is known as Time Domain Reflectometry (TDR), which is a methodology of determining the characteristics of copper wiring by sending electrical waveforms on the wiring and observing the waveforms that are reflected back.

The second uses what is known as PseudoRandom Binary Sequence (PRBS), which is method of generating statistically random bits on the wire. The command will cause the port to become a PRBS generator. The generated bits, which appear as an electrical waveform on the wire, can be used to determine the state of the cable by examining the reflected waveforms.

The tdr option is only supported on FastEthernet and GigabitEthernet ports, while the prbs option is only supported on 10GigabitEthernet ports.

The output of both commands is similar and includes information about the length of each pair of copper wires, as well as their statuses.

Links:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/interface/command/ir-xe-3se-3850-cr-book/show_cable_diagnostics_tdr_through_switchport_voice_vlan.html#wp8029514250

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960xr/software/15-2_2_e/system_manage/command_reference/b_sm_1522e_2960xr_cr/b_sm_152ex_2960-xr_cr_chapter_010.html#wp3034277456

https://en.wikipedia.org/wiki/Time-domain_reflectometer

https://en.wikipedia.org/wiki/Pseudorandom_binary_sequence