#############################################################################
#	SANsurfer FC CLI Return Codes
#	
#Return
#Code	Name                    		Description
##############################################################################
0, 	SUCCESS, 				Command executed with no error
1, 	ERROR_OPEN_FILE,                        Failed to open file 
2, 	ERROR_READ_FILE,                        Failed to read file
3, 	ERROR_WRITE_FILE,                       Failed to write to a file
4, 	ERROR_CLOSE_FILE,                       Failed to close a file
5, 	ERROR_INCORRECT_FILE,                  	Selected file is incorrect
6, 	ERROR_INCORRECT_FILE_SIZE,             	File size is incorrect
7, 	ERROR_UNSUPPORTED_HBA,                  HBA is unsupported
8, 	ERROR_NO_HBA,                           Unable to open the HBA handle
9,	ERROR_UNKNOWN_HBA,  			HBA is unknown to the application
10, 	ERROR_INVALID_SSID,                     HBA has invalid SSDID/SSVID
11, 	ERROR_MISMATCH_SSID,                    The specified flash/NVRAM file does not have the SSDID/SSVID that match with the HBA
12, 	ERROR_MISMATCH_CHECKSUM,                File checksum does not match
13,	ERROR_CORRUPTED_FILE,                   File appears to be corrupted
14,	ERROR_FILE_CHKSUM_ERROR,                File checksum returns error
15,	ERROR_FILE_INVALID_DATA,                File has invalid data
16,	ERROR_FLASH_UPDATE_IGNORE,  		HBA does not need to be updated           	    
17,	Reserved,				Not used
18,	Reserved,				Not used
19,	ERROR_FLASH_UPDATE_UNSUPPORTED,         Flash update is not supported with this HBA
20,	ERROR_FLASH_OPTION_DISABLED_HBA,        Flash update is disabled with this HBA
21,	ERROR_FLASH_OPTION_DISABLED_OS,         Flash update is disabled with this OS 
22,	ERROR_FLASH_HEADER_SIGNATURE,    	Flash file has invalid header signature
23,	ERROR_FLASH_DATA_SIGNATURE,      	Flash file has invalid data signature
24,	Reserved,				Internal used
25,	ERROR_FLASH_CSUM_ERROR,                 Flash file checksum test failed
26,	ERROR_FLASH_NO_FW_REGION_VALID,         HBA does not have valid firmware region
27,	ERROR_FLASH_INVALID_FW_FILE,            Firmware file does not match with HBA
28,	Reserved,                 		Internal used
29,	ERROR_FLASH_CSUM_MISMATCH,              Flash file has checksum mismatched.
30,	ERROR_INCORRECT_RISC_CODE_FILE,         Incorrect RISC image
31,	ERROR_INCORRECT_BOOT_CODE_FILE,         Incorrect BIOS/FCode boot image
32,	ERROR_INCORRECT_FULL_IMAGE_FILE,        Incorrect 1M Flash image
33,	ERROR_CORRUPTED_FLASH_IMAGE_FILE,       Flash image file is corrupted
34,	ERROR_FLASH_UPDATE_FAILURE,		Failed to update flash
35,	ERROR_FLASH_GET_REGION_FAILURE,		Failed to read flash update region from HBA
36,	ERROR_FLASH_UPDATE_NO_VALID_REGION,     Failed to validate flash update region read from HBA
37,	ERROR_FLASH_UPDATE_NO_REGION_LAYOUT,	HBA does not have flash update region layout
38,	Reserved,				Not used
39,	Reserved,				Not used
40,	ERROR_DIAGNOSTICS_PARAM_ERROR,          Diagnostics test returns invalid parameters
41,	ERROR_DIAGNOSTICS_LOOP_DOWN,            Unable to run diagnostics because the loop is down
42,	ERROR_DIAGNOSTICS_FAILURE,		Diagnostics test failed with errors
43,	ERROR_DIAGNOSTICS_DATA_MISCOMPARE,      Diagnostics test failed with data miscompare
44,	ERROR_DIAGNOSTICS_UNKNOWN_STATUS,       Unknown diagnostics test status
45,	ERROR_DIAGNOSTICS_NO_AVAIL_TARGET, 	Unable to run R/W buffer test because there are no attached devices
46,	ERROR_DIAGNOSTICS_NOT_FOUND_TARGET,     Unable to run R/W buffer test because the excluded device is not available
47,	ERROR_DIAGNOSTICS_MAX_FRAME_SETTING,	Unable to run diagnostics because of the HBA current frame size setting
48,	ERROR_INVALID_DIAGNOSTICS_SETTINGS,	Invalid diagnostics test parameter settings
49,	Reserved,				Not used
50,	ERROR_FC_LINK_UNKNOWN_STATUS,           Error getting FC link status 
51,	ERROR_RESET_LINK_STATUS,       		Unable to reset HBA link status          
52,	ERROR_INVALIDE_STATISTICS_PARAMS,	Invalid link status/statistics parameter settings 
53,	Reserved,				Not used
54,	Reserved,				Not used
55,	Reserved,				Not used
56,	Reserved,				Not used
57,	Reserved,				Not used
58,	Reserved,				Not used
59,	Reserved,				Not used
60,	ERROR_INVALID_PARAM_SETTINGS,  		Invalid HBA parameter value/key              
61,	ERROR_PARAM_UNSUPPORTED_HBA,            Specified HBA parameters is not supported 
62,	ERROR_PARAM_UNSUPPORTED_DRIVER,         Unable to update HBA parameters - Driver unsupported
63,	ERROR_RESTORE_NVRAM_DEFAULT,		Failed to restore HBA parameters to default settings
64,	Reserved,				Not used
65,	Reserved,				Not used
66,	Reserved,				Not used
67,	Reserved,				Not used
68,	Reserved,				Not used
69,	Reserved,				Not used
70,	ERROR_SAVE_HBA_FLASH_TO_FILE,  		Failed to save HBA flash image to a file
71,	ERROR_READ_HBA_FLASH_HBA,               Failed to read HBA flash
72,	ERROR_NO_SPACE_LEFT,                    Command failed because no space left on the drive
73,	Reserved,				Not used
74,	Reserved,				Not used
75,	Reserved,				Not used
76,	Reserved,				Not used	
77,	Reserved,				Not used
78,	Reserved,				Not used
79,	Reserved				Not used
80,	ERROR_INVALID_SERIAL_NO, 		Invalid HBA serial number
81,	ERROR_GET_NVRAM_DATA,			Unable to read NVRAM from HBA
82,	ERROR_UPDATE_NVRAM_DATA,		Failed to update HBA parameters
83,	ERROR_PRESERVE_NVRAM_DATA,		Failed to preserve HBA parameters
84,	ERROR_MISSING_NVRAM_TEMPLATE_FILE,      Unable to find the NVRAM template for the HBA
85,	ERROR_INVALID_NVRAM_PROG_OPTION,	Specified key/value to program NVRAM are invalid
86,	Reserved,				Not used
87,	Reserved,				Not used
88,	Reserved,				Not used	
89,	Reserved,				Not used
90,	ERROR_READING_BOOT_DEVICE,              Failed to read boot device settings of the HBA
91,	ERROR_SAVING_BOOT_DEVICE,               Failed to save boot device settings to the HBA 
92,	ERROR_BOOT_CONFIG_DISABLED_DRIVER,      Boot device settings is disabled with running driver
93,	ERROR_BOOT_TARGET_NO_LUN,               Boot device settings aborted because boot target has no LUN
94,	ERROR_TARGET_NO_DIRECT_ACCESS,          Boot device settings failed because the boot target is not a direct access device
95,	ERROR_INVALID_BOOT_SETTINGS,            Boot device parameters is invalid/incorrect
96,	ERROR_UNSUPPORTED_BOOT_SETTINGS,        Unsupported boot device settings
97,	Reserved,				Not used
98,	Reserved,				Not used
99,	Reserved,				Not used
100,	ERROR_INVALID_DRIVER_PARAM,   		Driver parameter settings is invalid
101,	ERROR_READ_DRIVER_PARAM,                Failed to read current driver settings of the HBA
102,	ERROR_DRIVER_PARAM_NOT_FOUND,           Unknown driver parameter settings
103,	Reserved,				Not used
104,	Reserved,				Not used
105,	Reserved,				Not used
106,	Reserved,				Not used
107,	Reserved,				Not used
108,	Reserved,				Not used
109,	Reserved,				Not used
110,	ERROR_DUPLICATE_TARGET_ID,         	Target has duplicate ID      
111,	ERROR_INVALID_TARGET_ID,                Target has invalid ID
112,	ERROR_MISMATCH_TARGET_ID,               Target has mismatch ID 
113,	ERROR_READ_FROM_DRIVER,                	Failed to read persistent binding data from driver database
114,	ERROR_READ_FROM_PERSISTENT_STORAGE,     Failed to read persistent binding data from persistent database
115,	ERROR_MEMORY_ALLOC_FAILURE,             Unable to allocate memory
116,	ERROR_TARGET_ENTRY_NOT_FOUND,           Unable to find the binding entry of the specified target
117,	ERROR_DELETE_TARGET_PERSISTENT_ENTRY,   Failed to delete target persistent binding
118,	ERROR_LUN_NOT_FOUND,                    The specified LUN ID not available
119,	ERROR_NO_DEVICE_FOUND,                  HBA does not have attached devices
120,	ERROR_OPTION_UNSUPPORTED_DRV,           Option is not available with running driver
121,	ERROR_OPTION_UNSUPPORTED_HBA,           Option is not available with HBA
122,	ERROR_OPTION_UNSUPPORTED_OS,            Option is not available on this OS platform
123,	ERROR_OPTION_DISABLED_GUI_CONFIG,    	Target persistent binding is not allowed because of existing congfiguration saved by the SANsurfer manager    	
124,	ERROR_OPTION_DISABLED_DRV,              Target persistent binding is disabled becaused of current driver
125,	ERROR_UPDATE_LUN_DATA_PERSIST_BINDING,  Failed to update LUN data during persistent binding configuration
126,	Reserved,				Not used
127,	Reserved,				Not used
128,	Reserved,				Not used
129,	Reserved,				Not used
130,	ERROR_INVALID_HBA_WWID,          	HBA WWPN/WWNN specified is invalid        
131,	ERROR_INVALID_HBA_PID,        		HBA instance specified is invalid           
132,	ERROR_INVALID_TARGET_WWID,              Target WWPN/WWNN specified is invalid
133,	ERROR_INVALID_LUN_ID,                   LUN ID specified is invalid
134,	ERROR_MISSING_INPUT,                    Incomplete command line option
135,	ERROR_INVALID_INPUT,                    Unknown command line option flag
136,	ERROR_CMD_UNSUPPORTED,                  Specified command line option is unsupported
137,	ERROR_UNKNOWN_CMD_OPTION,		Unrecognize or incomplete command line
138,	ERROR_WWPN_INPUT_REQUIRED,		Use HBA WWPN instead of HBA instance to specify a virtual HBA!
139,	Reserved,				Not used
140,	ERROR_UNKNOWN_FILE_FORMAT,		Unable to determine file format  
141,	ERROR_READ_DRV_VER_SYS_FILE,            Failed to read driver version from sys file
142,	ERROR_INIT_SECURITY_DESCRIPTOR,         Failed to init security descriptor during driver update
143,	ERROR_SET_SECURITY_DESCRIPTOR,          Failed to set security descriptor during driver	update
144,	ERROR_FAIL_UPDATE_DRIVER,               Failed to update driver
145,	ERROR_HARDWARE_ID_NO_MATCH,             HBA hardware ID does not match with the driver config file
146,	ERROR_DRIVER_UPDATE_UNSUPPORTED,        Driver update is not allowed with this HBA
147,	ERROR_NO_DRV_INF_FILE,                  Driver inf file is missing in the driver package
148,	ERROR_CREATE_TEMP_DIR,			Failed to create temporary directory
149,	ERROR_OPEN_ZIP_FILE,                    Failed to open zip file
150,	ERROR_CLOSE_ZIP_FILE,                   Failed to close zip file
151,	ERROR_READ_ZIP_FILE,                    Failed to read zip file
152,	ERROR_EXTRACT_ZIP_FILE,                 Failed to extract zip file
153,	ERROR_CORRUPTED_ZIP_FILE,               The zip file appears to be corrupted
154,	ERROR_CREATE_ZIP_FILE,                  Failed to create zip file
155,	ERROR_MISSING_DRV_FILE,                 Driver sys file is missing in the driver package
156,	ERROR_EMPTY_FOLDER,                     Driver folder is empty
157,	ERROR_GET_REGISTRY_KEY,			Failed to get a registry key 
158,	ERROR_SET_REGISTRY_KEY,			Failed to set a registry key
159,	ERROR_STORPORT_NOT_SUPPORTED,           Operation failed with Stor miniport driver
160,	ERROR_INVALID_VPD_DATA,                 HBA has invalid VPD data
161,	Reserved,				Not used
162,	Reserved,				Not used
163,	Reserved,				Not used
164,	Reserved,				Not used
165,	Reserved,				Not used
166,	Reserved,				Not used
167,	Reserved,				Not used
168,	Reserved,				Not used
169,	Reserved,				Not used
170,	Reserved,				Not used
171,	IBM Reserved,				Blocked
172,	IBM Reserved,				Blocked
173,	IBM Reserved,				Blocked
174,	IBM Reserved,				Blocked
175,	IBM Reserved,				Blocked
176,	IBM Reserved,				Blocked
177,	IBM Reserved,				Blocked
178,	IBM Reserved,				Blocked
179,	IBM Reserved,				Blocked
180,	IBM Reserved,				Blocked
181,	IBM Reserved,				Blocked
182,	IBM Reserved,				Blocked
183,	IBM Reserved,				Blocked
184,	IBM Reserved,				Blocked
185,	IBM Reserved,				Blocked
186,	IBM Reserved,				Blocked
187,	IBM Reserved,				Blocked
188,	IBM Reserved,				Blocked
189,	IBM Reserved,				Blocked
190,	IBM Reserved,				Blocked
191,	IBM Reserved,				Blocked
192,	IBM Reserved,				Blocked
193,	Reserved,				Not used
194,	Reserved,				Not used
195,	Reserved,				Not used
196,	Reserved,				Not used
197,	Reserved,				Not used
198,	Reserved,				Not used
199,	Reserved,				Not used
200,	ERROR_SAVE_SEL_LUN_CONFIG,		Failed to save selective LUN configuration		               
201,	Reserved,				Not used
202,	Reserved,				Not used
203,	Reserved,				Not used
204,	Reserved,				Not used
205,	Reserved,				Not used
206,	Reserved,				Not used
207,	Reserved,				Not used
208,	Reserved,				Not used
209,	Reserved,				Not used
210,	ERROR_MISSING_IP_ADDRESS,      		IP address is required
211,	ERROR_MISSING_NETMASK_ADDRESS,          Netmask address is required
212,	ERROR_MISSING_GATEWAY_ADDRESS,          Gateway address is required                  
213,	ERROR_INVALID_IP_ADDRESS,               Invalid IP address
214,	ERROR_INVALID_NET_MASK,                 Invalid netmask address
215,	ERROR_GET_SWITCH_INFO,                  Failed to get switch information
216,	ERROR_SET_SWITCH_IP_ADDRESS,            Failed to set switch IP address
217,	ERROR_INVALID_SWITCH_INPUT,             Invalid swich parameters settings
218,	ERROR_INVALID_ADMIN_ACCOUNT,            Admin account is required
219,	ERROR_INVALID_ADMIN_PASSWORD,           Admin password is incorrect
220,	ERROR_INVALID_OPTION,                   Switch input is invalid
221,	Reserved,				Not used
222,	Reserved,				Not used
223,	Reserved,				Not used
224,	Reserved,				Not used
225,	Reserved,				Not used
226,	Reserved,				Not used
227,	Reserved,				Not used
228,	Reserved,				Not used
229,	Reserved,				Not used
230,	ERROR_GET_TARGET_IIDMA_SETTINGS,    	Failed to read target link speed     
231,	ERROR_SAVE_TARGET_IIDMA_SETTINGS,       Failed to set target link speed
232,	ERROR_SET_TARGET_IIDMA_UNSUPPORTED,     Target link speed opeation is unsupported
233,	Reserved,				Not used
234,	Reserved,				Not used
235,	Reserved,				Not used
236,	Reserved,				Not used
237,	Reserved,				Not used
238,	Reserved,				Not used
239,	Reserved,				Not used
240,	ERROR_NO_TARGET_SELECTED,               Unable to run target beacon because no device is selected
241,	ERROR_GET_BEACON_STATE,                 Unable to get the beacon status
242,	ERROR_SET_BEACON_STATE,                 Unable to set the beacon status
243,	ERROR_BEACON_UNSUPPORTED,               Beacon operation is unsupported
244,	ERROR_INVALID_BEACON_PARAMETERS,	Beacon settings is invalid
245,	Reserved,				Not used
246,	Reserved,				Not used
247,	Reserved,				Not used
248,	Reserved,				Not used
249,	Reserved,				Not used
250,	ERROR_GET_HBA_ALIAS,			Failed to retrieve HBA alias of the HBA			
251,	ERROR_UPDATE_HBA_ALIAS,			Failed to update HBA alias of the HBA
252,	ERROR_GET_PORT_ALIAS,			Failed to retried port alias of the HBA
253,	ERROR_UPDATE_PORT_ALIAS,		Failed to update port alias of the HBA
254,	Reserved,				Not used
255,	Reserved,				Not used
256,	Reserved,				Not used
257,	Reserved,				Not used
258,	Reserved,				Not used
259,	Reserved,				Not used
260,	ERROR_DRIVER_RESCAN,                    Driver rescan operation failed (Solaris)
261,	Reserved,				Not used
262,	Reserved,				Not used
263,	Reserved,				Not used
264,	Reserved,				Not used
265,	Reserved,				Not used
266,	Reserved,				Not used
267,	Reserved,				Not used
268,	Reserved,				Not used
269,	Reserved,				Not used
270,	ERROR_ADAPTER_PROP_MISSING,            	Adapter property file is missing  
280,   	ERROR_CREATE_VIRTUAL_HBA,             	Failed to create a virtual HBA
281,   	ERROR_DELETE_VIRTUAL_HBA,             	Failed to delete a virtual HBA
282,   	ERROR_INVALID_WWPN_VIRTUAL_HBA,        	Virtual port WWPN is invalid
283,  	ERROR_VIRTUAL_HBA_NOT_FOUND,          	Unable to find the specific virtual HBA
284,  	ERROR_NO_VIRTUAL_HBA_EXIST,           	The physical HBA does not have any virtual HBA
285,    ERROR_DELETE_ALL_VIRTUAL_HBAS,       	Failed to delete all virtual HBAs
286,	ERROR_OPTION_DISABLED_VIRTUAL_HBA,	Option not available with virtual HBA