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

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-19-2008
Dave Shield
 
Posts: n/a
Default Re: [new MIB module]Can't compile the agent

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

Reply With Quote
  #2 (permalink)  
Old 05-30-2008
vickyfarias@gmail.com
 
Posts: n/a
Default Re: Can't compile the agent

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0