[AGENT++] Find value of set requests

Frank Fock fock at agentpp.com
Tue Jun 14 18:56:50 CEST 2011


Hi Michelle,

It seems that you want to implement a sort of proxy
agent. To do that, I recommend subclassing the
MibComplexEntry. By overwriting the
prepare_set_request and commit_set_request methods
you can "intercept" (means process) the requests.

Best regards,
Frank

On 09.06.2011 07:59, Michelle Lam wrote:
> I'm wondering if anyone has suggestion on the best way to intercept all the set requests and get the set values (so I can pass it to another application).
>
> Should I use req->get_type() to find the set, then how do i find the OID and the set value? (I guess there is no way to register for change notification in agent++?)
>
> Another way is to add code to the set_state or set_row methods to pass the set values to my other application but would set_row gets called when the set request is done on a cell of the table?
>
> Thanks for your help.
> Michelle
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list