[AGENT++] Send trap on v1/v2c/v3

Jinnee jinnee at 126.com
Tue Sep 12 11:44:54 CEST 2006


HI !

please help me. See demo code on sending trap v1.
////////////////////////////////////////////////////////////
	Vbx* vbs = 0;
	coldStartOid coldOid;
	NotificationOriginator no;
	UdpAddress dest("192.168.1.10/162");
	no.add_v1_trap_destination(dest);
	mib->notify("", coldOid, vbs, 0); // (1)
//////////////////////////////////////////////////////////
I changed "mib->notify("context", coldOid, vbs, 0);", and it compiled ok. But when it running, it occurs error, "Notification not sent (reason) (addr) (params): (no access), (  C0 A8 02 2F 00 A2           .../..
), (defaultV1Trap)" .
what's the matter? 
-------------------------
btw, I don't know how how to send trap in v2c and v3. who can help me? thanks ,... I have idea. 






More information about the AGENTPP mailing list