Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Local snmpwalk fails with Unknown Object Identifier

93 views
Skip to first unread message

Oliver Graute

unread,
Jun 23, 2015, 9:16:18 AM6/23/15
to
Hello,

I observe a strange problem with net-snmp while retrieving a subtree
with snmpwalk:

On the Target Host itself I got a Unknown Object Identifier Error Message..

snmpwalk -v3 -m ALL -M /usr/share/snmp/mibs -n "" -u admin -a SH
A -A "12345678" -x AES -X "12345678" -l authPriv localhost TAINY-MIB::tainyMIBOb
jects
TAINY-MIB::tainyMIBObjects: Unknown Object Identifier
(TAINY-MIB::tainyMIBObjects)

The same command from a Remote Host to the Target is working like expecting:

snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs -n "" -u admin -a SHA -A
"12345678" -x AES -X "12345678" -l authPriv 192.168.1.8:161
TAINY-MIB::tainyMIBObje
cts

snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs -n "" -u admin -a SHA -A
"12345678" -x AES -X "12345678" -l authPriv 192.168.1.8:161
TAINY-MIB::tainyMIBObje
cts
TAINY-MIB::tainyCSQ = INTEGER: 99
TAINY-MIB::tainyLACCID = ""
TAINY-MIB::tainyWirelessWANIP = ""
TAINY-MIB::tainyAccessTechnology = INTEGER: 0
TAINY-MIB::tainyAccessTechnologyString = STRING: "Access Technology Unknown"
TAINY-MIB::tainyWirelessNetWorkConnected = INTEGER: 0
TAINY-MIB::tainyWirelessWANOnline = INTEGER: 0
TAINY-MIB::tainyIMEI = ""
TAINY-MIB::tainyIMSI = ""
TAINY-MIB::tainyICCID = ""
TAINY-MIB::tainyDNS1 = ""
TAINY-MIB::tainyDNS2 = ""
TAINY-MIB::tainyDNS3 = ""

...

Some ideas whats is going wrong here?

The TAINY-MIB is a self created MIB and is stored in /usr/share/snmp/mibs

/usr/bin/snmpwalk -V
NET-SNMP version: 5.7.3

Best regards,

Oliver

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Oliver Graute

unread,
Jun 23, 2015, 10:27:04 AM6/23/15
to
Hello,

here some additional infos:

If I snmpwalk via the OID Number it is also working:

snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs -n "" -u admin -a SHA -A
"12345678" -x AES -X "12345678" -l authPriv 127.0.0.1 1.3.6.1.2.1

And I see this:
snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs -n "" -u admin -a SHA -A
"12345678" -x AES -X "12345678" -l authPriv 127.0.0.1 1.3.6.1.2.1
.1.3.6.1.2.1.1.1.0 = STRING: "TAINY-iQ"
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.10
.1.3.6.1.2.1.1.3.0 = Timeticks: (148116) 0:24:41.16
.1.3.6.1.2.1.1.4.0 = STRING: "kunden...@neuhaus.de"
.1.3.6.1.2.1.1.5.0 = STRING: "TAINY-iQ"
.1.3.6.1.2.1.1.6.0 = STRING: "Dr. Neuhaus Telekommunikation GmbH"
.1.3.6.1.2.1.1.8.0 = Timeticks: (29) 0:00:00.29
.1.3.6.1.2.1.1.9.1.2.1 = OID: .1.3.6.1.6.3.11.3.1.1
.1.3.6.1.2.1.1.9.1.2.2 = OID: .1.3.6.1.6.3.15.2.1.1
.1.3.6.1.2.1.1.9.1.2.3 = OID: .1.3.6.1.6.3.10.3.1.1
.1.3.6.1.2.1.1.9.1.2.4 = OID: .1.3.6.1.6.3.1
......

But the same via the MIB is still not working:

snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs -n "" -u admin -a SHA -A
"12345678" -x AES -X "12345678" -l authPriv 127.0.0.1 system.0
system.0: Unknown Object Identifier (system.0)

Best regards,

Oliver

Oliver Graute

unread,
Jun 24, 2015, 10:19:38 AM6/24/15
to
> The TAINY-MIB is a self created MIB and is stored in /usr/share/snmp/mibs

is it sufficant to copy a self-build MIB to the /usr/share/snmp/mibs directory?
or do I need a fresh build with ./configure --with-mib-modules=myMIB ?

Fredrik Björk

unread,
Jun 24, 2015, 3:05:36 PM6/24/15
to
Hi!

It is sufficient to just copy the file as you dedcribe. Just make sure you have an unbroken chain of references to the root of the MIB tree. If you have a reference in your file to "enterprises" for instance, you should be fine.

You can also put the file in another dir and append that path with -M+/your/dir

/Fredrik

Oliver Graute

unread,
Jun 30, 2015, 10:33:17 AM6/30/15
to
Just for the mailinglists records, the reason for the problem above
was the wrong compile option

--disable-mib-loading instead of --enable-mib-loading

changing this fixed my problem.
> The TAINY-MIB is a self created MIB and is stored in /usr/share/snmp/mibs
>
> /usr/bin/snmpwalk -V
> NET-SNMP version: 5.7.3
>
> Best regards,
>
> Oliver

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
0 new messages