show cable-diagnostics

Syntax

show cable-diagnostics[PORT-LIST]

Description

Use the command to generate results of completed tests on single or multiple ports. For incomplete tests, a warning is displayed.

Option

[PORT-LIST]

Specify only copper port as an input port number.

Example output

Example of a warning being displayed when two pairs of cable are shorted: 

switch# test cable-diagnostics 3
This command will cause a loss of link on all tested ports and will take
several seconds per port to complete.  Use the 'show cable-diagnostics'
command to view the results.

Continue (y/n)?  y
switch# show cable-diagnostics 3

Cable Diagnostic Status - Copper Ports

       MDI    Cable       Cable Length or
  Port Pair   Status      Distance to Fault
  ---- ------ ----------- ---------------------
  3    1-2    OK          2m
       3-6    Short       1m
       4-5    Short       1m
       7-8    OK          2m

Example of a warning being displayed when a cable–diagnostic test is incomplete, or the previous test is still in progress.

switch# test cable-diagnostics 4
This command will cause a loss of link on all tested ports and will take
several seconds per port to complete.  Use the ‘show cable-diagnostics‘ command to view the results.

Continue (y/n)?  y
switch# show cable-diagnostics 4
Cable diagnostic test still in progress on port 4.