H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Firmware Version 9.0.7

Command Reference
Test Port
59272-00 C 297
Test Port
Tests individual port performance.
Authority Admin session
Syntax test port [port_number]
offline [loopback_type]
Keywords [port_number]
The port to be tested. [port_number] can be 0–7 depending on the type of test.
External ports are numbered 0–3; internal ports are numbered 4–7.
offline [loopback_type]
Performs an offline test of the type given by [loopback_type] on the port given by
[port_number]. Use the Set Port command to place the port in the diagnostics
state before running the test. [loopback_type] can have the following values:
internal
Exercises the connections within the port. This test is valid for external and
internal ports.
external
Exercises an external port and its transceiver. A transceiver with a loopback
plug is required for the port.
Notes Table 39 describes the port test parameters.
To cancel a port test that is in progress, enter the Test Cancel Port command.
Table 39. Port Test Parameters
Parameter Description
LoopCount Number of frames sent
FrameSize Number of bytes in each test frame
DataPattern Pattern in the payload
StopOnError Stops the test when an error occurs (True).
Otherwise, the test continues to comple-
tion.
LoopForever Restarts the test after completion and con-
tinues until you cancel it (True). Otherwise,
the test ends normally after completion.