Preparing a batch file – HP XP P9500 Storage User Manual

Page 59

Advertising
background image

by these operands are the monitoring data displayed in the Physical tab of the Performance
Management window with selecting longrange.)
Specify a term within "Long Range From XXX To XXX" which is output by the show
subcommand.

In the sample file in

“Preparing a command file ” (page 57)

, the script short-range

200610010850:200610010910

specifies the term 8:50-9:10 on Oct. 1, 2006. This script

is applied to the group RemoteCopy subcommand in this example. When you run the
Export Tool, it will export the statistics about remote copy operations by Continuous Access
Synchronous and Continuous Access Synchronous Z in the term specified by the short-range
subcommand.
Also, in

“Preparing a command file ” (page 57)

, the script long-range

200609301430:200610011430

specifies the term from Sep. 30, 2006, 14:30 to Oct. 1,

2006

, 14:30. This script is applied to the group PhyPG Long subcommand in this example.

When you run the Export Tool, it will export the usage statistics about parity groups in the
term specified by the long-range subcommand.
If you run the Export Tool without specifying the short-range or long-range subcommand,
the monitoring data in the whole storing period (data in the period displayed by the show
subcommand) will be exported.

For detailed information about the short-range subcommand, see

“short-range”

(page 80)

.

For detailed information about the long-range subcommand, see

“long-range”

(page 81)

.

outpath out

This script specifies that files should be saved in the directory named out in the current
directory.
The outpath subcommand specifies the directory in which files should be saved. For detailed
information about the outpath subcommand, see

“outpath” (page 83)

.

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 84)

.

apply

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

command, see

“apply” (page 84)

.

When you install the Export Tool, the command.txt file will be stored in the export 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 63)

.

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 (that is, the export directory) 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):

Using the Export Tool

59

Advertising
This manual is related to the following products: