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

CLI Scripting Through SSH, Creating Users

Page 54 highlights

1. From any host that is running SSH client, enter the following example: $ ssh user@ In the previous example, ssh user is the first default user with Super rights and is the array host name. 2. If this is the first login from the client host (for example, when the host does not already have a system public key for identity), expect the following message: The authenticity of host can't be established. RSA key fingerprint is 68:a6:c9:60:a1:cb:.... Are you sure you want to continue connecting (yes/no): yes When prompted to continue, enter yes. This is normal SSH behavior, because the client host does not have the system's public key. If the system's public key has previously been stored on the client host, this message will not be displayed. After you have set the key, this message will not be displayed. NOTE: The validity of the key fingerprint presented at this point can be verified by using the public keys provided as part of the HP 3PAR Administration Tools. These keys can be installed with the administration tools or can be obtained directly from the HP 3PAR Administration Tools CD. Consult the SSH client documentation for instructions on creating a key fingerprint from the public key. 3. When prompted, enter the default password. If you do not have the password, contact your service provider. 4. After you enter the password, the CLI prompt appears. cli % In the previous example, System-host-name is the system's cluster name or host name. You are now in the CLI shell and can issue the CLI commands that are documented in this manual. 5. If you need to create additional CLI users, use the createuser command. For more information, see "Creating Users" (page 18). 6. Terminate the CLI session by typing exit at the prompt. cli % exit Newly created CLI users can access the CLI by following these instructions, while substituting their own user name, system name, and password when prompted. CLI Scripting Through SSH You can use SSH public key authentication to issue CLI commands in scripts. No password is required; however, you will need to generate a public/private key pair. 54 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

1.
From any host that is running SSH client, enter the following example:
$ ssh user@<System
host
name>
In the previous example,
ssh user
is the first default user with Super rights and
<System
host
name>
is the array host name.
2.
If this is the first login from the client host (for example, when the host does not already have
a system public key for identity), expect the following message:
The authenticity of host <System
host
name> can
t be established.
RSA key fingerprint is 68:a6:c9:60:a1:cb:
.
Are you sure you want to continue connecting (yes/no): yes
When prompted to continue, enter
yes
.
This is normal SSH behavior, because the client host does not have the system’s public key.
If the system’s public key has previously been stored on the client host, this message will not
be displayed. After you have set the key, this message will not be displayed.
NOTE:
The validity of the key fingerprint presented at this point can be verified by using the
public keys provided as part of the HP 3PAR Administration Tools. These keys can be installed
with the administration tools or can be obtained directly from the HP 3PAR Administration
Tools CD. Consult the SSH client documentation for instructions on creating a key fingerprint
from the public key.
3.
When prompted, enter the default password. If you do not have the password, contact your
service provider.
4.
After you enter the password, the CLI prompt appears.
<System
host
name> cli %
In the previous example,
System
host
name
is the system’s cluster name or host name.
You are now in the CLI shell and can issue the CLI commands that are documented in this
manual.
5.
If you need to create additional CLI users, use the
createuser
command. For more
information, see
“Creating Users” (page 18)
.
6.
Terminate the CLI session by typing
exit
at the prompt.
<System
host
name> cli % exit
Newly created CLI users can access the CLI by following these instructions, while substituting
their own user name, system name, and password when prompted.
CLI Scripting Through SSH
You can use SSH public key authentication to issue CLI commands in scripts. No password is
required; however, you will need to generate a public/private key pair.
54
Running the HP 3PAR Command Line Interface