HP P9000 Command View Advanced Edition Suite Software 7.2 CLI Reference Guide

Encoding the password in the properties file or password file
Specify a password in the properties file (hdvmcli.properties) or password file, to omit entering
the password when using the Device Manager CLI. You can specify a plain text password for the
properties file or password file. However, HP recommends that you use the hdvmaccount command
to encode the password for better security.
Environment settings for encoding a password
There are two levels for encoding passwords, NORMAL and HIGH. For details about how to change
the level to HIGH in order to generate a safer and more secure character string, see the HP P9000
Command View Advanced Edition Suite Software Administrator Guide.
How to use the hdvmaccount command
This section describes the hdvmaccount command, which encodes a password and outputs it to the
properties file or password file. The hdvmaccount command is stored in the same folder or directory
as hdvmcli.
Execute the hdvmaccount command using the user account used to log in to the OS on which the
Device Manager CLI is executed. If you execute the Device Manager CLI by using a user account
different from the one that was used to execute the hdvmaccount command, an error might occur.
The format of the hdvmaccount command is as follows:
hdvmaccount { -u user-ID [ -f absolute-path-name-of-the-password-file] | help }
-u
Specify the Device Manager user ID that executes the Device Manager CLI. If a user ID has been
set for the user property in the properties file, specify the same user ID for the -u option. To
change the user ID that executes the Device Manager CLI, you first need to change the setting
for the user property in the properties file. In addition, if an encoded password is already set
for the 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 password2
property in the properties file. If you omit the -f option, the character string of the encoded
password is set.
help
Displays Help for the hdvmaccount command.
When the hdvmaccount command is executed, a message appears prompting you to enter the
password. If you enter the password twice, that password is encoded and then the password2
property in the properties file is automatically set.
If a password has been set for the password or password2 property in the properties file, enter
that password when you execute the hdvmaccount 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 password2
property is reset.
CLI Reference Guide 377