3 Running the HP 3PAR Command Line Interface
After the CLI is installed (as described in
“Installing the HP 3PAR Command Line Interface” (page 12)
)
and a user account is set up (as described in
“Managing User Accounts and Connections”
(page 16)
), a CLI connection requires the following information:
•
System name or IP address
•
User name
•
Password
You are prompted as follows when running the CLI:
system:
user:
password:
The example above displays the simplest way to connect to the CLI.
In addition to the method described above, you can also:
•
Use environment variables and global options to customize the CLI (
“Global Options and
Environment Variables” (page 41)
).
•
Set up a secure connection using SSL (
“Using SSL” (page 44)
).
•
Issue stand-alone CLI commands from a shell prompt in Solaris or Linux, or from a Windows
command prompt (
“Stand-alone Commands” (page 52)
).
•
Use SSH to encrypt all traffic between the client and server, including passwords (
“SSH”
(page 52)
).
Global Options and Environment Variables
Global options are provided to help configure the CLI and control the operation of the system.
Environment variables are provided to customize the CLI. The global CLI options and environment
variables are listed in
“Global CLI Options and Environment Variables” (page 42)
.
•
You can use the global options with the CLI program and individual CLI commands.
•
When used with the CLI program, global options remain in effect until you exit the Tcl shell
(for information about the Tcl shell, see
“Stand-alone Commands” (page 52)
). The following
example shows the
–sys
option used with the CLI program for a system named
betasystem1
:
$ cli –sys betasystem1
•
When used with individual commands, global options are in effect only for that command.
The following example shows the
–pwf
option used with the
showsysmgr
CLI command:
$ showsysmgr –pwf ~/my–pwfile
•
Global options, when used, override environment variables.
NOTE:
Global options cannot be specified on the command line for commands issued from a
Tcl shell. Global options must be specified before starting a Tcl shell.
You can use environment variables when configuring the CLI.
Global Options and Environment Variables
41