Re: [new MIB module]Can't compile the agent

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/5/19 CHAHIBI Samira <[email protected]>:
>                                                      according to net-snmp
> wiki tutorial, i must copy this files into a agent/mibgroup/leadTechDesign.h
> and agent/mibgroup/leadTechDesign.c file and make:
>
> ./configure --with-mib-modules="leadTechDesign"
> make
> make install

That's correct.
This is the normal mechanism for adding a new MIB module
to a source-compiled installation.


> I'm on fedora and I installed net-snmp with "yum install" command, I didn't
> download the net-snmp-5.4.1.tar package

OK - so you are not working with a source-based installation.
The "configure" mechanism is not appropriate for you.
(Hence the problems you are seeing).



> Where should I put my files in this case? What commands should  I perform
> to  compile  the agent with new mib module?

If you are working with a pre-compiled agent, then you have a choice
between running your MIB module as a dynamically loadable object
   (http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Dynamically_Loadable_Object)

and running it as an AgentX subagent
  (http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent)

These two tutorial pages should provide the relevant instructions.
But "configure" is not relevant in your environment.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.