Hello

 

I want to send SNMPTrapv1

 

so I choose "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 coded "send_easy_trap"

 

what is the problem ?!

 

I can't fix the problem...

 

I need your help...

 



------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to