2008/7/1 Paul <[EMAIL PROTECTED]>:
> question 1:
> I add this sample code into my existed module and built it as a dynamic
> module (.so file). Does this code also work fine in a dynamic module?

It should do, yes.
There is no difference in operation between a dynamic and a
static MIB module.   Once they are loaded into the agent, they
work in exactly the same way.


> question 2:
> How can I set the receivers' ip and community in snmpd.conf?

man snmpd.conf

Look for mention of "trapsink" etc.

> question 3:
> In this example, it just send V2 trap via send_v2trap. How can I send
> traps(notifications) of other versions. different API?

Please see the FAQ entry
    How can I get the agent to send an SNMPv1 (or SNMPv2c) trap?
        http://www.net-snmp.org/wiki/index.php/FAQ:Coding_16

and the entries that follow.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to