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

How to use the htsmaccount command
This section describes the htsmaccount command, which encodes a password and outputs it to the
htsmcli.properties file or password file. The htsmaccount command is in the following
locations:
On a management client:
If the OS is Windows:
system-drive\TieredStorageManager\Tiered-Storage-Manager-version\
CLI\
If the OS is Solaris, HP-UX, or Linux:
/opt/TieredStorageManager/Tiered-Storage-Manager-version/CLI/
On a management server:
If the OS is Windows:
installation-folder-of-the-Tiered-Storage-Manager-server\CLI\
If the OS is Linux:
installation-directory-of-the-Tiered-Storage-Manager-server/CLI/
Execute the htsmaccount command by using the user account used to log in to the OS on which
the CLI (htsmcli) is executed. If you execute the CLI by using a user account different from the one
that was used to execute the htsmaccount command, an error might occur.
The format of the htsmaccount command is as follows:
htsmaccount { -u user-name [-f absolute-path-of-the-password-file] | help }
-u
Specify the name of the Tiered Storage Manager user that executes the CLI. If a user name has
been set for the option.username property in the htsmcli.properties file, specify the
same user name for the -u option. To change the user name that executes the CLI, you first need
to change the setting for the option.username property in the htsmcli.properties file.
In addition, if an encoded password is already set for the option.password2 property, delete
that value.
-f
Specify this option if you want to output the encoded password to a file. Use an absolute path to
specify the file name. If you specify the -f option, the path to the file is set for the option.pass-
word2 property in the htsmcli.properties file. If you omit the -f option, the character string
of the encoded password is set.
help
Displays Help for the htsmaccount command.
When the htsmaccount command is executed, a message appears prompting you to enter the
password. After 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.
Preparations for executing the CLI24