Batch file and shell file contents for Export Tool 2

Virtual Storage Platform One Block 85 Export Tool 2 User Guide

Version
A0-05-4x
Audience
anonymous
Part Number
MK-26VSP1B026-02
ft:lastEdition
2026-05-04

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.

Note: If Out of Memory occurs, increase the maximum heap memory size as needed (for example, -Xmx2g).

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.

Shell file runUnix.sh (JRE version 8.0 to 11.0):
#! /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.