Java
Description
This command starts the Export Tool and exports monitoring data into files. To start the Export Tool, write this Java command in your batch file and then run the batch file.
Syntax
Java -classpath class-pathrproperty-parameters sanproject.getmondat.RJMdMain
Operands
|
Operand |
Description |
|---|---|
|
class-path |
Specifies the path to the class file of the 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 the Export Tool communicates with SVP via a proxy host.
Specifies the port number of a proxy host. You must specify this parameter if the computer that runs the Export Tool communicates with SVP via a proxy host.
Specifies the size of memory to be used by JRE when the Export Tool is being executed. You must specify this parameter. The memory size must be 536870912, as shown in the Example later in this topic. If an installed memory size is smaller than the recommended size of the PC running Device Manager - Storage Navigator, you must install more memory before executing the Export Tool. If an installed memory size is larger than the recommended memory size of the PC running Device Manager - 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 the Export Tool executes. 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 the Export Tool executed. 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 the export tool and the SVP:
If a request does not come from the export tool within the timeout period, the SVP determines that execution has stopped and disconnects the session with the export tool. Therefore, if the machine on which the export tool is running is slow, export tool sessions may be disconnected unexpectedly. To prevent this from occurring, increase the timeout period by entering a larger value in this parameter. |
Examples
The following example assumes that the computer running the Export Tool communicates with SVP via 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/JSanExport.jar;./lib/JSanRmiApiEx.jar; ./lib/JSanRmiServerUx.jar" -Dhttp.proxyHost=Jupiter -Dhttp.proxyPort=8080 -Xmx536870912 -Dmd.command=command.txt -Dmd.rmitimeout=20 -Dmd.logpath=log sanproject.getmondat.RJMdMain <CR+LF>
In the following example, a log file named export.log will be created in the log directory below the current directory when the Export Tool executes:
java -classpath "./lib/JSanExport.jar;./lib/JSanRmiApiEx.jar;\ ./lib/JSanRmiServerUx.jar" -Xmx536870912 -Dmd.command=command.txt -Dmd.logfile=export.log -Dmd.logpath=log sanproject.getmondat.RJMdMain<CR+LF>
In the above script, <CR+LF> indicates the end of a command line.