A SERVICE OF

logo

xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
338
43
CABLE DIAGNOSTICS COMMANDS
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 This command is used to diagnose the copper cable. If there is an error in the cable, it
can determine the type of error and the position where the error has occurred.
Syntax
cable_diag ports [<portlist>|all]
Description When a port is in link-up state, the diagnostics feature will obtain the distance of the
cable. When the status is in link–up state, the cable will not have any problem. This
diagnostics feature is for copper cable--ports with fiber cables will be not be included.
If the link is up, only cable length will be displayed; no abnormal result will be shown.
If the link is down, the reason may be that the partner was powered off or that the port is
disabled, the abnormal results won’t be shown but the cable length will be indicated.
If the link is down and there is some error in the cable, the abnormal results will be
shown, but the cable length item won’t be shown.
Please note that the port to be diagnosed will link down for a while during the test, and
the traffic will be displayed intermittently during the test.
Parameters portlist – Specifies a range of ports to be displayed. (UnitID:port number).
all – Indicates that all ports will be displayed.
Restrictions None.
Example usage:
To display the cable diagnostics function for the Switch.
DGS–3426:5#cable_diag ports 1–7
Command: cable_diag ports 1:1–1:7
Perform Cable Diagnostics ...
Port Type Link Status Test Result Cable Length(M)
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
1:1 GE Link down No Cable
1:2 GE Link down No Cable
1:3 GE Link down No Cable
1:4 GE Link down No Cable
1:5 GE Link down No Cable
1:6 GE Link down No Cable
1:7 GE Link up OK 4
DGS–3426:5#