I'm trying to write a module for net-snmp, for our system. A typical system
will have between two and 16 cards in it, with about 15 parameters per card.
I got mib2c to generate a template file for me, and am starting to customize it
for our requirements. However, I have at least three immediate problems:
1. The init function generated netsnmp_register_scalar() calls for the first
dozen fields in my mib, but stopped at the
DevTblEntry which defines all my actual cards in the system. Do I have to
call something else to register those structs??
2. in the init function, how do I tell it about multiple devices??
3. When my individual handler is called, how do I know which device the request
is for??
And my underlying question is:
Am I supposed to be able to figure out the answers to these questions by
looking at the tutorials at net-snmp.org??
I'm completely lost in the data there. Even the "Writing a MIB Module"
tutorial doesn't discuss any of these issues, as far as I can see; it assumes
that the writer has static data which is defined in the snmp module, which will
*never* be the case, at least in our situation. I could use a tutorial on
using the net-snmp tutorials!!
Can anyone help me here?? I would be immensely grateful!!
Dan Miller-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders