beautypg.com

2 java environment settings, 2-1 how to configure java environment, Tion – HP XP Command View Advanced Edition Software User Manual

Page 33

background image




Setting up command line interface



33

NOTE:

If the value of HDVM_CLI_MEM_SIZE is less than what is required by a CLI command, CLI

terminates, and the following error message is displayed:

KAIC90574-E The memory for the CLI became insufficient while this operation was
being performed.

2-2 Java environment settings

To execute the Device Manager CLI, the Java environment must be configured for the Device
Manager CLI.

2-2-1 How to configure Java environment

It is assumed that a Java version supported by the Device Manager CLI is installed on the machine
that executes the Device Manager CLI. In addition, an appropriate JRE must be specified as the
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:

5.

Specify a JRE using the environment variable PATH (see section

2-2-1-1

)

6.

Specify a JRE using the environment variable HDVM_CLI_JRE_PATH (see section

2-2-1-2

)

2-2-1-1 Specify a JRE by using the environment variable PATH

Specify the path of the JRE that the Device Manager CLI will use to the environment variable PATH.
Before specifying the path, check the version of Java that is currently configured to the environment
variable PATH. To check the version of Java, execute the following command in the directory where
the Device Manager CLI is run. This operation displays the version of Java that is configured to the
environment variable PATH.

java –version

If a version of Java that Device Manager CLI supports is displayed, you do not need to change the
settings of the Java execution environment. If a version of Java that Device Manager CLI does not
support is displayed, specify the path of the supported JRE to the environment variable PATH.

2-2-1-2 Specify a JRE Using the environment variable

HDVM_CLI_JRE_PATH

Specify the path of the JRE that the Device Manager CLI will use to the environment variable
HDVM_CLI_JRE_PATH

.

NOTE:

If you use the Device Manager CLI on the same machine 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 section

2-2-2

.

2-2-2 Using the same JRE as the Device Manager server

When the Device Manager CLI uses the same JRE that the Device Manager server uses, specify
the path of that JRE to the environment variable HDVM_CLI_JRE_PATH. The path of the Device
Manager JRE is as follows:

In Windows:

Common-Component-installation-directory\jdk\jre\bin

In Linux:

/opt/CVXPAE/Base/jdk/jre/bin