Termination code, Log files, Termination code log files – HP XP P9500 Storage User Manual
Page 62
Table 4 Estimate of time required for exporting files (continued)
Remarks
Estimated time
Operand for the group
subcommand
This estimate assumes that:
60 minutes
LDEV
•
The Export Tool should save statistics about 8,192 volumes within a
24-hour period.
•
The Export Tool is used eight times. Each time the Export Tool is used,
the tool obtains statistics within a 3-hour period.
This estimate assumes that:
60 minutes
LU
•
The Export Tool should save statistics about 12,288 LUs within a
24-hour period.
•
The Export Tool is used eight times. Each time the Export Tool is used,
the tool obtains statistics within a 3-hour period.
Termination code
If you want to use a reference to a termination code in your batch file, do the following:
•
To use such a reference in a Windows batch file, write %errorlevel% in the batch file.
•
To use such a reference in a UNIX Bourne shell script, write %? in the shell script.
•
To use such a reference in a UNIX C shell script, write %status in the shell script.
A reference to a termination code is used in the following example of a Windows batch file. If this
batch file executes and the Export Tool returns the termination code 1 or 3, the command prompt
displays a message that indicates the set subcommand fails.
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Xmx536870912 -Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
if %errorlevel%==1 echo THE SET SUBCOMMAND FAILED
if %errorlevel%==3 echo THE SET SUBCOMMAND FAILED
pause
In the above scripts,
Log files
Whenever the Export Tool runs, the Export Tool creates a new log file on your computer. Therefore,
if you run the Export Tool repeatedly, the size of free space on your computer will be reduced. To
secure free space on your computer, you are strongly recommended to delete log files regularly.
For information about the directory containing log files, see
The Export Tool returns a termination code when the Export Tool finishes.
Table 5 Termination codes returned by the export tool
Meaning
Termination
code
The Export Tool finished successfully.
0
An error occurred when the set subcommand (see
) executed, because an attempt
to switch to Modify mode failed. Some other user might have been logged on in Modify mode.
1
Either one of the following two errors occurred:
2
•
A command file has been corrupted or could not be read.
•
An error occurred when a command was parsed.
An error occurred due to more than one reason. One of the reasons is that an attempt to switch to
Modify mode failed when the set subcommand (see
) executed. Some other user
might have been logged on in Modify mode.
3
The Storage Administrator (Performance Management) role is not assigned to the user ID.
4
62
Export Tool