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 [...]