Re: can't add my own MIB

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2006
Dave Shield
 
Posts: n/a
Default Re: can't add my own MIB

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0