45
Description
Use the virtual-cable-test command to test the cable connection of an Ethernet interface. The test results
are displayed within five seconds.
The following cable states are available:
• Normal—The cable is in good condition.
• Abnormal—Any fault other than a short or open circuit is detected.
• Abnormal (open)—An open circuit is detected.
• Abnormal (short)—A short circuit is detected.
• Failure—The detection fails.
If the cable connection is normal, the displayed cable length is the total length of the cable.
If the cable connection has a fault, it is the length from the local port to the faulty point.
NOTE:
• Optical interfaces do not support this command.
• If the link of an Ethernet interface is up, testing its cable connection will cause the link to go down and
then up.
• The test result is for reference only. The cable length detection error is up to 5 m (about 16 ft). If a test item
is not available, a hyphen (-) is displayed.
Examples
# Test the cable connection of interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] virtual-cable-test
Cable status: normal, 1 metres
Pair Impedance mismatch: -
Pair skew: - ns
Pair swap: -
Pair polarity: -
Insertion loss: - db
Return loss: - db
Near-end crosstalk: - db
NOTE:
The Pair Impedance mismatch field takes two values: yes for match, and no for mismatch.