2010/10/5 생각하기 <bakdor...@hanmail.net>
> I want to send Trapv1

From the SNMP agent, or from an application?


> I realize that send_easy_trap and netsnmp_send_trap and 
> send_enterprise_trap_var
> are not proper to send SNMPv1 Trap..

You realise incorrectly.

If you are sending notifications from within the agent, you *should* use
one of these API calls.   The agent will turn this into a SNMPv1, SNMPv2c
or SNMPv3 traps/informs as required.
   This is all described in the FAQ



If you are sending notifications from within a non-agent application,
then there's no specific API for sending a trap - you simply construct
the SNMP PDU structure as you would for any other request, and
send it using 'snmp_send'.

  See the source code for 'apps/snmptrap.c' for an example.

Dave

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to