Hi Dave, Thank you very much. Now my trap receiver actuall receives the trap. But why can't I capture the outgoing trap packets via Ethereal(wireshark) on my host? Its's so amazing!
Thanks, ----- Original Message ----- From: "Dave Shield" <[EMAIL PROTECTED]> To: "Paul" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Tuesday, July 01, 2008 7:57 PM Subject: Re: about send trap > 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 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
