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

Stand-alone Commands, SSH, Benefits of Using SSH

Page 52 highlights

Stand-alone Commands There are two ways to issue CLI commands from a shell prompt in Solaris and Linux, or from a Windows command prompt: • CLI commands can be executed like typical UNIX and MS-DOS commands. ◦ If the CLI commands are run as individual commands, you are prompted for your user name and password for each command. This can be avoided by setting your system to read your user name and password from a file. See "Setting Your Name and Password" (page 46) for more information. ◦ If you are running the CLI commands as individual commands, you can put each command in a script or pipe them to other commands. You can use the shell of your choice for scripting or for initiating interactive sessions that provide history and line editing capabilities. • Enter cli at the DOS or Solaris or Linux prompt to run the cli program. Running this progrm places you into an interactive Tcl shell where all CLI commands are available. ◦ The Tcl shell connects to the system and remains connected until you exit from the shell. While the Tcl shell is connected, you are not prompted for your user name and password for each command you issue. ◦ The Tcl shell provides access to the Tcl language that allows you to write Tcl procedures or source Tcl scripts that build on top of CLI commands. NOTE: Help is available to display information about CLI commands. If you started the CLI with the cli command, you can obtain help by typing either help or clihelp. When you run individual CLI commands from a system's native shell, use clihelp. For details about HP 3PAR CLI commands, see also the HP 3PAR Command Line Interface Reference. SSH The system is provided with Secure Shell (SSH) protocol version 2 that enables great flexibility in accessing the HP 3PAR CLI and provides an alternative to installing the remote CLI client. SSH uses public-private key encryption algorithms to encrypt all traffic between the client and server, including passwords. SSH client applications are typically provided with the following operating systems: • AIX • HP-UX • Linux • Oracle® Solaris™ For Microsoft® Windows® users, an SSH client is available at http://www.openssh.org. Benefits of Using SSH SSH provides the following benefits: • No HP 3PAR CLI installation. CLI clients are not required to access and use the CLI (assuming SSH client is installed). • No version matching. The HP 3PAR CLI and HP 3PAR OS versions do not need to match because the CLI does not need to be installed remotely. • Strong encryption. All information exchanged between client machines and systems are encrypted. 52 Running the HP 3PAR Command Line Interface

  • 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

Stand-alone Commands
There are two ways to issue CLI commands from a shell prompt in Solaris and Linux, or from a
Windows command prompt:
CLI commands can be executed like typical UNIX and MS-DOS commands.
If the CLI commands are run as individual commands, you are prompted for your user
name and password for each command. This can be avoided by setting your system to
read your user name and password from a file. See
“Setting Your Name and Password”
(page 46)
for more information.
If you are running the CLI commands as individual commands, you can put each command
in a script or pipe them to other commands. You can use the shell of your choice for
scripting or for initiating interactive sessions that provide history and line editing
capabilities.
Enter
cli
at the DOS or Solaris or Linux prompt to run the
cli
program. Running this progrm
places you into an interactive Tcl shell where all CLI commands are available.
The Tcl shell connects to the system and remains connected until you exit from the shell.
While the Tcl shell is connected, you are not prompted for your user name and password
for each command you issue.
The Tcl shell provides access to the Tcl language that allows you to write Tcl procedures
or source Tcl scripts that build on top of CLI commands.
NOTE:
Help is available to display information about CLI commands. If you started the CLI with
the
cli
command, you can obtain help by typing either
help
or
clihelp
. When you run
individual CLI commands from a system's native shell, use
clihelp
.
For details about HP 3PAR CLI commands, see also the
HP 3PAR Command Line Interface Reference
.
SSH
The system is provided with Secure Shell (SSH) protocol version 2 that enables great flexibility in
accessing the HP 3PAR CLI and provides an alternative to installing the remote CLI client. SSH uses
public-private key encryption algorithms to encrypt all traffic between the client and server, including
passwords.
SSH client applications are typically provided with the following operating systems:
AIX
HP–UX
Linux
Oracle® Solaris™
For Microsoft® Windows® users, an SSH client is available at
h
t
tp://w
w
w
.ope
ns
sh
.o
r
g
.
Benefits of Using SSH
SSH provides the following benefits:
No HP 3PAR CLI installation. CLI clients are not required to access and use the CLI (assuming
SSH client is installed).
No version matching. The HP 3PAR CLI and HP 3PAR OS versions do not need to match
because the CLI does not need to be installed remotely.
Strong encryption. All information exchanged between client machines and systems are
encrypted.
52
Running the HP 3PAR Command Line Interface