Preparing a batch file – HP XP RAID Manager Software User Manual
Page 91
Preparing a batch file
A batch file is used to run the Export Tool. The Export Tool starts and saves monitoring data in files
when you execute the batch file.
The installation directory for the Export Tool contains two default batch files: runWin.bat for
Windows systems, and runUnix.bat for UNIX systems.
The following examples illustrate scripts in the runWin.bat and runUnix.bat batch files. These
batch files include a command line that executes a Java command. When you execute the batch
file, the Java command executes the subcommands specified in the command file and then saves
monitoring data in files.
Example batch file for Windows systems (runWin.bat):
java -classpath
"./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Xmx536870912 -Dmd.command=command.txt -Dmd.logpath=log
sanproject.getmondat.RJMdMain
Example batch file for UNIX systems (runUnix.bat):
#! /bin/sh
"./lib/JSanExport.jar:./lib/JSanRmiApiEx.jar:./lib/JSanRmiServerUx.jar"
-Xmx536870912 -Dmd.command=command.txt -Dmd.logpath=log
sanproject.getmondat.RJMdMain
In the previous scripts,
If the system running the Export Tool communicates directly with SVP, you usually do not need to
change scripts in runWin.bat and runUnix.bat. However, you might need to edit the Java
command script in a text editor in some cases, for example:
•
if the name of your command file is not command.txt
•
if you moved your command file to a different directory
•
if you do not want to save in the log directory
•
if you want to name log files as you like
If the system that runs the Export Tool communicates with SVP via a proxy host, edit the Java
command script in a text editor. to specify the host name (or the IP address) and the port number
of the proxy host. For example, if the host name is Jupiter and the port number is 8080, the resulting
command script would be as shown in the following examples:
Example of specifying a proxy host on Windows (runWin.bat):
java -classpath
"./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Dhttp.proxyHost=Jupiter -Dhttp.proxyPort=8080 -Xmx536870912
-Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
Example of specifying a proxy host on UNIX (runUnix.bat):
#! /bin/sh
"./lib/JSanExport.jar:./lib/JSanRmiApiEx.jar:./lib/JSanRmiServerUx.jar"
-Dhttp.proxyHost=Jupiter -Dhttp.proxyPort=8080 -Xmx536870912
-Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
In the preceding scripts,
If the IP address of the proxy host is 158.211.122.124 and the port number is 8080, the resulting
command script is as follows:
Example batch file for Windows systems (runWin.bat):
java -classpath
"./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Dhttp.proxyHost=158.211.122.124 -Dhttp.proxyPort=8080 -Xmx536870912
Using the Export Tool
91