[cricket-users] Defaults file problem

From: Timothy Kennedy (sugarat@thunderhold.sugarat.net)
Date: Wed May 19 1999 - 18:13:41 PDT


From: Timothy Kennedy <sugarat@thunderhold.sugarat.net>

Ok folks. Here's one for you.
It relates to being able to add new entries under the
Target --default-- line in the Defaults file under
the router-interfaces subtree.

I notice that inst is mapped via map(interface-name).
Which I am assuming, after reading the icky and ickiest details
is gotten from the "interfaces" file.

My interface file has two extra lines for all the frame-relay interfaces.
(which I already changed to show up as "target-type = frame-relay")
These are
frame-host = Serial0 (or whatever is the frame host interface)
frame-inst = 34 (or whatever the proper inst is)

in the top level cricket-config/Defaults file I added

map frame-host
    base-oid = ifDescr
    match = %frame-host%

since I need to get the instance for the host interface, then append the
sub-instance to that to be able to grab interface stats for the
frame-relay hosts. (turns out I haven't been getting data recently) :)

The problem is that those maps aren't mapped properly. Right now I am
getting errors like:

[19-May-1999 20:51:10*] Could not resolve OID for
..1.3.6.1.2.1.10.32.2.1.9.map(interface-name).map(frame-inst)
Use of uninitialized value at /usr/local/cricket/cricket/./lib/common.pm
line 462.
[19-May-1999 20:51:10*] Could not find an OID in
srvr-status@gw1.nyw.ny.rcn.net:161/frInOctets.map(interface-name).map(frame-inst)
Use of uninitialized value at /usr/local/cricket/cricket/collector line
283.

and with debug turned on i get
        frame-host = Serial0
        frame-inst = 18
        frhost = map(interface-name)
        frinst = map(frame-inst)
        inst = 6
        interface-name = Serial0.18

in the Defaults file I have:

Target --default--
        rrd-datafile = %dataDir%/%router%.%auto-target-name%.rrd
        inst = map(interface-name)
        frhost = map(interface-name)
        frinst = map(frame-inst)

And that's where it doesn't work. I can see that "inst" mapping is
working using "inst = map(interface-name)", but why isn't
"frhost = map(interface-name)" giving me the same information?

(that's not the way it'll be, I just used the map(interface-name) to
compare it to teh way inst is mapping)

Any ideas?

Thanks,

Tim

Tim Kennedy
sugarat@thunderhold.sugarat.net

Disclaimer: since this came from this me, not that ---> me,
it is persona mail, and in no way reflects any opinions or
policies of my employer, whom I won't mention here, just to
keep things clear of them. (new email policy at work)
Usual stuff about confidentiality and whatnot... intended
receivers, blah, blah, etc., etc.

------------------------------------------------------------------------
ONElist: where the world talks!
http://www.onelist.com
Join a new list today.



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:49 PST