Local snmpwalk fails with Unknown Object Identifier, but remote works
02:09 24 Jun 2015

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

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::tainyMIBObjects
TAINY-MIB::tainyMIBObjects: Unknown Object Identifier (TAINY-MIB::tainyMIBObjects)

The same snmpwalk from a remote Host to the Target is just working fine:

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::tainyMIBObj
ects                                                                                                                                                                                      
TAINY-MIB::tainyCSQ = INTEGER: 99
TAINY-MIB::tainyLACCID = ""
TAINY-MIB::tainyWirelessWANIP = ""
TAINY-MIB::tainyAccessTechnology = INTEGER: 0

I double checked that the MIB files exists on the target machine in /usr/share/snmp/mibs. I copied these files directly form the remote hosts. I also using the -M option

Somebody a clue whats going wrong here?

snmp net-snmp