Re: Adding MIB problem.

Joao Miguel Ferreira <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Fri, 2007-04-13 at 17:10 +0400, Roman Gorohov. wrote:
> Hello, net-snmp-users.
> I'm trying to attach BEGEMOT-MIBs to net-snmp, but no success.
> I copy needed mibs to /usr/local/share/snmp/, added mibs into mibs variable in file snmp.conf as instructions says.
> When i run snmpwalk -v2c -c public localhost .1.3.6.1.4.1.12325
> I get: FOKUS-MIB::fokus = No Such Object available on this agent at this OID.
> Anyone had added this mib? 
> Maybe I miss some steps while adding? Its my first expirience.

Try this:

find the first "OBJECT IDENTIFIER" line in your MIB.

then copy the identifier (object name) on the leftmost of that line and
do this:

snmptranslate -Td -IR <object name>

if you get a description of your object that means the MIB is being
correctly loaded by the net-snmp tools...



bellow an example for the mib-2:

# cat /usr/share/snmp/mibs/RFC1213-MIB.txt | grep "OBJECT IDENTIFIER"
mib-2      OBJECT IDENTIFIER ::= { mgmt 1 }
system       OBJECT IDENTIFIER ::= { mib-2 1 }
interfaces   OBJECT IDENTIFIER ::= { mib-2 2 }
at           OBJECT IDENTIFIER ::= { mib-2 3 }
ip           OBJECT IDENTIF....
...
..
.

then:

# snmptranslate -Td -IR mib-2
RFC1213-MIB::mib-2
mib-2 OBJECT-TYPE
  -- FROM       RFC1213-MIB, SNMPv2-SMI
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) 1 }
#

this means that the tools were able to find the mib-2 object

try this with your MIBs... just to check..


cheers
jmf


> Thanks in advance, Roman.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.