Hi Wes,
On Tue, Feb 01, 2005 at 06:39:20AM -0800, Wes Hardaker wrote:
> You shouldn't force this in general. You should actually never load
> RFC1213-MIB by hand as it's all included in various other mibs and is
> obsolete in the first place...
I would ditch that old mib all together, but I still need to get access to
the at.atTable (ARP Cache) for older networking devices. However, I notice
that when I don't load RFC1213-MIB the atTable is found off of mib-2. I'm
not quite sure how this feat of magic is produced since atTable only exists
in RFC1213-MIB but is never IMPORTed. Can I get away without loading
RFC1213 and Net-SNMP takes care of the rest? Will this work for earlier
versions (still supporting back to 5.0)?
$ snmptranslate -Onf -IR atPhysAddress
.iso.org.dod.internet.mgmt.mib-2.at.atTable.atEntry.atPhysAddress
> Max> # Changing this order makes no difference.
> Max> &SNMP::loadModules("IF-MIB");
> Max> &SNMP::loadModules("RFC1213-MIB");
>
> Don't do the second one at all.
>
> Better yet you probably don't need to do either. For net-snmp 5.2
> just call SNMP::init_snmp("yourappname") instead of both of those
> lines. It should do what you want.
I guess I should explain what I'm doing and why here. SNMP::Info connects
to a network device (router,switch,...) and then depending on the vendor
will load up the MIBs needed for that device. It works exclusively on the
textual OIDs (ifOperStatus) and the enumerated results ('up').
I'm not sure I can use a config file for the application and the
SNMP::init_snmp() method, because the configuration including SNMP Version
and mibs changes for each instantiation of my module.
Thanks for the feedback,
-m
> -users technically, but its on the border line so we won't yell ;-)
I was still subscribed from the perl regex thing and was being lazy. The
next one will be in the right place. :D
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders