HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.1 CLI Reference Guide (TB581-96051, May 2011)

2 Device Manager CLI environment settings
This chapter provides the environment settings necessary to use the Device Manager CLI.
Java environment settings
To execute the Device Manager CLI, the Java environment must be properly configured for the Device
Manager CLI execution environment.
How to configure a Java environment
It is assumed that a Java version supported by the Device Manager CLI is installed on the computer
that executes the Device Manager CLI. In addition, an appropriate JRE must be specified as a Java
environment that the Device Manager CLI will use.
To specify a JRE, you can use either of the following methods. However, in an environment where a
JRE is updated automatically, HP recommends that you use method 2:
1. Specify a JRE by using the PATH environment variable
2. Specify a JRE by using the HDVM_CLI_JRE_PATH environment variable
Specify a JRE by using the PATH environment variable
Specify the path of the JRE that the Device Manager CLI will use in the PATH environment variable.
Before specifying the path, check the Java version that is currently set in the PATH environment variable.
To check the Java version, execute the following command in the directory where the Device Manager
CLI is executed. This operation displays the Java version that is set in the PATH environment variable.
java -version
In the command execution results, if a version of Java that the Device Manager CLI supports is
displayed, you do not have to change the settings of the Java execution environment. If a version of
Java that the Device Manager CLI does not support is displayed, specify the path of a supported JRE
in the PATH environment variable.
Specify a JRE by using the HDVM_CLI_JRE_PATH environment variable
Specify the path of the JRE that the Device Manager CLI will use in the HDVM_CLI_JRE_PATH
environment variable.
If you use the Device Manager CLI on the same computer as the Device Manager server, HP
recommends that you specify the same JRE that the Device Manager server uses. For details about
the path of that JRE, see When using the same JRE as the Device Manager server on page 20.
CLI Reference Guide 19