Discussion:
Local snmpwalk fails with Unknown Object Identifier
(too old to reply)
Oliver Graute
2015-06-23 13:14:08 UTC
Permalink
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
Oliver Graute
2015-06-23 14:24:17 UTC
Permalink
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: "***@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
Post by Oliver Graute
Hello,
I observe a strange problem with net-snmp while retrieving a subtree
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)
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
Oliver Graute
2015-06-24 14:13:51 UTC
Permalink
Post by Oliver Graute
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 ?

Best regards,

Oliver
Oliver Graute
2015-06-30 14:31:28 UTC
Permalink
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.

Best regards,

Oliver
Post by Oliver Graute
Hello,
I observe a strange problem with net-snmp while retrieving a subtree
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)
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
Loading...