Re: Adding c files to build agent

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.