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. If your computer runs Windows, use runWin2.bat (for JRE version 17.0 or 21.0) or runWin.bat (for JRE version 8.0 to 11.0). If your computer runs UNIX or Linux, use runUnix2.bat (for JRE version 17.0 or 21.0) or runUnix.bat (for JRE version 8.0 to 11.0).
The following describes the contents of the batch file and shell file. These files include a command line that runs a Java command. When you run the batch or shell file, the Java command runs the subcommands specified in the command file and then saves storage system monitoring data in files.
Batch file runWin.bat (JRE version 8.0 to 11.0):
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.
#! /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.