Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unidentified OID but works when path is specified... strange

Status
Not open for further replies.

Mathurin1968

IS-IT--Management
Apr 5, 2005
6
US
Ok trying to get snmp working. The path to the MIBS is set in snmp.conf. However when I do this from the command line --

snmptranslate -m +Forescout_1.txt -On scoutId

I get Unknown object identifier: scoutId

if I specify the path in the command

snmptranslate -m +/usr/share/snmp/mibs/Forescout_1.txt -On scoutId

it give me back the OID.

Any thoughts? Thanks!


 
I am not that familiar with snmptranslate but my only guess would be specifying on the command line tells it which MIB to search.

Might be better to ask this directly to the net-snmp guys.

Bill
 
Ok still trying to solve this

The problem is crazy.

If I enter the total path to the MIBS --
money@secden-nagios80:~$ /usr/bin/snmptranslate -m +/usr/share/snmp/mibs/ForeScout_1.mib -IR -On scoutId
.1.3.6.1.4.1.11789.4.1.1.1

but if I just enter the name and not the path it can't find it but you can see it does have the correct path that it's searching through --
money@secden-nagios80:~$ /usr/bin/snmptranslate -m +ForeScout_1.mib -IR -On scoutId
No log handling enabled - turning on stderr logging
MIB search path: /home/money/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp:/usr/share/snmp/mibs
Cannot find module (ForeScout_1.mib): At line 6 in (none)
Unknown object identifier: scoutId

very frustrating!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top