Dave Shield wrote:
> The definition 'MergeLayerInfo' is defining the *syntax* for a MIB bject,
> not the actual MIB object itself.   Try
>
>    snmptranslate -m +IEC-62439-2-MIB -IR tMergeLayerInterFace

The snmp translation works after syntax correction in the MIB and using the 
command above.


> I'm not convinced that this is a valid MIB definition, though.
> SMI (as used to define MIB modules) is not the same as full ASN.1,
> and doesn't support SEQUENCEs, except as part of defining a table.

I tried to rewrite this MIB (see below) by means of comparing with other 
(standard) MIBs. But I don't know how to design the nested NodesTable. Finally, 
there should be one tMergeLayerTable which contains multiple NodesTables 
(cntNodes entry in TMergeLayerEntry).


> Who developed this particular MIB?
I don't know that, I got it as a part of a project at the university.

Thanks for your assistance,
Patrik

------------------MIB--------------------
IEC-62439-2-MIB DEFINITIONS ::= BEGIN

IMPORTS
    Counter
        FROM RFC1155-SMI
    DisplayString, TruthValue
        FROM SNMPv2-TC
    experimental, OBJECT-TYPE, Integer32
        FROM SNMPv2-SMI;

tMergeLayerTable OBJECT-TYPE
    SYNTAX         SEQUENCE OF TMergeLayerEntry
    MAX-ACCESS     not-accessible
    STATUS         current
    DESCRIPTION
        "Status of the redundant LANs in a doubly attached device"
    ::= { experimental 1 }

tMergeLayerEntry OBJECT-TYPE
        SYNTAX      TMergeLayerEntry
        MAX-ACCESS  not-accessible
    STATUS      current
        DESCRIPTION
            "An entry containing management information applicable to a
            particular interface."
        ::= { tMergeLayerTable 1 }

TMergeLayerEntry ::= SEQUENCE {
        node             DisplayString,
        manufacturer         DisplayString,
        version         INTEGER16,
        macAddressA         INTEGER48,
        macAddressB         INTEGER48,
        adapterActiveA         TruthValue,
        adapterActiveB         TruthValue,
        duplicateDiscard     TruthValue,
        transparentReception     TruthValue,
        bridging         TruthValue,
        cntTotalSentA         Counter,
        cntTotalSentB         Counter,
        cntTotalReceivedA     Counter,
        cntTotalReceivedB     Counter,
        cntErrorsA         Counter,
        cntErrorsB         Counter,
        noteTableEmpty         TruthValue,
        cntNodes         INTEGER
}

node OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..31))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "node"
    ::= { tMergeLayerEntry 1 }

manufacturer OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..255))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "manufacturer"
    ::= { tMergeLayerEntry 2}

adapterActiveA OBJECT-TYPE
    SYNTAX     TruthValue
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "adapterActiveA"
    ::= { tMergeLayerEntry 6 }

.....
.....
.....

cntNodes OBJECT-TYPE
    SYNTAX      Integer32 (0..65535)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "cntNodes"
    ::= { tMergeLayerEntry 18 }

--object types not yet defined
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
}

END
-------------------------------------------

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to