HP StorageWorks P9000 Tiered Storage Manager Software 7.1 CLI Reference Guide (TB585-96011, May 2011)

When the htsmaccount command is executed, a message appears prompting you to enter the
password. If you enter the password twice, that password is encoded and then automatically set for
the option.password2 property in the htsmcli.properties file.
If a password has been set for the option.password or option.password2 property in the
htsmcli.properties file, enter that password when you execute the htsmaccount command.
If the character string that you enter matches the password that has been set, a message appears
prompting you to enter the password to encode. After the password is encoded, the existing property
is deleted and the option.password2 property is reset.
After the command completes, you do not need to specify the password when using 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 the 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.
CLI Reference Guide 27