This is a discussion on Re: can't add my own MIB within the SNMP Users forums, part of the Networking and Network Related category; On 13/12/06, Artem Fedko <dobryskazochnik@gmail.com> wrote: > I'm just begining to work with ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 13/12/06, Artem Fedko <dobryskazochnik@gmail.com> wrote:
> I'm just begining to work with net-snpm paket... so I tried to create my own > MIB file and add it to the tree but stuck with the next problem. > > First of all my simple mib file: > > AF-MIB DEFINITIONS ::= BEGIN [snip] > I've put AF-MIB in /usr/local/share/snmp/mibs and than I've tried to execute > snmptranslate > > Like: > snmptranslate -m +AF-MIB -IR afMIB > snmptranslate -m +AF-MIB -IR testStr That looks OK at first sight. > But always got the same result: > Unknown object identifier: afMIB > Unknown object identifier: testStr > etc... > > So... it seems that net-snmp can't see my MIB or don't want to see it... but > with CISCO-RHINO-MIB.my from tutorial all works perfectly ;) The first thing to check is that the library is looking for the MIB in the place you expect (i.e. where the file actually is). Try running snmptranslate -Dparse_mibs -m +AF-MIB -IR afMIB It's also worth trying using the alternative method for specifying a MIB object: snmptranslate AF-MIB::afMIB Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ 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/...net-snmp-users |