On Mon, May 22, 2017 at 05:01:52PM +0530, deepak.sachan deepak.sachan wrote:
> There are various SET macros like MODE_SET_RESERVE1, MODE_SET_RESERVE2,
> MODE_SET_UNDO in my generated file .
> I have implemented only MODE_SET_COMMIT for setinng values . What
> is use of others??. Are they helpful to set values permanently.??
These are intended for data validation.
See http://www.net-snmp.org/wiki/index.php/Agent_Modes#SET_RESERVE1
To set values permanently (that is, in the net-snmp.conf file for reload
after restartint the agent) you must create a callback function to be
called then the agent shuts down.
A relatively simple example of saving and loading can be found for
pauthtrapenable in
agent/mibgroup/mibII/snmp_mib.c
agent/agent_read_config.c
agent/agent_trap.c
/Niels
--
Niels Baggesen -- @home -- Ã…rhus -- Denmark -- n...@users.sourceforge.net
The purpose of computing is insight, not numbers -- R W Hamming
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders