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

Setting the TPDSYSNAME Environment Variable, Using the -sys Option, Using the System Name

Page 45 highlights

Setting the TPDSYSNAME Environment Variable By setting the system name, you are not prompted for your system name, user name, and password when running the CLI, which can be useful for scripting. You can specify the system name in the following three ways: • Set the TPDSYSNAME environment variable. • Use the -sys command line global option. • Enter the system name when prompted. Setting the TPDSYSNAME Environment Variable on Solaris and Linux To set the environment variable on Solaris or Linux, see the following system output example. Substitute your system name for and use the correct syntax for your shell. $ TPDSYSNAME= $ export TPDSYSNAME $ cli Setting the TPDSYSNAME Environment Variable on Windows • To set the environment variable in Microsoft Windows for one instance of a Command Prompt window, run set TPDSYSNAME=. Substitute with the name of your system. The environment variable remains in effect for that window until you exit that window. • To set the environment variable in Windows indefinitely and for all newly created Command Prompt 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). 2. In the Environment Variable dialog box, enter TPDSYSNAME in the Variable box. 3. Enter your system name in the Value box. 4. Click OK. Using the -sys Option The global option -sys (system) overrides any setting of the environment variable TPDSYSNAME. On the command line, enter -sys after the command name, followed by your system name. See the following output example. Substitute your system name for . $ showhost -sys Using the System Name The system prompts for the system name if the environment variable TPDSYSNAME is not set and the -sys option is not used. To use the system name, see the following output example. Substitute your system name for . $ cli system: Global Options and Environment Variables 45

  • 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

Setting the TPDSYSNAME Environment Variable
By setting the system name, you are not prompted for your system name, user name, and password
when running the CLI, which can be useful for scripting.
You can specify the system name in the following three ways:
Set the TPDSYSNAME environment variable.
Use the
sys
command line global option.
Enter the system name when prompted.
Setting the TPDSYSNAME Environment Variable on Solaris and Linux
To set the environment variable on Solaris or Linux, see the following system output example.
Substitute your system name for
<sysname>
and use the correct syntax for your shell.
$ TPDSYSNAME=<sysname>
$ export TPDSYSNAME
$ cli
Setting the TPDSYSNAME Environment Variable on Windows
To set the environment variable in Microsoft Windows for one instance of a
Command Prompt
window, run
set TPDSYSNAME=<sysname>
. Substitute
<sysname>
with the name of your
system. The environment variable remains in effect for that window until you exit that window.
To set the environment variable in Windows indefinitely and for all newly created
Command
Prompt
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)
.
2.
In the
Environment Variable
dialog box, enter
TPDSYSNAME
in the
Variable
box.
3.
Enter your system name in the
Value
box.
4.
Click
OK
.
Using the -sys Option
The global option
sys
(system) overrides any setting of the environment variable TPDSYSNAME.
On the command line, enter
sys
after the command name, followed by your system name. See
the following output example. Substitute your system name for
<system1>
.
$ showhost
sys <system1>
Using the System Name
The system prompts for the system name if the environment variable TPDSYSNAME is not set and
the
sys
option is not used. To use the system name, see the following output example. Substitute
your system name for
<system1>
.
$ cli
system: <system1>
Global Options and Environment Variables
45