Batch file and shell file contents for Export Tool 2

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

Use a batch file to run Export Tool 2, which starts and saves monitoring data in files when you run the batch file/shell file. Therefore, the batch file/shell files (runWin.bat and runUnix.bat respectively) for Windows and Linux are provided. If your computer runs Windows, use runWin.bat and if your computer runs UNIX, use runUnix.bat.

The following describes the contents of the batch file and the shell file. These batch files include a command line that runs a Java command. When you run the batch file, the Java command runs the subcommands specified in the command file and then saves monitoring data in files.

Note: If Out of Memory occurs, increase the maximum heap memory size as needed (for example, -Xmx2g).
Batch file for starting Export Tool 2 for Windows (runWin.bat):
java -classpath "./exportTool.jar";"./external/log4j-core-2.7.jar";"./external/log4j-api
-2.7.jar";"./external/commons-codec-1.3.jar";"./external/lz4-1.3.0.jar"
 com.hitachi.exporttool.cli.Main %*<CR+LF>
<CR+LF> indicates the end of a command line.
Shell file for starting Export Tool 2 for Linux (runUnix.sh):
#! /bin/sh<LF>
java –classpath
"./exportTool.jar":"./external/log4j-core-2.7.jar":"./external/log4j-api-2.7.jar":"./external/commons-
codec-1.3.jar":"./external/lz4-1.3.0.jar" com.hitachi.exporttool.cli.Main "$@"<LF>
<LF> indicates the end of a command line.