[AGENT++] Adding trap destination for Inform type

fock at agentpp.com fock at agentpp.com
Tue Dec 11 10:40:26 CET 2007


Hi,

The add_v3_trap_destination method is an example only.
Feel free to implement your own one, with a parameter
to control the trapType.

Best regards,
Frank



Hi, 

I have a question about trap destination.  I looked into the source code
and the method add_v3_trap_destination() hardcodes the type of the
message to type 'Trap' in 

 snmpNotifyEntry::instance->add_entry(name, // row index 
						 tag,  // tag
						 1);   // type (trap)  

So to add a v3 destination that will receive "Inform" type I guess I
will have to change the type to 2 in the source code, or to write a
similar method that takes a variable input for type, or to bypass
add_v3_trap_destination() and calls add_entry() directly with type = 2?

Thank you,
My

_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp



More information about the AGENTPP mailing list