HP XP7 Tiered Storage Manager CLI Reference Guide (TK985-96002, May 2014)

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-HP-XP7-Command-View-Advanced-Edition\TieredStor-
ageManager\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=Program-Files-folder\Java\JRE-version\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.
Setting up SSL communication
To use SSL to communicate with the Tiered Storage Manager server, you need to set up an environment
on Tiered Storage Manager server and the management client that executes the Tiered Storage
Manager CLI.
CLI Reference Guide 25