
Writing Technician Interface Scripts
1-6 117382-A Rev. A
In the following script, if the user does not press Return before the time specified
for SYS_IO_TIMEOUT has elapsed,
nothing entered appears on the user’s
console:
let SYS_IO_TIMEOUT = 10
setenv ans “$<Enter your name: >”
echo “Your name is $ans”
if “$ans” = “” then; \
echo “nothing entered”
To change the timeout back to an indefinite waiting period, use the following
command:
unsetenv SYS_IO_TIMEOUT
For more information about using the commands in the preceding examples, see
Chapter 2.
Accessing MIB Information
The Technician Interface script facility allows you to assign the value of a MIB
attribute to a variable. Using the syntax
$
<object.attribute.instance>
, you can refer
to the following types of MIB variables:
• Counter variables, which keep track of how many times an event occurs.
• Display string variables, which specify a piece of information stored in ASCII
characters, and which the system can display for the user to read. The string
must be shorter than 255 characters.
• Gauge variables, which keep track of values that fluctuate.
• Integer variables, which specify information in the form of a simple integer.
Commentaires sur ces manuels