This is a discussion on can't add my own MIB within the SNMP Users forums, part of the Networking and Network Related category; --===============1821741388== Content-Type: multipart/alternative; boundary="----=_Part_138206_9818636.1166031095429" ------=_Part_138206_9818636.1166031095429 Content-Type: text/plain; charset=ISO-8859-1; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1821741388==
Content-Type: multipart/alternative; boundary="----=_Part_138206_9818636.1166031095429" ------=_Part_138206_9818636.1166031095429 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline (Linux Gentoo) 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 IMPORTS MODULE-IDENTITY, OBJECT-TYPE, Integer32, mib-2 FROM SNMPv2-SMI DisplayString FROM SNMPv2-TC afMIB MODULE-IDENTITY LAST-UPDATED "200606140000Z" ORGANIZATION "Ochen krutaya Firma" CONTACT-INFO "na derevnu dedushke" DESCRIPTION "Initial revision, published as part of RFC 1573." ::= { mib-2 95 } afMIBObjects OBJECT IDENTIFIER ::= { afMIB 1 } afTest OBJECT IDENTIFIER ::= { mib-2 97 } testValue OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "Test Value" ::= { afMIBObjects 1 } testStr OBJECT-TYPE SYNTAX DisplayString MAX-ACCESS read-only STATUS current DESCRIPTION "May be alliens are innocent? And SCSI drives disappeared in the Gates?" ::= { afTest 1 } END I tried to make all steps like in tutorial Using and loading MIBS<http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/mib-options.html> 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 etc... 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 ;) Please, can anybody show me where I was wrong? I'm looking forward to hearing from you!!! ------=_Part_138206_9818636.1166031095429 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline (Linux Gentoo)<br><br>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.<br><br>First of all my simple mib file:<br><br>AF-MIB DEFINITIONS ::= BEGIN <br><br>IMPORTS<br> MODULE-IDENTITY, OBJECT-TYPE, Integer32, mib-2 <br> &nbs p; FROM SNMPv2-SMI<br> DisplayString <br> &nbs p; FROM SNMPv2-TC<br>afMIB MODULE-IDENTITY<br> LAST-UPDATED "200606140000Z" <br> ORGANIZATION "Ochen krutaya Firma"<br> CONTACT-INFO "na derevnu dedushke"<br> DESCRIPTION "Initial revision, published as part of RFC 1573."<br> ::= { mib-2 95 }<br><br>afMIBObjects OBJECT IDENTIFIER ::= { afMIB 1 } <br>afTest OBJECT IDENTIFIER ::= { mib-2 97 }<br><br>testValue OBJECT-TYPE<br> SYNTAX Integer32<br> MAX-ACCESS read-only<br> STATUS current<br> DESCRIPTION "Test Value"<br> ::= { afMIBObjects 1 } <br><br>testStr OBJECT-TYPE<br> SYNTAX DisplayString<br> MAX-ACCESS read-only<br> STATUS current<br> DESCRIPTION<br>   ; "May be alliens are innocent? And SCSI drives disappeared in the Gates?" <br> ::= { afTest 1 }<br><br>END<br><br>I tried to make all steps like in tutorial <a href="http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/mib-options.html">Using and loading MIBS</a><br><br>I've put AF-MIB in /usr/local/share/snmp/mibs and than I've tried to execute snmptranslate <br><br>Like:<br>snmptranslate -m +AF-MIB -IR afMIB <br>snmptranslate -m +AF-MIB -IR testStr <br>etc...<br>But always got the same result:<br>Unknown object identifier: afMIB<br>Unknown object identifier: testStr<br>etc... <br><br>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 ;)<br><br>Please, can anybody show me where I was wrong?<br><br>I'm looking forward to hearing from you!!! <br><br><br><br><br><br><br><br><br><br> ------=_Part_138206_9818636.1166031095429-- --===============1821741388== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1821741388== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1821741388==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|