HP StorageWorks Performance Control XP user guide (T1605-96007, October 2007)
Performance Control XP user guide 53
• Whenever the Export Tool runs, it creates a new log file on your computer. Therefore, if you run the
Export Tool repeatedly, the size of free space on your computer is reduced. To secure free space on
your computer, HP strongly recommends deleting log files regularly. For information about the
directory containing log files, see ”The java command for exporting data In files” on page 75.
• For information about solving errors with the Export Tool, see ”Troubleshooting the Export Tool” on
page 76.
• The Export Tool returns a termination code when the Export Tool finishes (see Table 21).
If you want to use a reference to a termination code in your batch file, do the following:
• In a Windows batch file, write %errorlevel% in the batch file.
• In a UNIX Bourne shell script, write %? in the shell script.
• 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.
Figure 24 Sample batch file including a reference to termination code
LDEV 60 minutes Assumes:
• The Export Tool should save statistics about 8,192 logical 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.
LU 60 minutes Assumes:
• 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.
Table 21 Termination codes that the Export Tool returns
Termination code Meaning
0 The Export Tool finished successfully.
1 An error occurred when the set subcommand (see ”The set subcommand” on page 73)
executed, because an attempt to switch to Modify mode failed. Some other user might
have been logged on in Modify mode.
2 An error occurred due to some reason unrelated to system option modes (that is, View mode
and Modify mode).
3 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 ”The set subcommand” on
page 73) executed. Some other user might have been logged on in Modify mode.
4 The user ID has no permissions for Auto LUN XP, Continuous Access XP, and TrueCopy for
z/OS.
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServer.jar"
-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 ↵
Table 20 Estimate examples of time required for exporting files (continued)
Operand for
the group
subcommand
Estimated time Remarks