Emulex OneCommand Manager Command Line Interface User Manual (P006980-01A Version 5.2, August 2011)

OneCommand Manager Command Line Interface User Manual Page 36
LoopBackTest
Supported by: Windows, Solaris, Linux and VMware ESX
Syntax:
hbacmd LoopBackTest <WWPN|MAC> <Type> <Count> <StopOnError> [Pattern]
Description: This command runs the loop test on the adapter specified by the WWPN or MAC address.
Only PHY loopback test and MAC loopback tests are enabled for OneConnect adapters.
Parameters:
WWPN - WWPN of the FC or FCoE port
MAC - MAC address of the NIC or iSCSI port
Type - Type of loopback test to run
0 = PCI LoopBack Test
1 = Internal LoopBack Test
2 = External LoopBack Test (requires loopback plug)
3 = DMA Loopback Test
4 = PHY Loopback Test
5 = MAC Loopback Test
Count - Number of times to run the test (0 = run test infinitely, Range = 1...99,999)
StopOnError - Checks if the test must be halted on error
0 = No halt
1 = Halt
Pattern (optional) - 1 to 8 hexadecimal bytes to use for loopback data (for example: 1a2b3c4d)
Example:
hbacmd h=10.192.193.154 m=cim u=root p=Swamiji001 n=root/emulex loopbacktest 00-
00-c9-93-2f-9f 4 120 0
Note: For managing ESX/ESXi hosts from a Windows client, add the m=cim option to
the command. The default CIM credentials must be set using the SetCimCred
command. See “SetCimCred” on page 73.
Note: Loopback tests can be run on FC ports being managed locally or remotely
managed through TCP/IP-based management.
Note: Loopback tests 0 and 1 are not supported for OneConnect adapters.
Loopback tests 3, 4 and 5 are only supported for OneConnect adapters.