On 08/20/18 13:26, Simon Chamlian wrote:
> I am trying to adapt the agent to our requirements. In order to do so, I
> need to add some code (c files) to the agent to handle our own MIB.
> 
> The agent is running on an embedded system (Linux-systemd) using Yocto
> to build it.
> 
> Where (in which makefile) do I add my own code?
> 
> I need to do something like:
> 
>  --with-mib-modules=" file1  file2  file3 "        
> 
> Any hints will be appriciated.

Hello Simon,

Have you considered to use the AgentX protocol? That protocol namely
allows to extend the Net-SNMP agent without having to rebuild it. An
additional advantage of using AgentX is that your MIB implementation
runs as a separate process and hence that it becomes much easier to
figure out which code is causing a crash if any crashes would occur.

Bart.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to