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-classpathclass-pathrproperty-parameterssanproject.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.

  • -Dhttp.proxyHost= host-name-of-proxy-host, or -Dhttp.proxyHost=IP-address-of-proxy-host

    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 SVP through a proxy host.

  • -Dhttp.proxyPort=port-number-of-proxy-host

    Specifies the port number of a proxy host. You must specify this parameter if the computer that runs Export Tool communicates with SVP through a proxy host.

  • -Del.tool.Xmx=VM-heap-size-when-ExportTool-starts (bytes)

    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 below. 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 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.

  • -Dmd.command=path-to-command-file

    Specifies the path to the command file

  • -Dmd.logpath=path-to-log-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.

  • -Dmd.logfile=name-of-log-file

    Specifies the name of the log file.

    If this parameter is omitted, log files are named exportMMddHHmmss.log. MMddHHmmss indicates when Export Tool runs. For example, the log file export0101091010.log contains log information about the Export Tool execution at Jan. 1, 09:10:10.

  • -Dmd.rmitimeout=timeout(min.)

    Specifies the timeout value for communication between Export Tool and the SVP:

    • Default: 20 minutes
    • Minimum: 1 minute
    • Maximum: 1,440 minutes (24 hours)

    If a request does not come from Export Tool within the timeout period, the SVP determines that execution has stopped and disconnects the session with Export Tool. Therefore, if the machine on which 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.

  • -Del.logpath=log-output-directory-name

    Specify the directory to store the log file generated when Export Tool was downloaded. By default, the current directory is set. The initial value for the startup batch file is log.

  • -Del.logfile=log-file-name

    Specify the name of the log file generated when Export Tool was downloaded. By default, loaderMMddHHmmss.log is set. MM is the month, dd is the date, and HH is the hour, mm is minutes, and ss is seconds. When the default name is used, a new log file is created every time you run Export Tool. As a result, you need to delete log files regularly. The initial value for the startup batch file is not specified.

  • -Del.mode=startup-mode-of-Export-Tool (all/delete)

    Specify the startup mode of Export Tool. The following shows startup modes and their behavior.

    • Mode: all

      Download Export Tool: Yes

      Run Export Tool: Yes

      Delete temporary directories in the lib directory: Yes

    • Mode: delete

      Download Export Tool: no

      Run Export Tool: no

      Delete temporary directories in the lib directory: Yes

  • -Del.dlport=port-number-used-when-Export-Tool-is-downloaded

    Specifies the port number used when Export Tool is downloaded. By default, 51099 is set. When you change the port number (port number key name: RMIClassLoader) of the SVP, you must also change the port number of this operand.

    For settings that are affected by changes of port numbers for the SVP, see the Hitachi Device Manager - Storage Navigator User Guide.

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 the above script, <CR+LF> indicates the end of a command line.