[AGENT++] Implementing SNMP SET

Jochen Katz katz at agentpp.com
Sun Nov 19 13:20:43 CET 2006


Hi,

>   Hi list. Sorry for chiming in with a perhaps silly question. The
> scenario is this: I have added a Mib to my agent, then added a few
> MibLeafs to it, some of them being SnmpInt32 and some being OctetStr.
> While I can successfully walk and get each value in my Mib by
> overloading the  ::get_request method in MibEntry, I really fail to
> see how to do the same for setting the values of the MibLeafs in
> question. Could anybody please shed some light over this? Thanks in
> advance for any hints!

you have to override some/all of the following functions of MibLeaf
class in your subclass:
prepare/commit/undo/cleanup_set_request(), value_ok() and un/set().

Regards,
  Jochen



More information about the AGENTPP mailing list