McDATA® 4Gb SAN Switch for HP p-Class BladeSystem Command Line Interface Guide (AA-RWEJA-TE, November 2006)

56
Offline tests for ports
An offline test is a disruptive test that exercises the port connections. You must place the port in the
diagnostics state using the Set Port command before starting the test. There are two types of offline
tests: internal loopback and external loopback.
An internal loopback test exercises the internal port connections.
An external loopback test exercises the port and its transceiver. A transceiver with a loopback plug is
required for this test.
The following example performs an internal offline test:
McDATA4GbSAN #> admin start
McDATA4GbSAN (admin) #> set port 0 state diagnostics
McDATA4GbSAN (admin) #> test port 0 offline internal
A list of attributes with formatting and current values will follow. Enter a new
value or simply press the ENTER key to accept the default value. If you wish to
terminate this process before reaching the end of the list press 'q' or 'Q' and
the ENTER key to do so.
LoopCount (decimal value, 1-4294967295) [429496729]
FrameSize (decimal value, 40-2148) [256 ]
DataPattern (32-bit hex value or 'Default') [Default ]
StopOnError (True / False) [True ]
LoopForever (True / False) [False ]
Do you want to start the test? (y/n) [n] y
The test has been started.
A notification with the test result(s) will appear
on the screen when the test has completed.
McDATA4GbSAN (admin) #>
Test for port 0 Passed.
When the test is complete, remember to place the port back online.
McDATA4GbSAN (admin) #> set port 1 state online
See the ”Test Port command” on page 216.
Display port tests results
You can display the test status while the test is in progress by entering the Test Status Port command
as shown in the following example:
McDATA4GbSAN (admin) #> test status port 0
Port Test Test Loop Test
Num Port Type Status Count Failures
---- -------- ---- ------ ----- --------
0 0 Offline Internal Passed 12 0
See the ”Test Status command” on page 218.
Cancel a port test
To cancel a port test that is in progress, enter the Test Cancel Port command.
See the ”Test Cancel command” on page 215.