Using the export tool, Running the batch file – HP XP P9500 Storage User Manual

Page 60

Advertising
background image

java -classpath "./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Xmx536870912 -Dmd.command=command.txt
-Dmd.logpath=log
sanproject.getmondat.RJMdMain<CR+LF>
pause<CR+LF>

Example batch file for UNIX computers (runUnix.bat):

#! /bin/sh<LF>
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiApiEx.jar:./lib/JSanRmiServerUx.jar"
-Xmx536870912 -Dmd.command=command.txt -Dmd.logpath=log
sanproject.getmondat.RJMdMain<LF>

In the above scripts, <CR+LF> and <LF> indicate the end of a command line.
If the computer 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 occasions, 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 log files in the log directory

if you want to name log files as you like

If the computer 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 <CR+LF>
pause <CR+LF>

Example of specifying a proxy host on UNIX (runUnix.bat):

#! /bin/sh <LF>
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 <LF>

In the above scripts, <CR+LF> and <LF> indicate the end of a command line.
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 computers (runWin.bat):

java -classpath "./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;./lib/JSanRmiServerUx.jar"
-Dhttp.proxyPort=8080 -Xmx536870912 -Dmd.command=command.txt
-Dmd.logpath=log sanproject.getmondat.RJMdMain <CR+LF>
pause <CR+LF>

Example batch file for UNIX computers (runUnix.bat):

#! /bin/sh <LF>
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiApiEx.jar:./lib/JSanRmiServerUx.jar"
-Dhttp.proxyHost=158.211.122.124
-Dhttp.proxyPort=8080 -Xmx536870912 -Dmd.command=command.txt
-Dmd.logpath=log sanproject.getmondat.RJMdMain <LF>

In the above scripts, <CR+LF> and <LF> indicate the end of a command line.
For detailed information about syntax of the Java command, see

“Java” (page 86)

.

Using the Export Tool

This section describes how to use to Export Tool to enhance functionality.

Running the batch file

To run the Export Tool and save monitoring data in files, you need to execute your batch file by
entering. To execute your batch file, you need to enter the name of the batch file at the command

60

Export Tool

Advertising
This manual is related to the following products: