Hi all,
I'm trying to generate the code templates with mib2c to write a MIB module. I
always get the error "You didn't give mib2c a valid OID to start with...". For
testing purposes I tired to run
"snmptranslate -m +IEC-62439-2-MIB -IR MergeLayerInfo"
and get the similiar error message "Unknown object identifier: MergeLayerInfo".
If I use the snmptranslate command line tool with i.e. a MIB from CISCO it does
work smoothly. So may be something wrong with my MIB addded below?
TIA Patrik
/****************************************/
IEC-62439-2-MIB DEFINITIONS ::= BEGIN
IMPORTS
Counter
FROM RFC1155-SMI
OBJECT-TYPE
FROM RFC-1212 -- Concise MIB Definitions
tMergeLayerInterFace OBJECT-TYPE
SYNTAX MergeLayerInfo
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"Status of the redundant LANs in a doubly attached device"
::= { tMerge }
NodesTable ::= SEQUENCE OF {
macAddress(A) NetworkAddress
macAddress(B) NetworkAddress
cntReceived(A) Counter,
cntReceived(B) Counter,
cntKeptFrames(A) Counter
cntKeptFrames(B) Counter
cntErrOutOfSequence(A) Counter
cntErrOutOfSequence(B) Counter
cntErrWrongLAN(A) Counter
cntErrWrongLAN(B) Counter
timeLastSeen(A) TimeTicks,
timeLastSeen(B) TimeTicks,
SAN(A) BOOLEAN,
SAN(B) BOOLEAN,
sendSeq INTEGER16
}
MergeLayerInfo ::=
SEQUENCE {
node DisplayString (SIZE (0..31))
manufacturer DisplayString (SIZE (0..255))
version INTEGER16,
MAC address A INTEGER48
MAC address B INTEGER48
adapterActiveA BOOLEAN,
adapterActiveB BOOLEAN,
duplicateDiscard BOOLEAN,
transparentReception BOOLEAN,
bridging BOOLEAN,
cntTotalSentA Counter,
cntTotalSentB Counter,
cntTotalReceivedA Counter,
cntTotalReceivedB Counter,
cntErrorsA Counter,
cntErrorsB Counter,
noteTableEmpty BOOLEAN,
cntNodes INTEGER16,
nodeTable NodesTable
}
END
/****************************************/
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
-------------------------------------------------------------------------
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-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