HP 3PAR OS 3.1.3 CLI Administrator's Manual

2. In the Environment Variable dialog box, enter TPDSYSNAME in the Variable box.
3. Enter your system name in the Value box.
4. Click OK.
Using the -sys Option
The global option sys (system) overrides any setting of the environment variable TPDSYSNAME.
On the command line, enter sys after the command name, followed by your system name. See
the following output example. Substitute your system name for <system1>.
$ showhost sys <system1>
Using the System Name
The system prompts for the system name if the environment variable TPDSYSNAME is not set and
the sys option is not used. To use the system name, see the following output example. Substitute
your system name for <system1>.
$ cli
system: <system1>
Setting Your Name and Password
Your name and password can be provided when prompted, or read from a file that is specified
with the environment variable TPDPWFILE or the global option pwf (password file).
CAUTION: By setting the system name, user name, and password using environment variables,
you are not prompted for this information when running the CLI, which can be useful for scripting.
However, passwords must be kept secure. Using encrypted passwords in scripts, using an encrypted
pwfile, or the encrypted password on the command line raises the risk of password exposure. It
is imperative that the script, pwfile, or command line history file be strictly maintained to avoid
compromise of the encrypted password. Failure to do so can leave the user open to impersonation
by anyone with access to the encrypted string.
NOTE: LDAP users can save password files using the setpassword command. However, LDAP
users are limited to accessing only the system they were logged in to when they saved their
password.
The password file has a single line with your name and an encrypted six character minimum
password separated by a space. For example:
3paruser PPTpdJPDHuwnU
Additionally, you can also store your password using the setpassword command. Storing your
password is useful when you need to:
Establish sessions when using the individual commands. Otherwise, you are prompted for
user and password information each time you issue a command.
Allow unattended operations such as scheduled automatic tasks on the host.
Global Options and Environment Variables 49