55
Test command
Tests switch module ports using internal (SerDes level), external small form-factor pluggable (SFP), and
online loopback tests. Internal and external tests require that the switch module port be placed in diagnostic
mode. See the “Set Port command” on page 34 for information about changing the port administrative state.
While the test is running, the remaining ports on the switch remain fully operational. See “Port testing” on
page 117 for more information.
Authority
Admin
Syntax
test
port [port_number] [test_type]
cancel
status
Keywords
port [port_number] [test_type]
Tests the port given by [port_number] using the test given by [test_type]. If you omit [test_type],
Internal is used. [test_type] can have the following values:
Internal (for internal and external ports)
Tests the SerDes. This is the default. The port must be in diagnostics mode to perform this test.
External (for external ports only)
Tests both the SerDes and SFP. The port must be in diagnostics mode to perform this test, and a
loopback plug must be installed in the SFP.
Online (for internal and external ports)
Tests one online port.
cancel
Cancels the online test in progress.
status
Displays the status of a test in progress, or if there is no test in progress, the status of the test that was
executed last.
Examples
To run Internal (SerDes) or External (SFP) port tests, complete the following steps:
1. To start an admin session, type the following command:
admin start
2. Place the port in Diagnostics mode by typing the following command (x = port number):
set port x state diagnostics
3. Insert the loopback plug into the SFP on the selected port (for external port test only).