On Tuesday, June 22, 2010 05:29:23 pm Wes Hardaker wrote:
> >>>>> On Tue, 22 Jun 2010 11:47:25 +0300, makkalot <[email protected]>
said:
>> Hi i'm trying to extend the agent with shared library technique
>> (dlmod). I looked at the examples that are on wiki and understood
>> them (init methods and etc). Now i need to do more advanced stuff
>> like handling the incoming requests and acting according to them. Is
>> there some documentation that explains these more advanced topics ,
>> not just setting and getting integers ? Thanks for your help in
>> advance ...
>
> The tutorials cover a number of topics, including tables. Look into the
> "writing a mib module" tutorial and using mib2c for generating code
> templates for various types of code.
Thanks for your answer and i already read all of the tutorials on wiki. It is
my fault i didnt supply the details i need in my previous question. I have new
ones :
- Should i use mib2c ?is that the easiest way to go when creating new
modules ?
- How can i know which configuration(template) to use when using mib2c
,
is it documented somewhere ?
- I'm looking at agent/mibgroup/examples/netSnmpHostsTable.c and there
are a few things i dont undesrtand. I see cases like those :
case MODE_GET:
case MODE_SET_RESERVE1:
case MODE_SET_RESERVE2:
case MODE_SET_ACTION:
case MODE_SET_COMMIT:
case MODE_SET_UNDO:
case MODE_SET_FREE:
What should be done on each of them, is it documented somewhere i
couldnt
find?
- Also the documentation mentions that every request that comes/goes
enters into chain processing , what are the steps of that chain ? And how can
i inject my code into it ? (or is it the same of what handlers do ? )
Thanks in advance for your answers ...
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders