On Sun, 2005-10-09 at 08:36 -0700, Ali Majdzadeh wrote:
> I found that with write_variable it is possible to SET
> variables.Is there any example explaining this routine?
Just a couple:
$ cd net-snmp/agent/mibgroup
$ find . -name \*.c | xargs grep ^write | wc -l
185
Did you actually try *looking* for any examples?!
I'd also suggest you read the AGENT.txt file,
which explains something of how this works.
Note that both AGENT.txt and the files it describes
are somewhat out of date, as this is the "UCD v4"
module API. Most current MIB modules are being developed
using the newer "v5" API.
The details are different - in particular, the SET
support is mostly handled in the same routine as the
GET support (except for the MfD framework) - but the
basics are still very similar to the AGENT.txt description.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders