$  COPYRIGHT © 2004-2005 Emulex. All rights reserved.

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

$ emlxtest messages
$ DEBUG            0
$ VERBOSE          1 - 1999
$ INFO          2000 - 3999 (also used for LOGFILE and CONSOLE messages)
$ WARNING       4000 - 5999
$ ERROR         6000 - 7999
$ FATAL         8000 - 9999


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

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

$ EMLX_USAGE
3 Usage:  emlxtest [-u] [-v] -o \"option|option|...\" \n\
\n\
  -u (Prints usage information) \n\
\n\
  -v (Enables verbose mode) \n\
\n\
  -o (Options): \n\
\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)(Number of loopback tests) \n\
    userpattern=<0xhex number> (default=0x7e7e7e7e)(user pattern) \n\
    selectpattern=<user,critical,all> (default=critical) (Run patterns) \n\
\n\
  WARNING: Don't run emlxtest while other tests are running.\n\
\n\
  NOTE: You must use quotes (\" \") around options and pipes (|) between options.\n\
\n\
Example: \n\
 \n\
emlxtest -o \"dev=/devices/pci@8,700000/SUNW,emlxs@3/fp@0,0:devctl|elb=Enable\"\n\
\n


$ EMLX_OPTIONS_LIST
4 "emlxtest called: (%s)"

$ EMLX_SELFTEST_PASSED
5 "Selftest Passed."

$ EMLX_ILB_PASSED
6 "Internal Loopback Test: pattern=0x%08x  Passed."

$ EMLX_ELB_PASSED
7 "External Loopback Test: pattern=0x%08x  Passed."

$ EMLX_ELB_STARTED
8 "External Loopback Test: pattern=0x%08x  Started."

$ EMLX_ILB_STARTED
9 "Internal Loopback Test: pattern=0x%08x  Started."

$ EMLX_SELFTEST_STARTED
10 "Selftest Started."



$ --------------------------------------------------
$ INFO:		2000 - 3999
$ --------------------------------------------------

$ FC_SUCCESS
2000 "Operation successful."

$ FC_CAP_FOUND
2001 "Capability found."

$ FC_CAP_SETTABLE
2002 "Capability settable."


$ --------------------------------------------------
$ WARNING:	4000 - 5999
$ --------------------------------------------------


$ --------------------------------------------------
$ ERROR:	6000 - 7999
$ --------------------------------------------------

$ EMLX_SELFTEST_FAILED
6000 "Selftest Failed. Return code = %d"

$ EMLX_ILB_FAILED
6001 "%d: Internal Loopback Test: pattern=0x%08x  Failed."

$ EMLX_ELB_FAILED
6002 "%d: External Loopback Test: pattern=0x%08x  Failed. Return code = %d"

$ EMLX_UNABLE_TO_CLOSE
7000 "ERROR: Unable to close device (%s). %s"

$ EMLX_IOCTL_FAILED
7001 "ERROR: IOCTL failed to device (%s). %s"

$ --------------------------------------------------
$ FATAL:	8000 - 9999
$ --------------------------------------------------
 
$ EMLX_UNABLE_TO_OPEN
8000 "ERROR: Unable to open device (%s). %s"

$ FC_UNDEFINED
9000 "Undefined ERROR: (%s)."

$ FC_FAILURE
9001 "Operation failed."

$ FC_FAILURE_SILENT
9002 "Operation failed silently."

$ FC_CAP_ERROR
9003 "Capability error."

$ FC_UNBOUND
9004 "Port not bound."

$ FC_NOMEM
9005 "No memory."

$ FC_BADPACKET
9006 "Bad packet."

$ FC_OFFLINE
9007 "Port offline."

$ FC_OLDPORT
9008 "Old port state."

$ FC_NO_MAP
9009 "No map available."

$ FC_TRANSPORT_ERROR
9010 "Transport error."\
Probable_Cause(s):<Bad card><bad cable><bad device on loop><connected to a F switch port>\
Recommended_Action(s):<Check cabling. If not using a loopback cable, use a loopback cable>\
<Replace card>\
<If connected to a F switch port, insert a loopback cable>\
<if the problem persists, contact authorized Sun service provider>



$ FC_ELS_FREJECT
9011 "ELS rejected by fabric."

$ FC_ELS_PREJECT
9012 "ELS rejected by Nport."

$ FC_ELS_BAD
9013 "Bad ELS request."

$ FC_ELS_MALFORMED
9014 "Malformed ELS request."

$ FC_TOOMANY
9015 "Too many commands."

$ FC_UB_BADTOKEN
9016 "Bad Unsolicited buffer token."

$ FC_UB_ERROR
9017 "Unsolicited buffer error."

$ FC_UB_BUSY
9018 "Unsolicited buffer busy."

$ FC_BADULP
9019 "Bad ULP."

$ FC_BADTYPE
9020 "Bad type."

$ FC_UNCLAIMED
9021 "Not claimed."

$ FC_ULP_SAMEMODULE
9022 "Same ULP module."

$ FC_ULP_SAMETYPE
9023 "Same ULP type."

$ FC_ABORTED
9024 "Command aborted."

$ FC_ABORT_FAILED
9025 "Abort failed."

$ FC_BADEXCHANGE
9026 "Bad Exchange."

$ FC_BADWWN
9027 "Bad World Wide Name."

$ FC_BADDEV
9028 "Bad device."

$ FC_BADCMD
9029 "Bad command."

$ FC_BADOBJECT
9030 "Bad object."

$ FC_BADPORT
9031 "Bad port."

$ FC_NOTTHISPORT
9032 "Not on this port."

$ FC_PREJECT
9033 "Rejected by Nport."

$ FC_FREJECT
9034 "Rejected by fabric."

$ FC_PBUSY
9035 "Nport busy."

$ FC_FBUSY
9036 "Fabric busy."

$ FC_ALREADY
9037 "Already done."

$ FC_LOGINREQ
9038 "PLOGI required."

$ FC_RESETFAIL
9039 "Reset operation failed."

$ FC_INVALID_REQUEST
9040 "Invalid request."

$ FC_OUTOFBOUNDS
9041 "Out of bounds."

$ FC_TRAN_BUSY
9042 "Command transport busy."\
Probable_Cause(s):<Bad card><bad cable><bad device on loop><connected to a F switch port>\
Recommended_Action(s):<Check cabling. If not using a loopback cable, use a loopback cable>\
<Replace card>\
<If connected to a F switch port, insert a loopback cable>\
<if the problem persists, contact authorized Sun service provider>


$ FC_STATEC_BUSY
9043 "State change busy."

$ FC_DEVICE_BUSY
9044 "Port driver is working on this device."

$ FC_DEVICE_NOT_TGT
9045 "Command being sent to non-target."

$ FC_TEST_FAILED
9100 "Diagnostic test returned failure."

$ FC_IMAGE_BAD
9101 "Data image contains corrupt or bad information."

$ FC_IMAGE_INCOMPATIBLE
9102 "Data image is not compatible with current hardware."

$ FC_IMAGE_FAILED
9103 "Attempt to download image to adapter failed."

$ FC_OFFLINE_FAILED
9104 "Unable to take adapter offline."









