tags:

views:

184

answers:

1

Hello all!

For those who have tried using the net-snmp library, how do you add a new mib module? What I so far did was generate a template newmodule.c and newmodule.h files using the mib2c command. Now, I don't know where to place the init_newmodule() function to register the new mib during start up of net-snmp application?

Thanks!

A: 

In your snmpd.conf, add:

dlmod myNewModule /path/to/libnewmodule.so

This will load libnewmodule.so and call init_myNewModule().

bstpierre