(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!!!
-------------------------------------------------------------------------
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