Simple != easy: net-snmp table example
Implementing tables with net-snmp is real pain as there is ~7 APIs that all “help” implementing tables and the documentation is scarce. It doesn’t help either that net-snmp table example is ~50kB of code. Here is shorter one.
To run these examples, you also need to edit mib_module_includes.h and net-snmp mib_module_inits.h files and add following lines:
#include “mibgroup/manager/manager.h”
if (should_init(”manager”)) init_manager();
recompile net-snmp and run snmpd as:
$ snmpd -c snmpd.conf -f -L -Dmib_init,stastisticsTable
For viewing the table I used iReasoning MIB browser.
Table example files as zip.
Book about net-snmp: Solaris System Management Agent Developer’s Guide



[...] Et see artikel puhtaks vingumiseks ei jääks ja kellegil sellest võibolla ka kasu oleks, siis näitekood on siin. Kui platvormi valida saab, siis http://www.snmp4j.org tundub märksa mõistlikum. [...]
Hi
please do something about your hyperlinks - it isn’t obvious what is text and what is a link, so it’s hard to find them. Please use a different color or underline them.
Thanks