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 71
Table 71
Parameter
internal
external
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 72
Table 72
Parameter
internal
external
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 73
Table 73
Parameter
LoopCount
FrameSize
DataPattern
298 Command reference
describes the connectivity loopback types.
Connectivity loopback types
Description
Exercises all internal port and inter-port connections.
Exercises all internal port, transceiver, and inter-port connections. A
transceiver with a loopback plug is required for all ports.
describes the offline loopback types.
Offline loopback types
Description
Exercises the internal port connections.
Exercises the port and its transceiver. A transceiver with a loopback plug is
required for the port.
describes the switch test parameters.
Switch test parameters
Description
Number of frames sent: 1–4294967295. The default is 100.
Number of bytes in each test frame: 40–2148. The default is 256.
32-bit hexadecimal test value, or default, which defines random data