This is a discussion on Re: [new MIB module]Can't compile the agent within the SNMP Users forums, part of the Networking and Network Related category; 2008/5/19 CHAHIBI Samira <samira.chahibi@hotmail.com>: > according to net-snmp > wiki tutorial, i ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
2008/5/19 CHAHIBI Samira <samira.chahibi@hotmail.com>:
> 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.p...oadable_Object) and running it as an AgentX subagent (http://www.net-snmp.org/wiki/index.p...ing_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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
On 19 mayo, 08:50, D.T.Shi...@liverpool.ac.uk ("Dave Shield") wrote:
> 2008/5/19 CHAHIBI Samira <samira.chah...@hotmail.com>: > > > * * * * * * * * * * * * * * * * * * * * * * * * * * *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.p...namically_Load...) > > and running it as an AgentX subagent > * (http://www.net-snmp.org/wiki/index.p...ing_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 > Net-snmp-us...@lists.sourceforge.net > Please see the following page to unsubscribe or change other options:https://lists.sourceforge.net/lists/...net-snmp-users Hi Dave, I am working with a pre-compiled agent, too. I am trying to implement the NET-SNMP-TUTORIAL-MIB running a MIB module as an AgentX subagent. Where should I put the files that the tutorial says I should download to then use the net-snmp-config script? I get this: % net-snmp-config --compile-subagent mysubagent nstAgentSubagentObject.c generating the tmporary code file: netsnmptmp.7899.c void init_nstAgentPluginObject(void); checking for init_nstAgentPluginObject in nstAgentPluginObject.c init_nstAgentPluginObject(void) shift: 494: can't shift that many Thanks in advance! VICKY |