Master agent/sub agent
"Pranesh Kulkarni" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
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
i*nt 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 in advance,
Pranesh*
*
-------------------------------------------------------------------------
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