HP P9000 Tiered Storage Manager Software 7.4.1-00 CLI Reference Guide (TB585-96029, April 2013)

After the command completes, you do not need to specify the password when using the CLI. After the
htsmaccount command finishes and the CLI is set up, use the GetStorageDomains command to
make sure that the password is correctly set.
Change the access permission for the CLI/logs folder
In Windows, before using the CLI, change the access permissions to the CLI/logs folder so that the
user accounts that use the CLI can read data from and write data to that folder.
CLI/logs folder set up on the management server:
installation-folder-of-the-Tiered-Storage-Manager-server\CLI\logs
CLI/logs folder set up on the management client:
system-drive\TieredStorageManager\Tiered-Storage-Manager-version\CLI\
logs
Setting up the Java execution environment
Before you can execute commands, you need to set up the Java execution environment.
Specify a path for the java command whose version is required to use the CLI in the
HTSM_CLI_JRE_PATH environment variable. The value to be specified depends on the version. Even
if you do not specify a value for this environment variable, you can execute the CLI by using the JRE
specified in the PATH environment variable.
In Windows, you can set environment variables by using the set command. In Solaris, HP-UX, or
Linux, you need to use a different set of commands, such as the setenv and export commands,
depending on the OS or shell you are using.
This example shows how to specify HTSM_CLI_JRE_PATH in Windows:
C:\>SET HTSM_CLI_JRE_PATH=C:\Program Files\Java\j2re1.4.2_06\bin
When setting the environment variable HTSM_CLI_JRE_PATH in Windows, note the following points:
Do not enclose the path in single or double quotation marks (' or ").
(Example of an invalid specification: "C:\Documents and Settings")
Do not specify a backslash (\) at the end of the path.
(Example of an invalid specification: C:\Documents and Settings\)
Do not specify a path that is directly under the root of a drive.
(Example of an invalid specification: C:\)
Do not specify a folder for which there are no access permissions assigned to it.
NOTE:
If connecting to the Tiered Storage Manager server that exists outside the firewall, you need to adjust
the firewall settings so that the CLI can use java.exe.
CLI Reference Guide 25