
Writing Technician Interface Scripts
2-16 114089 Rev. A
The following example is an excerpt from a script file showing how to use the
instenv command.
instenv ip_ wfIpInterfaceEntry
echo “Size of array :{ip_[0]}”
let i = 1
:LOOP:
if $i > ${ip_[0]} then; goto :DONE:
setenv ipstate wfIpInterfaceEntry.wfIpInterfaceState.${ip_[$i]}
setenv ipaddr wfIpInterfaceEntry.wfIpInterfaceAddr.${ip_[$i]}
echo “$i: IP Address: $($ipaddr) State: $($ipstate)”
let i = $i + 1
goto :LOOP:
:DONE:
Kommentare zu diesen Handbüchern