DES-1228/ME Layer 2 Metro Ethernet Switch CLI Reference Manual
233
32
C
ABLE
D
IAGNOSTICS
C
OMMANDS
The Cable Diagnostics commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command
Parameters
cable_diag ports
[<portlist>| all]
Each command is listed, in detail, in the following sections.
cable_diag ports
Purpose
Used to test the copper cable. If there is an error on the cable, it can determine the type of
error and the position where the error occurred.
Syntax
cable_diag ports [<portlist>|all]
Description
For FE port, two pairs of cable will be diagnosed. The type of cable error can be open and
short. Open means that the cable in the error pair does not have a connection at the
specified position. Short means that the cables in the error pair has a short problem at the
specified position. When a port is in link-up status, the test will obtain the distance of the
cable. Since the status is link-up, the cable will not have the short or open problem. When
a port is in link-down status, the link-down may be caused by many factors. When the port
has a normal cable connection, but the remote partner is powered off, the cable diagnosis
can still diagnose the health of the cable as if the remote partner is powered on.
When the port does not have any cable connection, the result of the test will indicate no
cable. The test will detect the type of error and the position where the error occurs. Note
that this test will consume a low number of packets. Since this test is for copper cable, the
port with fiber cable will be skipped from the test. Some phy chips can’t support Cable
Diagnostic function, and it will display at the result.
Parameters
<portlist>
−
Specifies a range of ports to be tested.
all
−
All ports
Restrictions
None.
Example usage:
To test the cable on specific ports:
DES-1228/ME:4#cable_diag ports 1-3,10
Command: cable_diag ports 1-3,10
Perform Cable Diagnostics ...
Port Type Link Status Test Result Cable Length (M)
---- ------- -------------- ----------------- ---------------
1 FE Link Down No Cable -
2 FE Link Down No Cable -
3 FE Link Up OK 49
10 FE Link Down No Cable -
DES-1228/ME:4#