Adaptec 2410SA User Guide - Page 96
Error Handling, can test for a specific error using a series
![]() |
UPC - 760884142103
View all Adaptec 2410SA manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 96 highlights
DOS Utilities Error Handling Because the ACU scripting feature is designed to run without user interaction, the ACU handles errors during record and playback by simply exiting immediately whenever an error is detected. Whenever the ACU encounters an error during record or playback-for example, an unrecognized keyword in a script file- it reports the error and exits. If a log file is opened, the ACU writes the error message to the log file. Otherwise, it displays the message on the screen. Upon exit, the ACU returns its exit status in the DOS environment variable ERRORLEVEL. When the ACU is run within a DOS batch file, that batch file can examine the ACU's exit status using the DOS command IF ERRORLEVEL n. The batch file can use this command to test the ACU success or failure status. The batch file can test for a specific error using a series of If ERRORLEVEL n commands. The table below lists the possible error codes returned by the ACU. Code 0 1 2 3 4 5 6 7 8 Description ACU ran without changes-The ACU exited with no errors (success) and no report is required. No controller found-The ACU did not detect any controllers in the system. Syntax or logical error in the script file-The ACU encountered an invalid command or keyword in the specified script file. Unable to open file-The ACU was unable to open the specified script or log file. Error in the command line parameters-You passed an invalid command-line switch to the ACU. (See Using the Scripting Features on page B-18 for the list of valid command switches.) Unable to read system configuration-The ACU was unable to get the configuration information from the specified controller. No drives detected-The ACU did not detect any devices attached to the selected controller. Specified drive not found in system-The device you specified does not exist on the selected controller. Specified array size too small-You specified an array size that is smaller than the minimum size allowed for this array. B-32
![](/manual_guide/products/adaptec-2410sa-user-guide-bbfc311/96.png)