show cable-diag

This topic explains the command that estimates the length of the Ethernet cable attached to an active interface.

Syntax

show cable-diag interfaces id

Parameter

interfaces id: Specify the interface for which the diagnostic information must be displayed. The id parameter represents the interface number or a range of interface numbers. Use a hyphen to indicate a range. Use a comma to separate individual interfaces, ranges, or a combination of both.

Default

No default value.

Mode

Privileged EXEC

Usage

Use this command to show the estimated length of the Ethernet cable that is attached to an interface. The interface must be active, and in the link-up state.

Example

This example shows how to display the diagnostic information for the cables that are attached to interfaces g1 and g2:
CODE
Switch# show cable-diag interfaces GigabitEthernet 1-2

 Port   |  Speed | Local pair | Pair length | Pair status
--------+--------+------------+-------------+---------------
   g1   |  auto  |    Pair A  |     0.88    | Open
                      Pair B  |     0.82    | Open
                      Pair C  |     0.80    | Open
                      Pair D  |     0.78    | Open

   g2   |  auto  |    Pair A  |     0.81    | Open
                      Pair B  |     0.81    | Open
                      Pair C  |     0.77    | Open
                      Pair D  |     0.81    | Open