test cable-diagnostics

Syntax

test cable-diagnostics [PORT-LIST]

Description

Use the command to test the cable faults.

Option

[PORT-LIST]

Specify only copper port as a input port number.

Example output

Example of an usage of invalid(fiber-SFP+) port:

switch# test cable-diagnostics 1/a1 

The transceiver on port 1/A1 does not support cable diagnostics.

Example of ports being specified from 1/1 to 1/48, which are valid copper 1G ports. The selected range includes an entry for an invalid port, hence the output has a entry for non-supported port and does not display any output for valid ports.

switch# test cable-diagnostics 1/1-1/a1 
The transceiver on port 1/A1 does not support cable diagnostics.

Example of valid ports being specified:

switch# test cable-diagnostics 1/1-1/10         
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 1/1-1/10

Cable Diagnostic Status - Copper Ports

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