Hello

 

I 'm going to send SNMPTrapv1 use "send_easy_trap

 

I use this .

 

-----------------------------------------------------------------------------------------------------------

int send_notiport_trap(int module, int port, int reason, char *notidatetime)

{

 netsnmp_variable_list *var_list = NULL;

 

oid notiport_oid[] = { 1,3,6,1,4,1,5927,1,130,1,0,5};

 

snmp_varlist_add_variable(&var_list, snmptrap_oid, OID_LENGTH(snmptrap_oid), ASN_OBJECT_ID, (u_char *)notiport_oid, sizeof(notiport_oid));

 

send_v2trap(var_list);

send_easy_trap(reason, 1):

snmp_free_varbind(var_list);

return SNMP_ERR_NOERROR;

}

----------------------------------------------------------------------------------------------------------------

 

I can receive the SNMPv2 Trap named "notiport"

but i can't receive SNMPv1Trap using "send_easy_trap"

 

what is the problem ?!

 

I can't fix the problem...

 

And using send_easy_trap, it says in the documentation "the enterprise and
enterprise_length paramater is set to the pre defined SYSTEM_MIB oid and length
respectively". What exactly does that mean?

 

 

------------------------------------------------------------------------------
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