
Creating a Script File
114089 Rev. A 1-9
If you access the Technician Interface via Telnet, the Technician Interface also
displays the variables in the system environment variable table. Variables in this
table are read-only from the Technician Interface. If your Telnet client supports
the environment variable option, you can use Telnet to send your UNIX
environment variables to the Technician Interface’s system list. See your Telnet
client documentation for instructions.
Setting Variables
The Technician Interface provides several ways to set variables, depending on
what you want to accomplish in your script. This section lists the ways you can set
variables. For details on each of the following commands, see Chapter 2.
• To assign an ASCII string or numeric value to a variable in the local
environment variable table, use the
setenv command.
When you assign a value to a variable, you do not type the
$ before the
variable. If the value contains spaces or tabs, place double quotes (“”) around
the value string. In the following command, you assign the value
Statistics
Menu to the variable a.
setenv a “Statistics Menu”
• To define a pseudo-variable array that contains the list of MIB instance IDs
for a given MIB object name, use the
instenv command.
The
instenv command builds a pseudo-variable array by appending an index
number to the variable name specified on the command line. Each member of
the pseudo-variable array contains a single instance ID. The size of the
pseudo-array is stored at index 0.
• To select parts of a text string and write them to a pseudo-variable array, use
the
cutenv command.
Note: If two variables, one in the system table and one in the local or global
table, have the same name, the one in the local or global table is used.
Note: We recommend that you use the mi/jointfilesconvert/91351/bget command instead of the
instenv command. The mi/jointfilesconvert/91351/bget command accesses MIB tables approximately
50% faster than the
instenv command.
Comentários a estes Manuais