Menu

#9 Another Bug in generate.cgi apan-0.2.1.

open
nobody
None
5
2003-09-16
2003-09-16
Anonymous
No

Line 38 of generate.cgi apan-0.2.1.
OLD: CONF=`grep "${HOST};${CHECK}" $CFGFILE`

Problem:
If the service ($CHECK) is something like "router-fa1/1"
and service exists such as "router-fa1/10" generate.cgi
may pick the wrong entry (ie pick router-fa1/10 when
greping for router-fa1/1) depending on where it is in the
apan.cfg file and will not generate images.

FIX:
NEW LINE:
CONF=`grep "${HOST};${CHECK};" $CFGFILE`
^^notice the ;

email:bps9555 at garnet.acns.fsu.edu

Discussion


Log in to post a comment.

MongoDB Logo MongoDB