Running Export Tool; Running A Batch File - HPE XP7 User Manual

Performance for open and mainframe systems
Hide thumbs Also See for XP7:
Table of Contents

Advertisement

In the preceding scripts, <CR+LF> and <LF> indicate the end of a command line.
If the IP address of the proxy host is 158.211.122.124 and the port number is 8080, the resulting
command script is as follows:
Example batch file for Windows computers (runWin.bat):
java -classpath "./lib/JSanExportLoader.jar"
-Dhttp.proxyHost=158.211.122.124
-Dhttp.proxyPort=8080 -Del.tool.Xmx=536870912
-Dmd.command=command.txt
-Dmd.logpath=log -Dmd.rmitimeout=20 sanproject.getexptool.RJElMain<CR+LF>
pause<CR+LF>
Example batch file for UNIX computers (runUnix.bat):
#! /bin/sh<LF>
java -classpath "./lib/JSanExportLoader.jar"
-Dhttp.proxyHost=158.211.122.124
-Dhttp.proxyPort=8080 -Del.tool.Xmx=536870912
-Dmd.command=command.txt
-Dmd.logpath=log -Dmd.rmitimeout=20 sanproject.getexptool.RJElMain<LF>
In the above scripts, <CR+LF> and <LF> indicate the end of a command line.
The following examples illustrate scripts in delWin.bat and delUnix.bat files. These batch
files include a command line that runs a Java command. When you run the batch file, the Java
command is run, and the directories created by Export Tool, and the files in the directories are
deleted.
Example batch file for Windows computers (delWin.bat):
java -classpath "./lib/JSanExportLoader.jar"
-Dmd.command=command.txt
-Del.logpath=log
-Del.mode=delete sanproject.getexptool.RJElMain<CR+LF>
Example batch file for UNIX computers (delUnix.bat):
#! /bin/sh<LF>
java -classpath "./lib/JSanExportLoader.jar"
-Dmd.command=command.txt
-Del.logpath=log
-Del.mode=delete sanproject.getexptool.RJElMain<LF>
For detailed information about syntax of the Java command, see

Running Export Tool

Running a batch file

To save monitoring data in files, launch Export Tool by running the batch file.
From a system running Windows, double-click the batch file to run it.
c:\WINDOWS> cd c:\export
c:\export> runWin.bat
Dots (...) appear on the screen until the system finishes exporting data. If an internal error occurs,
an exclamation mark (!) appears and then Export Tool restarts automatically.
Example of command prompt outputs from Export Tool:
[ 2] svpip 158.214.135.57
[ 3] login User = expusr, Passwd = [****************]
:
:
[ 6] group Port
:
:
[20] apply
Start gathering port data
56
Exporting Performance Monitor data
"Java" (page
82).

Advertisement

Table of Contents
loading

Table of Contents