I assume the purist's way would be to register
table_iterator and scalar_group handlers...then I
don't have to worry about the 'figuring out' of what
the next OID is, right?

The main reason for the "odd way" is due to the fact
that I am trying to implement this for both net-snmp
and the microsoft snmp.exe with as much reusable code
as possible.  (can't really use the handlers in
snmp.exe)

The other reason for the 'odd way' is that I want to
use the MIB tree labels as a way to map SNMP to JMX
dynamically to avoid yet another configuration file
for SNMP -> JMX mapping.  This way changes to the MIB
file directly affect what can be monitored.

...anyway, I know this is probably a dumb question
given what the intention of the oid_stash is...but
here goes anyway:  is there a way to load a mib all at
once into a stash already written?

i.e.:
  struct tree *tp;
  netsnmp_oid_stash_node* root_stash_node;
  ...
  load_stash(root_stash_node, tp);





--- Wes Hardaker <[EMAIL PROTECTED]>
wrote:

> >>>>> "EE" == Erik Earle <[EMAIL PROTECTED]>
> writes:
> 
> EE> I've got pretty much everything worked out
> except for
> EE> when the request is a 'getnext'.
> 
> EE> Is there an easy way (that I am missing) to ask
> the
> EE> mib_api for the next OID?
> 
> The agent itself requires that module
> implementations be required to
> implement GETNEXT processing.  Most modern net-snmp
> modules, however,
> make use of helper classes that try and auto-figure
> out some of these
> for you.  You didn't state which one you're using...
> 
> EE> If not, should/could I use an oid_stash to
> create an
> EE> in memory mapping that I can load from my
> enterprise
> EE> MIB and interrogate for getnext requests? 
> 
> That is a potential solution as well...
> 
> Note: it's hard to tell exactly what you're doing
> but the wording
> makes me wondering if you're structuring things in
> an "odd way" from
> an SNMP purist perspective.
> -- 
> Wes Hardaker
> Sparta, Inc.
> 



      
____________________________________________________________________________________Shape
 Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to