I’m trying to do a snmp agent extention job.I wrote a mib file named
"SYS-CONFIG-MIB.txt" and put it in the directory "/usr/share/snmp/mibs".That's
where mib files are placed.
I tried "snmptranslate -IR -On sysConfigMib" and got "Unknown object
identifier: sysConfigMib".
I tried "snmptranslate -m +SYS-CONFIG-MIB -IR sysConfigMib" and got "Unknown
object identifier: sysConfigMib".
I tried "snmptranslate SYS-CONFIG-MIB::sysConfigMib" and got
"SYS-CONFIG-MIB::sysConfigMib: Unknown Object Identifier".
Is there any advice?Thanks!
Here is my mib file.
Code:
SYS-CONFIG-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE,
OCTET STRING, mib-2, enterprises,
NOTIFICATION-TYPE FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP,
NOTIFICATION-GROUP FROM SNMPv2-CONF
sysConfigMib MODULE-IDENTITY
LAST-UPDATED "200708180000Z"
ORGANIZATION "xxx"
CONTACT-INFO
"postal: Qiushi Wang
email: xxx"
DESCRIPTION
"xxx."
REVISION "200708180000Z"
DESCRIPTION
"First revision."
::= { enterprises 9953 }
junker OBJECT IDENTIFIER ::= { sysConfigMib 0 }
PotType OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"type of honeypot"
DEFVAL { linux }
::= { junker 2 }
END
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders