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

Using the -password Option, Setting a Password for Multiple HP 3PAR Storage Arrays

Page 47 highlights

Use of the -pwf option overrides the use of the TPDPWFILE environment variable. CAUTION: The file containing the user's encrypted password must be protected from unwanted access. Using the -password Option You can also specify an encrypted password using the -password global option. Use of this option overrides the use of the -pwf global option. CAUTION: The file containing the user's encrypted password must be protected from unwanted access. Setting a Password for Multiple HP 3PAR Storage Arrays Use the createuser command to set the password. The following example displays the successful creation of a new user user1 with the clear-text password 123456, with access to all service pools, and with edit level authority: $ createuser -c 123456 user1 testdomain edit User created Next, use the setpassword -saveonly command to set the encrypted password on the client. The following example shows how to set the user's (user1) password on the client: $ setpassword -saveonly -file user1 Finally, use the createuser -e command to enter the encrypted password. $ createuser -e user1 testdomain edit User created Caching Client Bytecode Client bytecode contains the majority of functionality of the HP 3PAR CLI and is version specific. The CLI caches the code required for communication for each different version of the HP 3PAR OS running on the system. The TPDCACHEDIR environment variable controls the location of the cache directory used by the CLI to determine the version of the HP 3PAR OS running on the system. The TPDCACHEDIR environment variable is set differently in Solaris and Linux, and Windows. Setting the TPDCACHEDIR Environment Variable on Solaris and Linux To set the TPDCACHEDIR environment variable in Solaris and Linux, see the following system output example. Substitute the name of your cache directory for cache1 and use the correct syntax for your shell. $ TPDCACHEDIR=cache1 $ export TPDCACHEDIR $ cli Setting the TPDCACHEDIR Environment Variable on Windows To set the TPDCAHCEDIR environment variable in Windows: 1. Perform Step 1 through Step 4 of the procedure for setting the TPDSOCKSSL environment variable in Windows as described in "Using SSL" (page 44). Global Options and Environment Variables 47

  • 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

Use of the
pwf
option overrides the use of the TPDPWFILE environment variable.
CAUTION:
The file containing the user's encrypted password must be protected from unwanted
access.
Using the -password Option
You can also specify an encrypted password using the
-password <encrypted_password>
global option. Use of this option overrides the use of the
-pwf
global option.
CAUTION:
The file containing the user's encrypted password must be protected from unwanted
access.
Setting a Password for Multiple HP 3PAR Storage Arrays
Use the
createuser
command to set the password. The following example displays the successful
creation of a new user
user1
with the clear-text password
123456
, with access to all service
pools, and with edit level authority:
$ createuser
c 123456 user1 testdomain edit
User created
Next, use the
setpassword -saveonly
command to set the encrypted password on the client.
The following example shows how to set the user’s (
user1
) password on the client:
$ setpassword
saveonly
file <insertfile> user1
Finally, use the
createuser -e
command to enter the encrypted password.
$ createuser
e user1 testdomain edit
User created
Caching Client Bytecode
Client bytecode contains the majority of functionality of the HP 3PAR CLI and is version specific.
The CLI caches the code required for communication for each different version of the HP 3PAR OS
running on the system. The TPDCACHEDIR environment variable controls the location of the cache
directory used by the CLI to determine the version of the HP 3PAR OS running on the system.
The TPDCACHEDIR environment variable is set differently in Solaris and Linux, and Windows.
Setting the TPDCACHEDIR Environment Variable on Solaris and Linux
To set the TPDCACHEDIR environment variable in Solaris and Linux, see the following system output
example. Substitute the name of your cache directory for
cache1
and use the correct syntax for
your shell.
$ TPDCACHEDIR=cache1
$ export TPDCACHEDIR
$ cli
Setting the TPDCACHEDIR Environment Variable on Windows
To set the TPDCAHCEDIR environment variable in Windows:
1.
Perform
Step 1
through
Step 4
of the procedure for setting the TPDSOCKSSL environment
variable in Windows as described in
“Using SSL” (page 44)
.
Global Options and Environment Variables
47