HP StorageWorks Performance Control XP user guide (T1605-96007, October 2007)
Performance Control XP user guide 47
NOTE:
•The
export directory contains a couple of files, which include runWin.bat. HP recommends
deleting
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 export monitoring data, you must prepare a command file and a batch file. This section 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 must
write several subcommands in a command file. When you run the Export Tool, subcommands in the
command file execute sequentially, and monitoring data is saved in files.
Here is a sample command file:
Figure 18 Sample command file
NOTE: In this file, a semicolon (;) indicates the beginning of a comment. Characters from a semicolon to
the end of the line are regarded as a comment.
Subcommands in this command file are explained as follows:
• svpip 158.214.135.57
Specifies that you are logging into the SVP whose IP address is 158.214.135.57. You must log into the
SVP when using the Export Tool.
The svpip subcommand specifies the SVP’s IP address. You must include the svpip subcommand in
your command file. For detailed information, refer to ”The svpip subcommand” on page 55.
• login expusr passwd
Specifies that you use the user ID expusr and the password passwd to log into the SVP.
The login subcommand logs the specified user into the SVP. You must include the login
subcommand in your command file. For detailed information, see ”The login subcommand” on
page 57.
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
shortrange 200410010850:200410010910
; Specifies term of data to be exported for data stored
; in short range
longrange 200409301430:200410011430
; 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