On Mon, Mar 26, 2012 at 11:39:09AM -0400, Robert Story wrote:
> On Sun, 25 Mar 2012 02:23:28 -0400 Jasti wrote:
> JD> After generating the template code from mib2c file how will integrate that
> JD> with the main() for compilation & is it necessary to integrate all the
> JD> scalar & tabular columns into one?
> 
> Do you want to integrate with the monolithic agent (snmpd), or have your own
> subagent?
> 
> For monolithic, see
> http://www.net-snmp.org/FAQ.html#Where_should_I_put_the_files_produced_by__mib_c__.
> 
> For subagents, you just need to link in all the individual object files and
> call their init routines in the subagent's main().

For subagents you could do it even simpler:

net-snmp-config --compile-subagent yourmodule yourmodule.c

will generate a subagent with your module. If it fails there are more arguments
to --compile-subagent to help.

/MF

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to