ELTEX-TIMESYNCHRONIZATION-MIB DEFINITIONS::= BEGIN

-- Title:      ELTEX Time synchronization protocols extension 
-- Version:    1.0
-- Date:       23-Jun-2021

IMPORTS
    eltMes                              FROM ELTEX-MES
    Unsigned32, Integer32, IpAddress,
    MODULE-IDENTITY,OBJECT-TYPE         FROM SNMPv2-SMI
    InetAddressType, InetAddress        FROM INET-ADDRESS-MIB
    DisplayString, TEXTUAL-CONVENTION,
    RowStatus, TruthValue               FROM SNMPv2-TC
    InterfaceIndex                      FROM IF-MIB
    rlSntpServerInetEntry,
    rlSntpAllServerInetEntry,
    NTPTimeStamp, NTPStratum            FROM RADLAN-TIMESYNCHRONIZATION-MIB;

eltMesTimeSynchronization MODULE-IDENTITY
           LAST-UPDATED "202106230000Z" 
           ORGANIZATION "Eltex Enterprise Co, Ltd." 
           CONTACT-INFO "eltex-co.ru" 
           DESCRIPTION  "MIB for time synchroniztion protocols settings." 

           REVISION "202106230000Z" 
           DESCRIPTION "Initial revision." 
        ::= { eltMes 21 }

eltMesSntpNtpClient  OBJECT IDENTIFIER ::= { eltMesTimeSynchronization 1 }
eltMesNtp            OBJECT IDENTIFIER ::= { eltMesTimeSynchronization 2 }
eltMesSntpGlobals    OBJECT IDENTIFIER ::= { eltMesSntpNtpClient 1 }
eltMesNtpConfig      OBJECT IDENTIFIER ::= { eltMesNtp 1 }
eltMesNtpInfo        OBJECT IDENTIFIER ::= { eltMesNtp 2 }

-- 
-- Textual Conventions
-- 
NTPVersion ::= TEXTUAL-CONVENTION
        STATUS       current
        DESCRIPTION  "integer representing the NTP version number, 
                      currently 4."
        REFERENCE    "D.L. Mills, 'Network Time Protocol (Version 4)',
                      RFC-5905, June 2010, Section 7.3"
        SYNTAX       Integer32 (1..4)

NTPPoll ::= TEXTUAL-CONVENTION
        STATUS       current
        DESCRIPTION  "integer representing the maximum interval 
                      between successive messages, in log2 seconds."
        REFERENCE    "D.L. Mills, 'Network Time Protocol (Version 4)',
                      RFC-5905, June 2010, Section 7.3"
        SYNTAX       Integer32 (0..255)

EltNtpEntryIndex  ::= TEXTUAL-CONVENTION
    STATUS          current
    DESCRIPTION     "Reserved ID."
    SYNTAX          INTEGER {
                        index(1)
                    }

EltexNtpAssociationFlags ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION "   "
    SYNTAX      BITS {
                ephemeralAssociation      (0),
                burstModeEnable           (1),
                initialBurstModeEnable    (2),
                authenticationRequired    (3),
                authenticatedMobilization (4),
                manycastClient            (5),
                actuallyReferenceClock    (6),
                configuredAssociation     (7),
                preferAssociation         (8),
                preemptableAssociation    (9),
                broadcastClientVolley     (10),
                lastMessageAuthentic      (11),
                forceTruechimer           (12),
                neverSelectAssociation    (13),
                autokeyAuthentication     (14),
                masterAssociation         (15)
                }

EltNtpReferenceIdType  ::= TEXTUAL-CONVENTION
    STATUS          current
    DESCRIPTION     "Reference ID type."
    SYNTAX          INTEGER {
                        ipv4(1),
                        hashIPv6(2),
                        string(3)
                    }

-- ----------------------------------------------------------------------
-- SNTP parameters
-- ----------------------------------------------------------------------
eltSntpSourcePort OBJECT-TYPE
    SYNTAX      INTEGER (0..65535)
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION "User defined SNTP source port."
    DEFVAL      { 0 }
    ::= { eltMesSntpGlobals 1 }

-- ----------------------------------------------------------------------
-- NTPv4 System global configuration parameters
-- ----------------------------------------------------------------------
eltNtpConfigSystemGlobalTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltNtpConfigSystemGlobalEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table for configuration global system settings 
                     NTP service."
        ::= { eltMesNtpConfig 1 }

eltNtpConfigSystemGlobalEntry OBJECT-TYPE
        SYNTAX      EltNtpConfigSystemGlobalEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Entry in eltNtpConfigSystemGlobalTable."
        INDEX       { eltNtpConfigSystemGlobalIndex }
        ::= { eltNtpConfigSystemGlobalTable 1 }

EltNtpConfigSystemGlobalEntry ::=
        SEQUENCE 
        {
            eltNtpConfigSystemGlobalIndex                 EltNtpEntryIndex,
            eltNtpConfigSystemGlobalMode6Enabled          TruthValue,
            eltNtpConfigSystemGlobalMode7Enabled          TruthValue,
            eltNtpConfigSystemGlobalMasterEnabled         TruthValue,
            eltNtpConfigSystemGlobalPanicUpdateEnabled    TruthValue,
            eltNtpConfigSystemGlobalPassiveModeEnabled    TruthValue,
            eltNtpConfigSystemGlobalAuthenticationState   INTEGER,
            eltNtpConfigSystemGlobalBurstPackets          Unsigned32,
            eltNtpConfigSystemGlobalBurstInterval         Unsigned32,
            eltNtpConfigSystemGlobalBroadcastDelay        Unsigned32,
            eltNtpConfigSystemGlobalMaxDistance           Unsigned32
        }

eltNtpConfigSystemGlobalIndex OBJECT-TYPE
        SYNTAX      EltNtpEntryIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Reserved ID."
        ::= { eltNtpConfigSystemGlobalEntry 1 }

eltNtpConfigSystemGlobalMode6Enabled OBJECT-TYPE
        SYNTAX      TruthValue
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "TRUE if NTP service participating in receiving NTP packets 
                     with mode 6, else FALSE."
        DEFVAL      { false }
        ::= { eltNtpConfigSystemGlobalEntry 2 }

eltNtpConfigSystemGlobalMode7Enabled OBJECT-TYPE
        SYNTAX      TruthValue
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "TRUE if NTP service participating in receiving NTP packets 
                     with mode 6, else FALSE."
        DEFVAL      { false }
        ::= { eltNtpConfigSystemGlobalEntry 3 }

eltNtpConfigSystemGlobalMasterEnabled OBJECT-TYPE
        SYNTAX      TruthValue
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "TRUE if NTP service working in mode clock MASTER, 
                     else FALSE."
        DEFVAL      { false }
        ::= { eltNtpConfigSystemGlobalEntry 4 }

eltNtpConfigSystemGlobalPanicUpdateEnabled OBJECT-TYPE
        SYNTAX      TruthValue
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "TRUE if NTP doesn't perceive offset greater than the 
                     panic threashold, else FALSE."
        DEFVAL      { false }
        ::= { eltNtpConfigSystemGlobalEntry 5 }

eltNtpConfigSystemGlobalPassiveModeEnabled OBJECT-TYPE
        SYNTAX      TruthValue
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "TRUE if NTP service can working with ephemeral/passive 
                     associations, else FALSE."
        DEFVAL      { false }
        ::= { eltNtpConfigSystemGlobalEntry 6 }
        
eltNtpConfigSystemGlobalAuthenticationState OBJECT-TYPE
        SYNTAX      INTEGER {
                       enabled(1),
                       disabled(2)
                    }
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "NTP authentication state - Enable/Disable NTP."
        DEFVAL      { disabled }
        ::= { eltNtpConfigSystemGlobalEntry 7 }

eltNtpConfigSystemGlobalBurstPackets OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The number of packets sent when the burst mode is enabled."
        ::= { eltNtpConfigSystemGlobalEntry 8 }

eltNtpConfigSystemGlobalBurstInterval OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The interval between of packets sent when the burst mode 
                     is enabled."
        ::= { eltNtpConfigSystemGlobalEntry 9 }

eltNtpConfigSystemGlobalBroadcastDelay OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "Delay value for broadcast mode."
        ::= { eltNtpConfigSystemGlobalEntry 10 }

eltNtpConfigSystemGlobalMaxDistance OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "Max distance value for NTP service."
        ::= { eltNtpConfigSystemGlobalEntry 11 }


-- ----------------------------------------------------------------------
-- NTPv4 System instance configuration parameters
-- ----------------------------------------------------------------------
-- eltNtpConfigSystemInstanceTable OBJECT-TYPE
--        SYNTAX      SEQUENCE OF EltNtpConfigSystemInstanceEntry
--        MAX-ACCESS  not-accessible
--        STATUS      current
--        DESCRIPTION "A table containing information about config servers."
--        ::= { eltMesNtpConfig 2 }

-- eltNtpConfigSystemInstanceEntry OBJECT-TYPE
--        SYNTAX      EltNtpConfigSystemInstanceEntry
--        MAX-ACCESS  not-accessible
--        STATUS      current
--        DESCRIPTION "Entry in eltNtpConfigSystemInstanceTable."
--        INDEX       { eltNtpConfigSystemInstanceEntryIndex }
--        ::= { eltNtpConfigSystemInstanceTable 1 }

-- EltNtpConfigSystemInstanceEntry ::=
--        SEQUENCE 
--        {
--            eltNtpConfigSystemInstanceEntryIndex        EltNtpEntryIndex
--        }

-- eltNtpConfigSystemInstanceEntryIndex OBJECT-TYPE
--        SYNTAX      EltNtpEntryIndex
--        MAX-ACCESS  not-accessible
--        STATUS      current
--        DESCRIPTION ""
--        ::= { eltNtpConfigSystemInstanceEntry 1 }

-- ----------------------------------------------------------------------
-- NTPv4 System global infotmation parameters
-- ----------------------------------------------------------------------
eltNtpInfoSystemGlobalTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltNtpInfoSystemGlobalEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing system information about NTP service."
        ::= { eltMesNtpInfo 1 }

eltNtpInfoSystemGlobalEntry OBJECT-TYPE
        SYNTAX      EltNtpInfoSystemGlobalEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Entry in eltNtpInfoSystemGlobalTable."
        INDEX       { eltNtpInfoSystemGlobalIndex }
        ::= { eltNtpInfoSystemGlobalTable 1 }

EltNtpInfoSystemGlobalEntry ::=
        SEQUENCE 
        {
            eltNtpInfoSystemGlobalIndex                   EltNtpEntryIndex,
            eltNtpInfoSystemGlobalRefId                   OCTET STRING,
            eltNtpInfoSystemGlobalPoll                    NTPPoll,
            eltNtpInfoSystemGlobalPrecision               INTEGER,
            eltNtpInfoSystemGlobalReferenceTime           NTPTimeStamp,
            eltNtpInfoSystemGlobalRootDelay               NTPTimeStamp,
            eltNtpInfoSystemGlobalRootDispersion          NTPTimeStamp,
            eltNtpInfoSystemGlobalOffset                  NTPTimeStamp,
            eltNtpInfoSystemGlobalJitter                  NTPTimeStamp,
            eltNtpInfoSystemGlobalLeapInsert              INTEGER,
            eltNtpInfoSystemGlobalLeapDelete              INTEGER,
            eltNtpInfoSystemGlobalSurvivors               INTEGER,
            eltNtpInfoSystemGlobalReceived                Unsigned32,
            eltNtpInfoSystemGlobalProcessed               Unsigned32,
            eltNtpInfoSystemGlobalCurrentVersion          Unsigned32,
            eltNtpInfoSystemGlobalOldVersion              Unsigned32,
            eltNtpInfoSystemGlobalRestricted              Unsigned32,
            eltNtpInfoSystemGlobalBadLength               Unsigned32,
            eltNtpInfoSystemGlobalBadAuth                 Unsigned32,
            eltNtpInfoSystemGlobalDeclined                Unsigned32,
            eltNtpInfoSystemGlobalLimitRejected           Unsigned32,
            eltNtpInfoSystemGlobalKodSent                 Unsigned32,
            eltNtpInfoSystemGlobalNumberAssociations      Unsigned32,
            eltNtpInfoSystemGlobalNumberServers           Unsigned32,
            eltNtpInfoSystemGlobalNumberPeers             Unsigned32,
            eltNtpInfoSystemGlobalNumberEphemerals        Unsigned32,
            eltNtpInfoSystemGlobalStratum                 NTPStratum,
            eltNtpInfoSystemGlobalSent                    Unsigned32,
            eltNtpInfoSystemGlobalLeapIndicator           Unsigned32,
            eltNtpInfoSystemGlobalFrequency               NTPTimeStamp,
            eltNtpInfoSystemGlobalLoopfilterState         INTEGER,
            eltNtpInfoSystemGlobalLastUpdateLoopfilter    Unsigned32,
            eltNtpInfoSystemGlobalReferenceAddressType    EltNtpReferenceIdType,
            eltNtpInfoSystemGlobalReferenceAddress        OCTET STRING
        }

eltNtpInfoSystemGlobalIndex OBJECT-TYPE
        SYNTAX      EltNtpEntryIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Reserved ID."
        ::= { eltNtpInfoSystemGlobalEntry 1 }

eltNtpInfoSystemGlobalRefId OBJECT-TYPE
        SYNTAX      OCTET STRING
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Reference ID system NTP."
        ::= { eltNtpInfoSystemGlobalEntry 2 }

eltNtpInfoSystemGlobalPoll OBJECT-TYPE
        SYNTAX      NTPPoll
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system poll variable in log2."
        ::= { eltNtpInfoSystemGlobalEntry 3 }

eltNtpInfoSystemGlobalPrecision OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system precision."
        ::= { eltNtpInfoSystemGlobalEntry 4 }

eltNtpInfoSystemGlobalReferenceTime OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system reference time, that is, 
                     the time when the time setting/correction was last 
                     performed on the device."
        ::= { eltNtpInfoSystemGlobalEntry 5 }

eltNtpInfoSystemGlobalRootDelay OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system root delay."
        ::= { eltNtpInfoSystemGlobalEntry 6 }

eltNtpInfoSystemGlobalRootDispersion OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system root dispersion."
        ::= { eltNtpInfoSystemGlobalEntry 7 }

eltNtpInfoSystemGlobalOffset OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system offset."
        ::= { eltNtpInfoSystemGlobalEntry 8 }

eltNtpInfoSystemGlobalJitter OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the system jitter."
        ::= { eltNtpInfoSystemGlobalEntry 9 }

eltNtpInfoSystemGlobalLeapInsert OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number association voting for insert leap seconds."
        ::= { eltNtpInfoSystemGlobalEntry 10 }

eltNtpInfoSystemGlobalLeapDelete OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number association voting for delete leap seconds."
        ::= { eltNtpInfoSystemGlobalEntry 11 }

eltNtpInfoSystemGlobalSurvivors OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number association survivors after all selection 
                     algorithms."
        ::= { eltNtpInfoSystemGlobalEntry 12 }

eltNtpInfoSystemGlobalReceived OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets."
        ::= { eltNtpInfoSystemGlobalEntry 13 }

eltNtpInfoSystemGlobalProcessed OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of processed packets."
        ::= { eltNtpInfoSystemGlobalEntry 14 }

eltNtpInfoSystemGlobalCurrentVersion OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets with 
                     4 version NTP."
        ::= { eltNtpInfoSystemGlobalEntry 15 }

eltNtpInfoSystemGlobalOldVersion OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets with old 
                     version NTP (less than 4 version)."
        ::= { eltNtpInfoSystemGlobalEntry 16 }

eltNtpInfoSystemGlobalRestricted OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of restricted packets."
        ::= { eltNtpInfoSystemGlobalEntry 17 }

eltNtpInfoSystemGlobalBadLength OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets with wrong 
                     length packet."
        ::= { eltNtpInfoSystemGlobalEntry 18 }

eltNtpInfoSystemGlobalBadAuth OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets which did not 
                     pass authentication."
        ::= { eltNtpInfoSystemGlobalEntry 19 }

eltNtpInfoSystemGlobalDeclined OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of redeclined packets."
        ::= { eltNtpInfoSystemGlobalEntry 20 }

eltNtpInfoSystemGlobalLimitRejected OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of rejected packets for large 
                     volume."
        ::= { eltNtpInfoSystemGlobalEntry 21 }

eltNtpInfoSystemGlobalKodSent OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of sent KoD packets."
        ::= { eltNtpInfoSystemGlobalEntry 22 }

eltNtpInfoSystemGlobalNumberAssociations OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number of all associations."
        ::= { eltNtpInfoSystemGlobalEntry 23 }

eltNtpInfoSystemGlobalNumberServers OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number of client associations."
        ::= { eltNtpInfoSystemGlobalEntry 24 }

eltNtpInfoSystemGlobalNumberPeers OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number of peer associations."
        ::= { eltNtpInfoSystemGlobalEntry 25 }

eltNtpInfoSystemGlobalNumberEphemerals OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number of ephemeral associations."
        ::= { eltNtpInfoSystemGlobalEntry 26 }

eltNtpInfoSystemGlobalStratum OBJECT-TYPE
        SYNTAX      NTPStratum
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The stratum of this server."
        ::= { eltNtpInfoSystemGlobalEntry 27 }

eltNtpInfoSystemGlobalSent OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of sent packets."
        ::= { eltNtpInfoSystemGlobalEntry 28 }

eltNtpInfoSystemGlobalLeapIndicator OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value current leap indicator NTP service."
        ::= { eltNtpInfoSystemGlobalEntry 29 }

eltNtpInfoSystemGlobalFrequency OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value frequency drift in s/s."
        ::= { eltNtpInfoSystemGlobalEntry 30 }

 eltNtpInfoSystemGlobalLoopfilterState OBJECT-TYPE
        SYNTAX      INTEGER {
                        neverSet(1),
                        frequencySet(2),
                        spike(3),
                        frequencyMode(4),
                        synchronized(5)
                    }
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
            "Current state of the state machine NTP service."
        ::= { eltNtpInfoSystemGlobalEntry 31 }

eltNtpInfoSystemGlobalLastUpdateLoopfilter OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The number of seconds since the last update of the 
                     state machine NTP service."
        ::= { eltNtpInfoSystemGlobalEntry 32 }

eltNtpInfoSystemGlobalReferenceAddressType OBJECT-TYPE
        SYNTAX      EltNtpReferenceIdType
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Reference ID type in global system configuration."
        ::= { eltNtpInfoSystemGlobalEntry 33 }
        
eltNtpInfoSystemGlobalReferenceAddress OBJECT-TYPE
        SYNTAX      OCTET STRING
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Address of a NTP reference association."
        ::= { eltNtpInfoSystemGlobalEntry 34 }


-- ----------------------------------------------------------------------
-- Information table of all Associations
-- ----------------------------------------------------------------------
eltNtpInfoAssociationInetTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltNtpInfoAssociationInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing trusted NTP associations to be queried 
                     in different mode."
        ::= { eltMesNtpInfo 2 }

eltNtpInfoAssociationInetEntry OBJECT-TYPE
        SYNTAX      EltNtpInfoAssociationInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Entry in eltNtpInfoAssociationInetTable."
        INDEX   {
                    eltNtpInfoAssociationInetIndex,
                    eltNtpInfoAssociationInetIfIndex,
                    eltNtpInfoAssociationInetAddressType,
                    eltNtpInfoAssociationInetAddress 
                }
        ::= { eltNtpInfoAssociationInetTable 1 }

EltNtpInfoAssociationInetEntry ::=
        SEQUENCE 
        {
            eltNtpInfoAssociationInetIndex                  EltNtpEntryIndex,
            eltNtpInfoAssociationInetIfIndex                INTEGER,
            eltNtpInfoAssociationInetAddressType            InetAddressType,
            eltNtpInfoAssociationInetAddress                InetAddress,
            eltNtpInfoAssociationInetFlags                  EltexNtpAssociationFlags,
            eltNtpInfoAssociationInetStratum                NTPStratum,
            eltNtpInfoAssociationInetVersion                NTPVersion,
            eltNtpInfoAssociationInetRefId                  OCTET STRING,
            eltNtpInfoAssociationInetOurPoll                NTPPoll,
            eltNtpInfoAssociationInetPeerPoll               NTPPoll,
            eltNtpInfoAssociationInetOurMode                INTEGER,
            eltNtpInfoAssociationInetPeerMode               INTEGER,
            eltNtpInfoAssociationInetPrecision              INTEGER,
            eltNtpInfoAssociationInetUpdateTime             NTPTimeStamp,
            eltNtpInfoAssociationInetReferenceTime          NTPTimeStamp,
            eltNtpInfoAssociationInetOffset                 NTPTimeStamp,
            eltNtpInfoAssociationInetDelay                  NTPTimeStamp,
            eltNtpInfoAssociationInetDispersion             NTPTimeStamp,
            eltNtpInfoAssociationInetJitter                 NTPTimeStamp,
            eltNtpInfoAssociationInetOrg                    NTPTimeStamp,
            eltNtpInfoAssociationInetRcv                    NTPTimeStamp,
            eltNtpInfoAssociationInetXmt                    NTPTimeStamp,
            eltNtpInfoAssociationInetSychDist               NTPTimeStamp,
            eltNtpInfoAssociationInetCounterSent            Unsigned32,
            eltNtpInfoAssociationInetCounterReceived        Unsigned32,
            eltNtpInfoAssociationInetCounterProcessed       Unsigned32,
            eltNtpInfoAssociationInetCounterOldPacket       Unsigned32,
            eltNtpInfoAssociationInetCounterBogusPacket     Unsigned32,
            eltNtpInfoAssociationInetCounterProtocolUnsynch Unsigned32,
            eltNtpInfoAssociationInetCounterAccessDenied    Unsigned32,
            eltNtpInfoAssociationInetCounterBadAuth         Unsigned32,
            eltNtpInfoAssociationInetCounterBadSynchOrStrat Unsigned32,
            eltNtpInfoAssociationInetCounterBadHeader       Unsigned32,
            eltNtpInfoAssociationInetCounterBadAutokey      Unsigned32,
            eltNtpInfoAssociationInetCounterBadCrypto       Unsigned32,
            eltNtpInfoAssociationInetCounterSelBroken       Unsigned32,
            eltNtpInfoAssociationInetLastReachableTime      NTPTimeStamp
        }

eltNtpInfoAssociationInetIndex OBJECT-TYPE
        SYNTAX      EltNtpEntryIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Reserved ID."
        ::= { eltNtpInfoAssociationInetEntry 1 }

eltNtpInfoAssociationInetIfIndex OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "The interface addressed by this entry."
        ::= { eltNtpInfoAssociationInetEntry 2 }

eltNtpInfoAssociationInetAddressType OBJECT-TYPE
        SYNTAX      InetAddressType
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address Type of a trusted NTP peer."
        ::= { eltNtpInfoAssociationInetEntry 3 }

eltNtpInfoAssociationInetAddress OBJECT-TYPE
        SYNTAX      InetAddress
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address of a trusted NTP peer."
        ::= { eltNtpInfoAssociationInetEntry 4 }

eltNtpInfoAssociationInetFlags OBJECT-TYPE
        SYNTAX      EltexNtpAssociationFlags 
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION ""
        ::= { eltNtpInfoAssociationInetEntry 5 }  

eltNtpInfoAssociationInetStratum OBJECT-TYPE
        SYNTAX      NTPStratum
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The stratum of this association."
        ::= { eltNtpInfoAssociationInetEntry 6 }

eltNtpInfoAssociationInetVersion OBJECT-TYPE
        SYNTAX      NTPVersion
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The version NTP of this server."
        DEFVAL      { 4 }
        ::= { eltNtpInfoAssociationInetEntry 7 }

eltNtpInfoAssociationInetRefId OBJECT-TYPE
        SYNTAX      OCTET STRING
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Reference ID association."
        ::= { eltNtpInfoAssociationInetEntry 8 }

eltNtpInfoAssociationInetOurPoll OBJECT-TYPE
        SYNTAX      NTPPoll
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The poll value configured association."
        ::= { eltNtpInfoAssociationInetEntry 9 }

eltNtpInfoAssociationInetPeerPoll OBJECT-TYPE
        SYNTAX      NTPPoll
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The poll value peer association."
        ::= { eltNtpInfoAssociationInetEntry 10 }

eltNtpInfoAssociationInetOurMode OBJECT-TYPE
        SYNTAX      INTEGER {
                       symmetricActive(1),
                       symmetricPassive(2),
                       client(3),
                       server(4),
                       broadcastServer(5),
                       broadcastClient(6),
                       none(101)
                    }
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The mode configured association"
        ::= { eltNtpInfoAssociationInetEntry 11 }

eltNtpInfoAssociationInetPeerMode OBJECT-TYPE
        SYNTAX      INTEGER {
                       symmetricActive(1),
                       symmetricPassive(2),
                       client(3),
                       server(4),
                       broadcastServer(5),
                       broadcastClient(6),
                       none(101)
                    }
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The mode peer association"
        ::= { eltNtpInfoAssociationInetEntry 12 }  

eltNtpInfoAssociationInetPrecision OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the association precision."
        ::= { eltNtpInfoAssociationInetEntry 13 }

eltNtpInfoAssociationInetUpdateTime OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the last update time association."
        ::= { eltNtpInfoAssociationInetEntry 14 }

eltNtpInfoAssociationInetReferenceTime OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the reference time peer association."
        ::= { eltNtpInfoAssociationInetEntry 15 }

eltNtpInfoAssociationInetOffset OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the association offset."
        ::= { eltNtpInfoAssociationInetEntry 16 }

eltNtpInfoAssociationInetDelay OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the association delay."
        ::= { eltNtpInfoAssociationInetEntry 17 }

eltNtpInfoAssociationInetDispersion OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the association disparsion."
        ::= { eltNtpInfoAssociationInetEntry 18 }

eltNtpInfoAssociationInetJitter OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the association jitter."
        ::= { eltNtpInfoAssociationInetEntry 19 }

eltNtpInfoAssociationInetOrg OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the timestamp origin."
        ::= { eltNtpInfoAssociationInetEntry 20 }

eltNtpInfoAssociationInetRcv OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the timestamp receive."
        ::= { eltNtpInfoAssociationInetEntry 21 }

eltNtpInfoAssociationInetXmt OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        DESCRIPTION "The value of the timestamp transmit."
        ::= { eltNtpInfoAssociationInetEntry 22 }

eltNtpInfoAssociationInetSychDist OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "The value of the root distance in seconds."
        ::= { eltNtpInfoAssociationInetEntry 23 }

eltNtpInfoAssociationInetCounterSent OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of sent packets."
        ::= { eltNtpInfoAssociationInetEntry 24 }

eltNtpInfoAssociationInetCounterReceived OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets."
        ::= { eltNtpInfoAssociationInetEntry 25 }

eltNtpInfoAssociationInetCounterProcessed OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of processed packets."
        ::= { eltNtpInfoAssociationInetEntry 26 }

eltNtpInfoAssociationInetCounterOldPacket OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of received packets with old version
                     (less than 4 version)."
        ::= { eltNtpInfoAssociationInetEntry 27 }

eltNtpInfoAssociationInetCounterBogusPacket OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of bogus packets."
        ::= { eltNtpInfoAssociationInetEntry 28 }

eltNtpInfoAssociationInetCounterProtocolUnsynch OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of unsynchronized packets."
        ::= { eltNtpInfoAssociationInetEntry 29 }

eltNtpInfoAssociationInetCounterAccessDenied OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of packets which that did not pass 
                     the access."
        ::= { eltNtpInfoAssociationInetEntry 30 }

eltNtpInfoAssociationInetCounterBadAuth OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of packets which that did not pass 
                     the authentication."
        ::= { eltNtpInfoAssociationInetEntry 31 }

eltNtpInfoAssociationInetCounterBadSynchOrStrat OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of packets which that did not pass 
                     check on sanity stratum or synch."
        ::= { eltNtpInfoAssociationInetEntry 32 }

eltNtpInfoAssociationInetCounterBadHeader OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of packets with wrong header."
        ::= { eltNtpInfoAssociationInetEntry 33 }

eltNtpInfoAssociationInetCounterBadAutokey OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of packets which did not pass autokey."
        ::= { eltNtpInfoAssociationInetEntry 34 }

eltNtpInfoAssociationInetCounterBadCrypto OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of receive packets with crypto."
        ::= { eltNtpInfoAssociationInetEntry 35 }

eltNtpInfoAssociationInetCounterSelBroken OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Counter for the number of KoD received packets."
        ::= { eltNtpInfoAssociationInetEntry 36 }

eltNtpInfoAssociationInetLastReachableTime OBJECT-TYPE
        SYNTAX      NTPTimeStamp
        MAX-ACCESS  read-only
        DESCRIPTION "The time when it was last reachable peer."
        ::= { eltNtpInfoAssociationInetEntry 37 }


-- ----------------------------------------------------------------------
-- Table for configuring Servers (Unicast)
-- ----------------------------------------------------------------------
eltNtpConfigServerInetTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltNtpConfigServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing trusted NTP servers to be queried in
                     unicast mode."
        ::= { eltMesNtpConfig 3 }

eltNtpConfigServerInetEntry OBJECT-TYPE
        SYNTAX      EltNtpConfigServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A trusted server."
        INDEX   {   
                    eltNtpConfigServerInetIndex,
                    eltNtpConfigServerInetAddressType,
                    eltNtpConfigServerInetAddress }
        ::= { eltNtpConfigServerInetTable 1 }

EltNtpConfigServerInetEntry ::=
        SEQUENCE 
        {
                eltNtpConfigServerInetIndex            EltNtpEntryIndex,
                eltNtpConfigServerInetAddressType      InetAddressType,
                eltNtpConfigServerInetAddress          InetAddress,
                eltNtpConfigServerInetKeyIdentifier    Unsigned32,
                eltNtpConfigServerInetVersion          Unsigned32,
                eltNtpConfigServerInetRowStatus        RowStatus
        }

eltNtpConfigServerInetIndex OBJECT-TYPE
        SYNTAX      EltNtpEntryIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Reserved ID."
        ::= { eltNtpConfigServerInetEntry 1 }

eltNtpConfigServerInetAddressType OBJECT-TYPE
        SYNTAX      InetAddressType
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address Type of a trusted NTP server."
        ::= { eltNtpConfigServerInetEntry 2 }

eltNtpConfigServerInetAddress OBJECT-TYPE
        SYNTAX      InetAddress
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address of a trusted NTP server."
        ::= { eltNtpConfigServerInetEntry 3 }

eltNtpConfigServerInetKeyIdentifier OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "Authentication key identifier. The valid range is
                     1-4294967295.
                     Value zero, means no authentication is being done."
        ::= { eltNtpConfigServerInetEntry 4 }

eltNtpConfigServerInetVersion OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "NTP version number."
        DEFVAL      { 4 }
        ::= { eltNtpConfigServerInetEntry 5 }

eltNtpConfigServerInetRowStatus OBJECT-TYPE
        SYNTAX      RowStatus
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The Status of this NTP server information."
        ::= { eltNtpConfigServerInetEntry 6 }

-- ----------------------------------------------------------------------
-- Table for configuring Peers (Unicast)
-- ----------------------------------------------------------------------

eltNtpConfigPeerInetTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltNtpConfigPeerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing trusted NTP servers to be queried in
                     unicast mode."
        ::= { eltMesNtpConfig 4 }

eltNtpConfigPeerInetEntry OBJECT-TYPE
        SYNTAX      EltNtpConfigPeerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A trusted peer."
        INDEX   {
                        eltNtpConfigPeerInetIndex,
                        eltNtpConfigPeerInetAddressType,
                        eltNtpConfigPeerInetAddress 
                }
        ::= { eltNtpConfigPeerInetTable 1 }

EltNtpConfigPeerInetEntry ::=
        SEQUENCE
        {
                eltNtpConfigPeerInetIndex            EltNtpEntryIndex,
                eltNtpConfigPeerInetAddressType      InetAddressType,
                eltNtpConfigPeerInetAddress          InetAddress,
                eltNtpConfigPeerInetKeyIdentifier    Unsigned32,
                eltNtpConfigPeerInetVersion          Unsigned32,
                eltNtpConfigPeerInetRowStatus        RowStatus
        }

eltNtpConfigPeerInetIndex OBJECT-TYPE
        SYNTAX      EltNtpEntryIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Reserved ID."
        ::= { eltNtpConfigPeerInetEntry 1 }

eltNtpConfigPeerInetAddressType OBJECT-TYPE
        SYNTAX      InetAddressType
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address Type of a trusted NTP peer."
        ::= { eltNtpConfigPeerInetEntry 2 }

eltNtpConfigPeerInetAddress OBJECT-TYPE
        SYNTAX      InetAddress
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "Inet Address of a trusted NTP peer."
        ::= { eltNtpConfigPeerInetEntry 3 }


eltNtpConfigPeerInetKeyIdentifier OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "Authentication key identifier. The valid range is
                     1-4294967295.
                     Value zero, means no authentication is being done."
        ::= { eltNtpConfigPeerInetEntry 4 }

eltNtpConfigPeerInetVersion OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "NTP version number."
        DEFVAL      { 4 }
        ::= { eltNtpConfigPeerInetEntry 5 }

eltNtpConfigPeerInetRowStatus OBJECT-TYPE
        SYNTAX      RowStatus
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "The Status of this NTP server information."
        ::= { eltNtpConfigPeerInetEntry 6 }

END
