Java
Description
This command starts Export Tool and exports monitoring data into files. To start Export Tool, write this Java command in your batch file and then run the batch file.
Syntax
Java -classpath class-path property-parameters sanproject.getexptool.RJElMain
Operands
|
Operand |
Description |
|---|---|
|
class-path |
Specifies the path to the class file of Export Tool. The path must be enclosed in double quotation marks ("). |
|
property-parameters |
You can specify the following parameters. At minimum you must specify -Dmd.command.
Specifies the host name or the IP address of a proxy host. You must specify this parameter if the computer that runs Export Tool communicates with the SVP through a proxy host.
Specifies the port number of a proxy host. You must specify this parameter if the computer that runs Export Tool communicates with the SVP through a proxy host.
Specifies the size of memory to be used by JRE when Export Tool is being run. You must specify this parameter. The memory size must be 536870912, as shown in the example later in this topic. If the installed memory size is smaller than the recommended size of the PC running Storage Navigator, you must install more memory before executing Export Tool. If the installed memory size is larger than the recommended memory size of the PC running Storage Navigator, you can specify a memory size larger than as shown in the example. However, to prevent lowering of execution speed, you do not set oversized memory size.
Specifies the path to the command file
Specifies the path to log files. A log file will be created whenever Export Tool runs. If this parameter is omitted, log files will be saved in the current directory.
Specifies the name of the log file. If this parameter is omitted, log files are named exportMMddHHmmss.log. MMddHHmmss indicates when Export Tool is run. For example, the log file export0101091010.log contains log information about Export Tool execution at Jan. 1, 09:10:10.
Specifies the timeout value for communication between Export Tool and the SVP:
If a request does not come from Export Tool within the timeout period, the SVP determines that execution has stopped and disconnects from the Export Tool session. Therefore, if the machine that Export Tool runs on is slow, the sessions may disconnect unexpectedly. To prevent this from occurring, increase the timeout period by entering a larger value in this parameter.
Specifies the directory to store the log file which is created when Export Tool was downloaded. By default, the current directory is set. The initial value of the startup batch file is log.
Specifies the name of the log file which is created when Export Tool was downloaded. By default, loaderMMddHHmmss.log is set. MM is the month, dd is the day, HH is the hour, mm is minutes, and ss is seconds. By default, a new log file is created every time you run Export Tool. Therefore, you need to delete logs regularly. The initial value of the startup batch file is not specified.
Specifies the startup mode of Export Tool. Behavior of Export Tool startup modes shows the behavior of each operating mode. |
Behavior of Export Tool startup modes
|
Mode |
Download Export Tool? |
Run Export Tool? |
Delete temporary directory in lib directory? |
|---|---|---|---|
|
all |
Yes |
Yes |
Yes |
|
delete |
No |
No |
Yes |
Examples
The following example assumes that the computer running Export Tool communicates with the SVP through a proxy host. In the following example, the host name of the proxy host is Jupiter, and the port name of the proxy host is 8080:
java -classpath "./lib/JSanExportLoader.jar" -Dhttp.proxyHost=Jupiter -Dhttp.proxyPort=8080 -Del.tool.Xmx=536870912 -Dmd.command=command.txt -Dmd.rmitimeout=20 -Dmd.logpath=log sanproject.getexptool.RJElMain<CR+LF>
In the following example, a log file named export.log will be created in the log directory below the current directory when Export Tool runs:
java -classpath "./lib/JSanExportLoader.jar" -Del.tool.Xmx=536870912 -Dmd.command=command.txt -Dmd.logfile=export.log -Dmd.logpath=log sanproject.getexptool.RJElMain<CR+LF>
In this script, <CR+LF> indicates the end of a command line.