[AGENT++] How to use prepare_set_request
Frank Fock
fock at agentpp.com
Thu May 16 22:52:49 CEST 2013
Hi,
There are examples in the examples directory of the AGENT++
sources. The MibEntry::prepare_set_request method is *not*
supposed to be used programmatically to update MIB data.
Instead use the ::set_value or ::replace_value methods
in conjunction with proper locking.
The prepare_set_request as well as commit_set_request
are used by AGENT++ to update values with a 2-phase-commit
process triggered by a SNMP SET request PDU.
Best regards,
Frank
Am 14.05.2013 16:02, schrieb amine mohamed:
> Hi,
> i want to use prepare_set_request but i didn't find any example .
> what i tied to do is to set a variable from my agent.
>
> this is a part of the code
>
> mib->get_default_context()->find("1.3.6.1.4.1.12454.2.1.1.1.0",m);
>
> //m->reset(); this request work ;the initial value of my oid is 2 and when i add this line i had 1
> //what i'm trying is to change this value to another number
>
> m->prepare_set_request();
>
>
> thanks a lot
>
> Regadrs
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
More information about the AGENTPP
mailing list