
117382-A Rev. A
1-1
Chapter 1
Creating a Script File
The Technician Interface script facility allows you to read and execute Technician
Interface commands from a script file. You create and edit script files on a remote
workstation and transfer the files to the router via TFTP or XMODEM. For
instructions on using TFTP or XMODEM, see
Using Technician Interface
Software
.
We provide several script programs that let you manage the router using
information stored in the management information base (MIB). You can use the
scripts to display information about protocols and network services and to enable
and disable protocols, circuits, lines, and services. You may also choose to write
your own scripts, using this manual as a guide. Technician Interface scripts are
very similar to UNIX shell scripts.
This chapter describes how to perform the following tasks, using the Technician
Interface script commands:
• Prompting the user for input, using the special variable
$
<prompt>
• Referencing and using MIB information, using the special variable
$
<object.attribute.instance>
, the
mi/jointfilesconvert/97390/bget
and
instenv
commands, and
formatting MIB entries using the
octetfmt
command
• Creating, using, and deleting variables, using the
arrayenv
,
cutenv
,
enumenv
,
getenv
,
instenv,
let
,
setenv
,
sprintf
, and
unsetenv
commands
• Changing a local variable into a global variable, using the
export
command
• Evaluating an arithmetic or logical expression, using the
let
command
• Parsing a text string, using the
cutenv
command
• Controlling the execution of the script, using the
if
,
goto
,
pause
,
gosub
, and
return
commands
Comentários a estes Manuais