Using the export tool, Preparing a command file – HP XP P9500 Storage User Manual

Page 57

Advertising
background image

4.

Decompress export.tar on your computer. The Export Tool is installed. Also, a new directory
named export is created.

NOTE:

Consider the following:

The export directory contains several files including runWin.bat. We recommend that
you delete runWin.bat because this file is no longer needed.

The Export Tool program is a Java class file and is located in the export/lib directory.

Using the Export Tool

To be able to export monitoring data, you must prepare a command file and a batch file. This
topic explains how to prepare a command file and a batch file, and then explains how to run the
Export Tool.

Preparing a command file

To run the Export Tool, you must write scripts for exporting monitoring data. When writing scripts,
you need to write several subcommands in a command file. When you run the Export Tool, the
subcommands in the command file execute sequentially and then the monitoring data is saved in
files.

Example of a command file

svpip 158.214.135.57 ; Specifies IP address of SVP
login expusr passwd ; Logs user into SVP
show ; Outputs storing period to standard output
group PhyPG Long ; Specifies type of data to be exported and type of
; storing period
group RemoteCopy ; Specifies type of data to be exported
short-range 200610010850:200610010910
; Specifies term of data to be exported for data stored
; in short range
long-range 200609301430:200610011430
; Specifies term of data to be exported for data stored
; in long range
outpath out ; Specifies directory in which files will be saved
option compress ; Specifies whether to compress files
apply ; Executes processing for saving monitoring data in files

In the above scripts, the semicolon (;) indicates the beginning of a comment. Characters from a
semicolon to the end of the line are regarded as a comment.
The scripts in this command file are explained as follows:

svpip 158.214.135.57

This script specifies that you are logging into SVP whose IP address is 158.214.135.57.
You must log into SVP when using the Export Tool.
The svpip subcommand specifies the IP address of SVP. You must include the svpip
subcommand in your command file. For detailed information about the svpip subcommand,
see

“svpip” (page 65)

.

login expusr passwd

This script specifies that you use the user ID expusr and the password passwd to log into
SVP.
The login subcommand logs the specified user into SVP. You must include the login
subcommand in your command file. For detailed information about the login subcommand,
see

“login” (page 66)

.

CAUTION:

When you write the login subcommand in your command file, you must specify

a user ID that should be used exclusively for running the Export Tool. See

“Requirements for

using the Export Tool ” (page 55)

for reference.

Using the Export Tool

57

Advertising
This manual is related to the following products: