It was library linking issue its resolved , Thanks Dave
So when I run the subagent,
./simpleTable -f -L
Its saying
Warning: Failed to connect to the agentx master agent ([NIL]):
In my /usr/local/share/snmp , I have kept the line
master agentx
Do we need another configuration file for the subagent ?
Thanks,
Pranesh
On Feb 5, 2008 3:04 PM, Dave Shield <[EMAIL PROTECTED]> wrote:
> On 05/02/2008, Pranesh Kulkarni <[EMAIL PROTECTED]> wrote:
> > I created my module and generated using mib2c tool.
> > $ mib2c -c mib2c.mfd.conf simple-MIB::simpleTable
>
> Urkhh. That's one framework that I don't know much about.
> You may need to try asking Robert for help.
> (Which is best done on the project IRC channel).
>
>
>
> > When I done with make command , I got the executable ,
> simpleTable
> >
> > When I do
> > ./simpleTable ,
> > ./simpleTable: symbol lookup error: ./simpleTable: undefined
> symbol:
> > netsnmp_cache_create
>
> What was the exact command used to link the 'simpleTable' binary?
> (i.e. the output of the "make" command")
>
>
> It might be easier to start by compiling your module into the main
> agent binary:
>
> mv simpleTable agent/mibgroup
> configure --with-mib-modules=simpleTable
> make
> make install
>
> i.e. taking the AgentX step out of the equation.
> That might also avoid the library linking problem above.
>
>
>
> 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/listinfo/net-snmp-users