
Writing Technician Interface Scripts
A-6 117382-A Rev. A
let i = strindex(“hwfilters”, cmd)
if $i = 1 then ; goto :FI_HWF:
let i = strindex(“version”, cmd)
if $i = 1 then ; goto :FI_VER:
:FI_HELP_SHOW:
echo “FDDI Show Command Help”
echo “----------------------”
echo
echo “show fddi <option>”
echo “ Where option is one of the following:”
echo “ ?”
echo “ alerts”
echo “ base [circuit <circuit name>]”
echo “ disabled”
echo “ enabled”
echo “ hwfilters”
echo “ mac [circuit <circuit name>]”
echo “ port”
echo “ receive errors [circuit <circuit name>]”
echo “ sample [<period in seconds>] [circuit <circuit name>]”
echo “ smt [circuit <circuit name>]”
echo “ stats [circuit <circuit name>]”
echo “ system errors [circuit <circuit name>]”
echo “ transmit errors [circuit <circuit name>]”
echo “ version”
goto :FI_END:
################################################################
#
# Base or Module screen...
#
################################################################
:FI_BASE:
#
# check for circuit name to match on...
#
if $# = 2 then ; goto :FI_BASE_NM:
setenv cmd “$3”
let len = strlen(cmd)
if $len < 3 then ; goto :FI_HELP_SHOW:
let j = strindex(“circuit”, cmd)
if $j != 1 then ; goto :FI_HELP_SHOW:
if $# != 4 then ; goto :FI_HELP_SHOW:
setenv matchcct “$4”
Commenti su questo manuale