$  Copyright(c) 2003 Sun Microsystems, Inc.
$  All rights reserved.

$ #ident  "@(#)jnitest.msg  1.1  03/05/01  SMI"


$ --------------------------------------------------
$ DEBUG:	0
$ --------------------------------------------------

$ --------------------------------------------------
$ VERBOSE:	1-1999
$ --------------------------------------------------

$ USAGE
3 Usage: \n\
 dev=<physical path>       (no default)(Find from luxadm -e port)\n\
 selftest=<Enable|Disable> (default=Disable)\n\
 ilb=<Enable|Disable>      (default=Disable)(internal loopback)\n\
 elb=<Enable|Disable>      (default=Enable) (external loopback)\n\
 iterations=<number>       (default=1000)\n\
                           (Number of times to loop each pattern)\n\
 userpattern=<0xhex number>(default=0x7e7e7e7e)(user pattern)\n\
 selectpattern=<user,critical,all> (default=critical) (Run patterns)\n\
 \nWARNING: Don't run jnitest while other tests are running.\n\n\
 NOTE: Must use \" \" around options.\n\
 ie: jnitest -o \"dev=/devices/pci@8,700000/SUNW,jfca@3/fp@0,0:devctl|elb=Enable\"\n

$ V_OPTIONS_LIST
4 jnitest called with options: %s

$ JNI_N_PORT
5 Detected Port type of NPORT

$JNI_LPORT 
6 Detected Port type of LPORT

$ LOOP_PATTERN
7 Running with pattern 0x%08x

$ RUN_SELFTEST
8 Run board self test

$ ENABLE_TEST_MODE
9 Enable Test Mode

$ END_TEST
10 Call Diag End

$ RUN_ELB
11 Run external test

$ RUN_ILB
12 Run internal test

$ RUN_ECHO
13 Using ECHO loopback

$ RUN_LBF
14 Using LBF loopback

$ ******************************************************
$ INFO  2000 - 3999 
$ ******************************************************

$ ******************************************************
$ WARNING 6000 - 7999 
$ ******************************************************


$ ******************************************************
$ ERROR 6000 - 7999 
$ ******************************************************

$ ER_BAD_OPTIONS
6000 Bad option passed to test: %s\
Probable_Cause(s):<Invalid options passed to test> \
Recommended_Action(s):<Check options>\
<Ensure -o option is the last option passed in>
 

$ TEST_BAD_PATTERN
6001  ERROR: Invalid pattern: %s, pattern must be in the form of 0xhex_num

$ BAD_LBF_ICNT
6002 To large of an iteration count passed in: %s. Maximum value is 1000000\
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Action(s): <Check and retype command line>
 
$ BAD_DEVICE_NAME
6003 No Device was passed in or bad device passed in:dev=%s


$ BAD_TRANSFER_CNT
6004 To large of a transfer count passed in: %s. Maximum value is 0x10000 \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Action(s): <Check and retype command line>
 
 $ CLOSE_ERR
6005 "close error: %d"

$ JNI_OPEN_FAILED
6006 Open of JNI device %s failed; %s\
Probable_Cause(s):<system software>\
<Invalid device path>\
Recommended_Action(s): <Contact your system admin for assistance> \
<Check device path passed in>\
<if the problem persists, contact authorized Sun service provider>

$ TOPO_ERR 
6007 Couldn't retrieve topology:Error =  %d, fcio_errno: %d\n\
Probable_Cause(s):<system software>\
<Bad HBA>\
Recommended_Action(s):\
<Check to ensure latest software patches are installed>\
<Replace HBA>\
<Contact your system admin for assistance>\
<if the problem persists, contact authorized Sun service provider>

$ JNI_PORT_OFFLINE
6008 Detected port to be offline, cannot run external port test\n\
Probable_Cause(s):<Port disconnected>\
<No Loopback cable inserted>\
<Bad HBA>\
Recommended_Action(s):<Connect port to fiber channel device>\
<Insert loopback cable>\
<Replace HBA>\
<Run Linktest>\
<if the problem persists, contact authorized Sun service provider>

$ UNKNOWN_PORT_TYPE
6009 Couldn't determine port type\n\
Probable_Cause(s):<Bad Fiber Channel Device>\
<Bad HBA>\
Recommended_Action(s):<Run linktest>\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ DATA_MISCOMPARE
6010 Detected data mismatch on transfer. Expected 0x%X, Received 0x%X at byte %d\n\
Probable_Cause(s):<Bad Fiber Channel Device>\
<Bad HBA>\
Recommended_Action(s):<Run linktest>\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ ECHO_IOCTL_FAILED
6011 Echo test failed to start. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad FC link>\
<Bad HBA>\
<LIPs being generated on loop>\
Recommended_Action(s):\
<Run Linktest>\
<Replace HBA>\
<Insert a loopback plug and rerun test>\
<if the problem persists, contact authorized Sun service provider>


$ LBF_IOCTL_FAILED
6012 LBF test failed to start. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad HBA>\
Recommended_Action(s):\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ DIAG_START_ERR
6013 Diag Start IOCTL call failed. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad HBA>\
Recommended_Action(s):\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ DIAG_END_ERR
6014 Diag END IOCTL call failed. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad HBA>\
Recommended_Action(s):\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>



$ INTERNAL_IOCTL_FAILED
6015 Internal IOCTL test failed to start. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad HBA>\
<No Loopback plug inserted>\
Recommended_Action(s):\
<Replace HBA>\
<Insert a loopback plug into port>\
<if the problem persists, contact authorized Sun service provider>


$ SELFTEST_FAILED
6016 Board Self Test failed. Return code = %d, fcio errno = %d\n\
Probable_Cause(s):\
<Bad HBA>\
Recommended_Action(s):\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ FAILED_TO_GET_PORT_STATE
6017 Failed to get port state. Return code = %d\n\
Probable_Cause(s):\
<Bad HBA>\
Recommended_Action(s):\
<Replace HBA>\
<if the problem persists, contact authorized Sun service provider>

$ PORT_CONNECTED_ERR
6018 Detected that this port is connected to storage and that the user\n\
selected the internal loopback test. In order for the internal loopback\n\
test to run, the port needs to have a loopback plug inserted.\n\
Probable_Cause(s):\
<Invalid configuration>\
Recommended_Action(s):\
<Insert a loopback plug into port>\
<Don't select the internal test option>



$ ******************************************************
$ FATAL 8000-9998 
$ ******************************************************
 


