
Sample Scripts
308660-14.00 Rev 00
A-5
################################################################
#
# Parse for “show” command...
#
################################################################
:FI_SHOW:
if $# = 1 then ; goto :FI_HELP_SHOW:
setenv cmd “$2”
let len = strlen(cmd)
if $len < 3 then ; goto :FI_HELP_SHOW:
let i = strindex(“base”, cmd)
if $i = 1 then ; goto :FI_BASE:
let i = strindex(“alerts”, cmd)
if $i = 1 then ; goto :FI_ALERTS:
let i = strindex(“disabled”, cmd)
if $i = 1 then ; goto :FI_DSBLED:
let i = strindex(“enabled”, cmd)
if $i = 1 then ; goto :FI_ENBLED:
let i = strindex(“stats”, cmd)
if $i = 1 then ; goto :FI_STATS:
let i = strindex(“receive”, cmd)
if $i = 1 then ; goto :FI_RCV:
let i = strindex(“transmit”, cmd)
if $i = 1 then ; goto :FI_XMIT:
let i = strindex(“system”, cmd)
if $i = 1 then ; goto :FI_SYSTEM:
let i = strindex(“smt”, cmd)
if $i = 1 then ; goto :FI_SMT:
let i = strindex(“mac”, cmd)
if $i = 1 then ; goto :FI_MAC:
let i = strindex(“port”, cmd)
if $i = 1 then ; goto :FI_PORT:
let i = strindex(“sample”, cmd)
if $i = 1 then ; goto :FI_SAMP:
let i = strindex(“hwfilters”, cmd)
if $i = 1 then ; goto :FI_HWF:
let i = strindex(“version”, cmd)
if $i = 1 then ; goto :FI_VER:
Commenti su questo manuale