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
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 71
Table 71
Offline loopback types
Parameter
internal
external
online
Exercises port-to-device connections for all ports that are online. This test does not disrupt
communication on the 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
LoopCount
FrameSize
DataPattern
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.
Description
Exercises the internal port connections.
Exercises the port and its transceiver. A transceiver with a loopback plug is
required for the port.
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
8/20q Fibre Channel Switch command line interface guide 287