>>>>> On Thu, 3 Feb 2005 13:18:26 -0500, Max Baker <[EMAIL PROTECTED]> said:

Max> I would ditch that old mib all together, but I still need to get
Max> access to the at.atTable (ARP Cache) for older networking
Max> devices.  However, I notice that when I don't load RFC1213-MIB
Max> the atTable is found off of mib-2.  I'm not quite sure how this
Max> feat of magic is produced since atTable only exists in
Max> RFC1213-MIB but is never IMPORTed.  Can I get away without
Max> loading RFC1213 and Net-SNMP takes care of the rest?  Will this
Max> work for earlier versions (still supporting back to 5.0)?

We do some internal magic to try and make sure all the older tables in
the older mib2 tree are still loaded even if the newer mibs support
most of the rest of the tree.  It's best not to handle it yourself,
and let our magic take care of it (and write a thank you note to Niels
who I think originally implemented it if I remember correctly).

Max> I guess I should explain what I'm doing and why here.  SNMP::Info
Max> connects to a network device (router,switch,...) and then
Max> depending on the vendor will load up the MIBs needed for that
Max> device.  It works exclusively on the textual OIDs (ifOperStatus)
Max> and the enumerated results ('up').

Max> I'm not sure I can use a config file for the application and the
Max> SNMP::init_snmp() method, because the configuration including
Max> SNMP Version and mibs changes for each instantiation of my
Max> module.

Go ahead and all the function to load additional mibs if you want, but
don't try to load the default set by hand.

-- 
Wes Hardaker
Sparta


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to