HP StorageWorks XP Performance Control user guide: HP XP12000 Disk Array, HP XP10000 Disk Array (T1605-96012, July 2009)

54 XP Performance Control Export Tool
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 8 Sample batch file including a reference to termination code
NOTE: The symbol indicates the end of a command line.
Command reference
This section explains details about subcommands you can write in your command file and the java
command you should use in your batch file. Table 22 lists the subcommands explained in this section. The
java command is explained in ”The java command for exporting data In files” on page 75.
Command syntax
This section explains the syntax of subcommands you can write in the command file. This section also
explains the syntax of the java command you should use in the batch file.
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServerEx.jar" -Xmx268435456 -
-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 22 Subcommand list
Subcommand Function See
svpip Specifies the IP address of the SVP to be logged into. The svpip subcommand” on
page 56
retry Makes settings on retries of export processing. The retry subcommand” on
page 56
login Logs the specified user into the SVP. The login subcommand” on
page 57
show Checks the SVP to find the period of monitoring data
stored in the SVP and the data collection interval (called
the gathering interval), and then outputs them to the
standard output and log file.
The show subcommand” on
page 57
group Specifies the type of data to be exported. The group subcommand” on
page 58
shortrange Specifies the term of monitoring data to be exported for
short range monitoring data.
The shortrange subcommand
on page 67
longrange Specifies the term of monitoring data to be exported for
long range monitoring data.
The longrange subcommand
on page 70
outpath Specifies the directory in which files should be saved. The outpath subcommand” on
page 72
option Specifies whether to save files in ZIP or CSV format. The option subcommand” on
page 73
apply Saves monitoring data in files. The apply subcommand” on
page 73
set Starts or ends monitoring an array and also specifies the
gathering interval in short range monitoring.
The set subcommand” on
page 73
help Displays the online Help for subcommands. The help subcommand” on
page 75