Hi ,
I want to have a subagent to master net-snmp agent.
Dircectory structure is
~/net-snmp-5.4.1
and
I have wriiten my mib module simple-MIB in /usr/local/share/snmp/mibs
directory and checked with snmptranslate command.
I am generating C files using mib2c tool in ~/simpleTable .
I created my module and generated using mib2c tool.
$ mib2c -c mib2c.mfd.conf simple-MIB::simpleTable
It generated .c and .h files
In simpleTable_data_access.c assigned some defalut values
int simpleName_len=30;
char simpleName[255];
int simpleAddress_len=10;
char simpleAddress [255];
int simpleLocation_len=10;
char simpleLocation_len[255];
In fact I have to read from some file and fill the values . But here just
assigned some values.
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
I have kept an entry in /usr/local/share/snmp/snmpd.conf
master agentx
and the agent is running with command
/usr/local/sbin/snmpd
Please help me in resloving this issue.
Thanks,
Pranesh
On Feb 1, 2008 9:14 PM, Dave Shield <[EMAIL PROTECTED]> wrote:
> On 01/02/2008, Pranesh Kulkarni <[EMAIL PROTECTED]> wrote:
> > May be this sounding simple to you , please help me in this regard,
>
> It's not a matter of being "simple" or complex.
> The problem is that you are not giving us sufficient
> information to work with.
>
> You say that:
>
> > Using mib2c tool , I generated code for the scalar and table and then
> > configured , make and make install
>
> But *how* did you run configure?
> What was the exact command that you used?
> What were the names files produced by mib2c, and where did you put them?
>
> Similarly:
>
> > if I issue snmpget it replies , No Such Instance currently exists at
> this OID
>
> That's omitting all of the useful information.
> What was the exact "snmpget" command that you used?
> It sounds as if you supplied at least one OID to retrieve,
> but what was it? And how does this fit into the structure
> of your MIB, or the initialisation that you've got in your C code?
>
>
> None of us can read your mind. And we don't have access to
> your private files. If you don't tell us exactly what you've tried
> (including the details - not something vague like "issue snmpget"),
> then there is no way on earth that we can even start to guess
> what might be wrong!
>
>
> The more detail you can provide, the greater the chance of
> someone being able to help.
>
> 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