ELTEX-TIMESYNCHRONIZATION-MIB-A DEFINITIONS::= BEGIN

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

IMPORTS
    MODULE-IDENTITY,OBJECT-TYPE    FROM SNMPv2-SMI
    rlSntpServerInetEntry          FROM RADLAN-TIMESYNCHRONIZATION-MIB
    rlSntpAllServerInetEntry       FROM RADLAN-TIMESYNCHRONIZATION-MIB
    eltMes                         FROM ELTEX-MES;

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 }
eltMesSntpGlobals    OBJECT IDENTIFIER ::= { eltMesSntpNtpClient 1 }
eltMesSntpConfig     OBJECT IDENTIFIER ::= { eltMesSntpNtpClient 2 }

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

eltSntpConfigServerInetTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltSntpConfigServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing trusted SNTP servers to be queried in
                     unicast or broadcast mode."
        ::= { eltMesSntpConfig 1 }

eltSntpConfigServerInetEntry OBJECT-TYPE
        SYNTAX      EltSntpConfigServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A trusted server."
        AUGMENTS    { rlSntpServerInetEntry }
        ::= { eltSntpConfigServerInetTable 1 }

EltSntpConfigServerInetEntry ::= SEQUENCE {
        eltSntpConfigServerInetPriority       INTEGER
}

eltSntpConfigServerInetPriority OBJECT-TYPE
        SYNTAX      INTEGER (0..255)
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION "Not zero if server has priority."
        DEFVAL { 0 }
        ::= { eltSntpConfigServerInetEntry 1 }


eltSntpAllServerInetTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF EltSntpAllServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A table containing all SNTP servers (for example: statically
                     configured, dynamically configured) to be queried in unicast
                     or broadcast mode."
        ::= { eltMesSntpConfig 2 }

eltSntpAllServerInetEntry OBJECT-TYPE
        SYNTAX      EltSntpAllServerInetEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION "A trusted server."
        AUGMENTS    { rlSntpAllServerInetEntry }
        ::= { eltSntpAllServerInetTable 1 }

EltSntpAllServerInetEntry ::= SEQUENCE {
        eltSntpAllServerInetPriority       INTEGER
}

eltSntpAllServerInetPriority OBJECT-TYPE
        SYNTAX      INTEGER (0..255)
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION "Not zero if server has priority."
        DEFVAL { 0 }
        ::= { eltSntpAllServerInetEntry 1 }

END
