Running the export tool – HP StorageWorks XP Remote Web Console Software User Manual
Page 51

XP Performance Control user guide
51
Batch file for Windows computers (
runWin.bat
)
Batch file for UNIX computers (
runUnix.bat
)
Figure 5
Scripts in batch files (when specifying the IP address of a proxy host)
NOTE:
The symbol indicates the end of a command line.
For detailed information about syntax of the java command, see ”
The java command for exporting data
Running the Export Tool
To run the Export Tool and save monitoring data in files, you must execute your batch file. To execute your
batch file, you must enter the name of the batch file at the command prompt, and press Enter (see
for reference). If you are using a Windows computer, you can double-click the batch file to execute the
batch file.
Figure 6
An example of executing a batch file (on a Windows computer)
When the Export Tool starts exporting monitoring data, dots (...) are issued to the standard output (for
example, the command prompt). The dots increment as export processing continues (see
). If an
internal error occurs, the exclamation mark (!) is issued to the standard output and the Export Tool
attempts to restart exporting data. If the export processing restarts, dots reappear and increment until
export processing finishes.
Figure 7
Sample command prompt outputs when the Export Tool runs
When the Export Tool successfully finishes, monitoring data is usually compressed in ZIP-format archive
files. To obtain CSV files, you must decompress ZIP files and extract CSV files out of the ZIP files. If the
operating system on your computer does not include a feature for decompressing ZIP files, you must
obtain software for decompressing files.
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServerEx.jar"
-Dhttp.proxyHost=158.211.122.124 -Dhttp.proxyPort=8080 -Xmx268435456
-Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
pause
#! /bin/sh
java -classpath "./lib/JSanExport.jar:./lib/JSanRmiServerEx.jar"
-Dhttp.proxyHost=158.211.122.124 -Dhttp.proxyPort=8080 -Xmx268435456
-Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain
c:\WINDOWS> cd c:\export
Go to the directory containing runWin.bat
c:\export> runWin.bat
Execute runWin.bat
[ 2] svpip 158.214.135.57
[ 3] login User = expusr, Passwd = [****************]
:
:
[ 6] group Port
:
:
[20] apply
Start gathering port data
Target = 16, Total = 16
+----+----+----+----+----+----+----+----+----+----+
...........................!
.................................
End gathering port data