Re: can't add my own MIB
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 13/12/06, Artem Fedko <[email protected]> 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?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users