On Mon, 2010-01-25 at 13:48 -0800, nathan wrote:
> Hi,
> I'm wondering if are there any examples to show me how to implement
> snmptrap with acknowledgement, or snmpinform, from an agent. I am
> using agentx. 

If you are sending traps from an agentx subagent then the semantics of
NOTIFY-PDU is that the agent have successfully sent the notification
when the PDU is returned. If there are more than one recipient then I do
not know ho it should reply.

> The example i found, example.c, notification.c do not wait for an
> ACK. 

No - the library doesn't wait for notification replies.

> Or, can someone tell me what are the net-snmp API should I look for...

You could look at apps/agentxtrap.c but I do not know if that is any
help for you as it is quite low level.

/MF


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to