ELTEX-MES-COUNTERS-MIB DEFINITIONS ::= BEGIN

-- Title:         Eltex MES Counters Configuration
-- Version:       1.0
-- Creation date: 17 Aug 2020
-- Last update:   17 Aug 2020

IMPORTS
    eltMesCountersMIB      FROM ELTEX-MES-MNG-MIB
    OBJECT-TYPE,
    Counter64              FROM SNMPv2-SMI
    TruthValue             FROM SNMPv2-TC
    rlQosAceTidxIndex,
    rlQosAceTidxAclIndex   FROM RADLAN-QOS-CLI-MIB;

eltMesCountersMIBObjects    OBJECT IDENTIFIER ::= { eltMesCountersMIB 1 }
eltMesCountersGlobal        OBJECT IDENTIFIER ::= { eltMesCountersMIBObjects 1 }
eltMesCountersStatistics    OBJECT IDENTIFIER ::= { eltMesCountersMIBObjects 2 }
eltMesCountersQos           OBJECT IDENTIFIER ::= { eltMesCountersGlobal 1 }
eltMesCountersAce           OBJECT IDENTIFIER ::= { eltMesCountersGlobal 3 }
eltMesCountersAceStatistics OBJECT IDENTIFIER ::= { eltMesCountersStatistics 2 }


------------------------------------------
-- QoS Statistics
------------------------------------------

eltCountersQosStatisticsEnable OBJECT-TYPE
    SYNTAX     TruthValue
    MAX-ACCESS read-write
    STATUS     current
    DESCRIPTION
        "Enable or disable QosStatistics."
    DEFVAL { false }
    ::= { eltMesCountersQos 1 }

------------------------------------------
-- ACE Statistics
------------------------------------------

eltCountersPortAceStatisticsEnable OBJECT-TYPE
    SYNTAX      TruthValue
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "Enable or disable AceStatistics per port."
    DEFVAL { false }
    ::= { eltMesCountersAce 1 }

eltCountersVlanAceStatisticsEnable OBJECT-TYPE
    SYNTAX      TruthValue
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "Enable or disable AceStatistics per VLAN."
    DEFVAL { false }
    ::= { eltMesCountersAce 2 }

eltCountersAceStatisticsClear OBJECT-TYPE
    SYNTAX      TruthValue
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "Clears ACE statistics counters for all ACE rules."
    ::=  { eltMesCountersAce 3 }

eltCountersAceTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF EltCountersAceEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "Per ACE counters table."
    ::= { eltMesCountersAceStatistics 1 }

eltCountersAceEntry OBJECT-TYPE
    SYNTAX      EltCountersAceEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "Per ACE counters table entry."
    INDEX       { rlQosAceTidxAclIndex,
                  rlQosAceTidxIndex }
    ::= { eltCountersAceTable 1 }

EltCountersAceEntry ::= SEQUENCE {
    eltCountersAceHitCounterStatus  INTEGER,
    eltCountersAceHitCounterValue   Counter64
}

eltCountersAceHitCounterStatus OBJECT-TYPE
    SYNTAX INTEGER {
        enabled (1),
        disabled (2)
    }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Enable or disable counters for current ACE."
    ::= { eltCountersAceEntry 1 }

eltCountersAceHitCounterValue OBJECT-TYPE
    SYNTAX      Counter64
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Counter of hw ACE matches."
    ::= { eltCountersAceEntry 2 }


END
