H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Firmware Version 9.0.7
Switch Module Configuration
Testing a Switch
76 59272-00 C
Offline Tests for Switches
An offline test is a disruptive test that exercises all port connections for a switch in
the diagnostics state. You must place the switch in the diagnostics state using the
Set Switch State command before starting the test. There are two types of offline
test: internal loopback and external loopback.
An internal loopback test exercises all connections within the port.
An external loopback test exercises all external ports, their transceivers, and
inter-port connections. A transceiver with a loopback plug is required for
each port.
The following example performs an offline internal loopback test on a switch:
H3C #> admin start
H3C (admin) #>set switch state diagnostics
H3C (admin) #> test switch offline internal
A list of attributes with formatting and current values will follow. Enter a new
value or simply press the ENTER key to accept the default value. If you wish to
terminate this process before reaching the end of the list press 'q' or 'Q' and the
ENTER key to do so.
LoopCount (decimal value, 1-4294967295) [100 ]
FrameSize (decimal value, 40-2148) [256 ]
DataPattern (32-bit hex value or 'Default') [Default]
StopOnError (True / False) [True ]
LoopForever (True / False) [False ]
Do you want to start the test? (y/n) [n] y
Connectivity Tests for Switches
A connectivity test is a disruptive test that exercises all port and inter-port
connections for a switch in the diagnostics state. You must place the switch in the
diagnostics state using the Set Switch State command before starting the test.
There are two types of connectivity test: internal loopback and external loopback.
An internal loopback test exercises all connections within each port and
inter-port connections.
An external loopback test exercises all external ports, their transceivers, and
inter-port connections. A transceiver with a loopback plug is required for
each port.










