294 Command Reference
test switch
Description Tests all ports on the switch using a connectivity test, an offline test, or an online test.
Authority Admin session
Syntax
test switch
connectivity [loopback_type]
offline [loopback_type]
online
Operands
connectivity [loopback_type]
Performs a connectivity test of the type given by [loopback_type] on all switch ports. You must place
the switch in the diagnostics state using the set switch state command before starting the test.
Table 70 describes the connectivity loopback types.
Table 70 Connectivity loopback types
Parameter Description
internal Exercises all internal port and inter-port connections.
external Exercises all internal port, transceiver, and inter-port connections. A
transceiver with a loopback plug is required for all ports.
offline [loopback_type]
Performs an offline test of the type given by [loopback_type] on all switch ports. You must place
the switch in the diagnostics state using the Set Switch State command before starting the test.
Table 71 describes the offline loopback types.
Table 71 Offline loopback types
Parameter Description
internal Exercises the internal port connections.
external Exercises the port and its transceiver. A transceiver with a loopback plug is
required for the port.
online
Exercises port-to-device connections for all ports that are online. This test does not disrupt
communication on the ports. The online test excludes TR_Ports.
Notes To cancel a switch test in progress, enter the test cancel switch command.
To display the status of a recent switch test or switch test in progress, enter the
test status switch command.
Table 72 describes the switch test parameters.
Table 72 Switch test parameters
Parameter Description
LoopCount Number of frames sent: 1–4294967295. The default is 100.
FrameSize Number of bytes in each test frame: 40–2148. The default is 256.
DataPattern 32-bit hexadecimal test value, or default, which defines random data