http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module#Compilin
g_in_your_new_MIB_module

 

________________________________

From: jack n [mailto:mailbackj...@gmail.com] 
Sent: Friday, November 19, 2010 10:18 AM
To: net-snmp-users@lists.sourceforge.net
Subject: SNMPWALK does not work for Private MIBS

 

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.

 



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

<<inline: logo.jpg>>

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

Reply via email to