SNMPWALK does not work for Private MIBS

jack n <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,

I had placed my private MIBs under /usr/share/snmp/mibs and compiled them
using mib2c.

I got .c and .h files, added my code in the .c file and placed them under
/agent/mibgroup.

Now when I try to run snmpwalk I don't see any output

# snmpwalk -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4
# snmpwalk -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4

Also when I run snmpget I get - "(noSuchName) There is no such variable name
in this MIB."

# snmpget -v 1 localhost -c public 1.3.6.1.8.1.1.2321.79.2.1.5.4
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.8.1.1.2321.79.2.1.5.4

Can you please let me know what could be the error?
I had syntax checked my mib file and there were compile errors for .c
files.
But still it doesn't work.
Am i missing something? Is there any debug options to include in the code in
.c file or is there any other way to debug the error info??
Please let me know.

Thanks and Regard,
Jack.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.