Avaya Writing Technician Interface Scripts Manuale Utente Pagina 54

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 116
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 53
Writing Technician Interface Scripts
2-24
308660-14.00 Rev 00
<value_variable_array>
is the name of an environmental array variable that stores
the values retrieved. The values are in the same order as listed in the attribute
array
<attribute_variable_array>
. Do not type $ before this variable name, since
the input is passed by reference, not by value.
<next_instance_variable>
is the name of the variable that stores the instance ID of
the record currently read. If the routine reaches the end of the table, it sets this
variable to the string “END.” In this case, the
mi/jointfilesconvert/95481/bget command has not read any
record information. Do not type
$ before this variable name, since the input is
passed by reference, not by value.
Examples
The following example searches through the IP routing table to retrieve a series of
attributes and prints the result on the Technician Interface console. The object
from which to retrieve information is wfIpForwardEntry. The script uses the
arrayenv command to create the attribute array variable attr that lists the
attributes from which to retrieve values. Then it uses the
enumenv command to
establish meaningful names for the indices for
attr.
The script reads the first record with the
nextflag turned off.
In the loop (:IP_RT_LOOP:),
nextid is the
<instance_id>
option. value is the
name of the value array where the script places the values it retrieves.
nextflag is
set to
-n to read through the records. The script prints the values as it retrieves
them and loops again until it has retrieved the desired attributes from the entire set
of records.
The following examples show how to retrieve attribute values from the IP routing
table using the
mi/jointfilesconvert/95481/bget command. The comments (#) explain what is happening in
the script.
# Purpose: Retrieve attribute values from the IP routing table.
# Retrieve values from the following attributes:
arrayenv attr fIpForwardProto wfIpForwardDest \
wfIpForwardNextHop wfIpForwardAge \
wfIpForwardMask wfIpForwardMetric1 \
wfIpForwardNextHopAS
# Indices for attributes in value array where values are placed:
enumenv 1 proto dest next age mask metric as
# Read the first record with nextflag turned off.
setenv nextflag “”
# First instance ID to read, wildcard.
setenv nextid “*”
Vedere la pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 115 116

Commenti su questo manuale

Nessun commento