HP 3PAR StoreServ 7400 2-node HP 3PAR Command Line Interface Administrator& - Page 41

Running the HP 3PAR Command Line Interface, Global Options and Environment Variables

Page 41 highlights

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

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