Справочник Пользователя для Q-Logic 59022-03 D

Скачать
Страница из 168
A – Command Line Interface
Test Command
A-56
59022-03 D
Test Command
Performs the port loopback test to verify the operation of a port. The three types of 
loopback tests are Internal (SerDes level), External (SFP), and Online. While the 
test is running, the remaining ports on the switch remain fully operational. 
Authority
Admin
Syntax
test [port_number] [test_type]
Keywords
[port_number]
Specifies the port. Ports are numbered beginning with 0.
[test_type]
The test type. If you omit [test_type], the internal loopback test is run. [test_type] 
can be one of the following values:
cancel
Cancels online test in progress.
internal 
Tests the SerDes.
external
Tests both the SerDes and SFP. Requires a loopback plug be installed in the 
SFP.
online
Tests one online port.
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, do the following:
1.
To start an Admin session, enter the following command and press the Enter 
key.
admin start
2.
Place the port in Diagnostics mode, enter the following command (x = port 
number) and press the Enter key. 
set port state diagnostics
3.
Insert the loopback plug into the SFP on the selected port.
4.
Choose one of the two types of Port Loopback Tests to run:
To run an internal loopback test, enter the following and press the 
Enter key:
test x internal
To run an external loopback test, enter the following command. A 
loopback plug must be installed for this test to pass. 
test external