Termination code, Log files, Termination code log files – HP XP7 Storage User Manual
Page 98

Table 5 Estimate of time required for exporting files (continued)
Remarks
Estimated time
Operand for the group
subcommand
Note:
•
The estimated time that includes the transfer time of the network might take a lot of time depending on the transmission
speed of the network.
•
To shorten the acquisition time, specify the option of the group command to narrow acquisition objects. For details
about the group command, see
.
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
SUBCOMMAND FAILED
FAILED
In the previous scripts,
Log files
When 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 6 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
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
98
Exporting Performance Monitor data