2009/1/21 Adrian Overbury <[email protected]>:
>                                                If I've got a MIB
> file that covers my whole sub-tree, is there a way I can parse that in,
> say, python or perl, and get some kind of data structure from which I
> can follow a link to the next OID in the tree?

You *could* parse the MIB files yourself, but I'm not sure this is sensible.
The usual way to implement pass-style subagents would be to write
a dedicated script for a given table.
   So the information about the column OIDs, and indexing for the table
would effectively be hardcoded into the script.

It sounds as if you're looking to try and develop a general-purpose
subagent script.  That's probably more trouble than it's worth.
After all - you've still got to handle retrieving the appropriate data
from the underlying subsystems - which is inherently table specific.

I wouldn't bother trying to parse the MIB structure dynamically
within the pass script.   Hardcode the table/column OIDs in the
script, and concentrate on processing the instance subid.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to