Preparing a batch file – HP XP7 Storage User Manual

Page 95

Advertising
background image

The outpath subcommand specifies the directory in which files should be saved. For detailed
information about the outpath subcommand, see

“outpath” (page 117)

.

option compress

This script specifies that the Export Tool should compress monitoring data in ZIP files.

The option subcommand specifies whether to save files in ZIP format or in CSV format. For
detailed information about the option subcommand, see

“option” (page 118)

.

apply

The apply subcommand saves monitoring data in files. For detailed information about the
apply

command, see

“apply” (page 118)

.

When you install the Export Tool, the command.txt file is stored in the installation directory. This
file contains sample scripts for your command file. It is recommended that you customize scripts
in command.txt according to your needs. For detailed information about subcommand syntax,
see

“Export Tool command reference” (page 99)

.

Preparing a batch file

Use a batch file 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 and
runUnix.bat

. If your computer runs Windows, use runWin.bat. If your computer runs UNIX,

use runUnix.bat.

The following examples illustrate scripts in runWin.bat and runUnix.batbatch 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 computers (runWin.bat):

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 previous 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 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:

Using the Export Tool

95

Advertising
This manual is related to the following products: