VIPNET-MIB DEFINITIONS ::= BEGIN
  
IMPORTS 
    enterprises				FROM RFC1155-SMI
    OBJECT-TYPE, Counter32, Integer32,
    TimeTicks				FROM SNMPv2-SMI
    TEXTUAL-CONVENTION, DisplayString	FROM SNMPv2-TC
    snmpTraps                           FROM SNMPv2-MIB
    IANAifType				FROM IANAifType-MIB;

OwnerString ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "255a"
    STATUS       deprecated
    DESCRIPTION
            "This data type is used to model an administratively
            assigned name of the owner of a resource.  This information
            is taken from the NVT ASCII character set.  It is suggested
            that this name contain one or more of the following: ASCII
            form of the manager station's transport address, management
            station name (e.g., domain name), network management
            personnel's name, location, or phone number.  In some cases
            the agent itself will be the owner of an entry.  In these
            cases, this string shall be set to a string starting with
            'agent'."
    SYNTAX       OCTET STRING (SIZE(0..255))

InterfaceIndex ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "d"
    STATUS       current
    DESCRIPTION
            "A unique value, greater than zero, for each interface or
            interface sub-layer in the managed system.  It is
            recommended that values are assigned contiguously starting
            from 1.  The value for each interface sub-layer must remain
            constant at least from one re-initialization of the entity's
            network management system to the next re-initialization."
    SYNTAX       Integer32 (1..2147483647)

InterfaceIndexOrZero ::= TEXTUAL-CONVENTION
    DISPLAY-HINT "d"
    STATUS       current
    DESCRIPTION
            "This textual convention is an extension of the
            InterfaceIndex convention.  The latter defines a greater
            than zero value used to identify an interface or interface
            sub-layer in the managed system.  This extension permits the
            additional value of zero.  the value zero is object-specific
            and must therefore be defined as part of the description of
            any object which uses this syntax.  Examples of the usage of
            zero might include situations where interface was unknown,
            or when none or all interfaces need to be referenced."
    SYNTAX       Integer32 (0..2147483647)




infotecs OBJECT IDENTIFIER ::= { enterprises 10812 }

vipnet OBJECT IDENTIFIER ::= { infotecs 1 }

system OBJECT IDENTIFIER ::= { vipnet 1}

netID OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..255))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "A textual string containing information about the
            ViPNet network ID and network name." 
    ::= { system 1 }

hostID OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..255))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "A textual string containing information about the
            ViPNet host ID and host name." 
    ::= { system 2 }

userID OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..255))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "A textual string containing information about the
            ViPNet current user." 
::= { system 3 }

UpTime OBJECT-TYPE
    SYNTAX      TimeTicks
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "The value of UpTime is the time from start ViPNet 
            till now."
    ::= { system 4 }

interfaces OBJECT IDENTIFIER ::= { vipnet 2 }
                        
ifNumber  OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "The number of network interfaces (regardless of their
            current state) present on this system."
    ::= { interfaces 1 }


ifTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF IfEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "A list of interface entries.  The number of entries is
            given by the value of ifNumber."
    ::= { interfaces 2 }

ifEntry OBJECT-TYPE
    SYNTAX      IfEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "An entry containing management information applicable to a
            particular interface."
    INDEX   { ifIndex }
    ::= { ifTable 1 }

IfEntry ::=
    SEQUENCE {
        ifIndex                 InterfaceIndex,
        ifDescr                 DisplayString,
        ifMode                  INTEGER,
        ifopenin                Counter32,
        ifopeninblock           Counter32,
        ifopenout               Counter32,
        ifopenoutblock          Counter32,
        ifcryptin               Counter32,
        ifcryptinblock          Counter32,
        ifcryptout              Counter32,
        ifcryptoutblock         Counter32
   }

ifIndex OBJECT-TYPE
    SYNTAX      InterfaceIndex
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "A unique value, greater than zero, for each interface.  It
            is recommended that values are assigned contiguously
            starting from 1.  The value for each interface sub-layer
            must remain constant at least from one re-initialization of
            the entity's network management system to the next re-
            initialization."
    ::= { ifEntry 1 }

ifDescr OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..255))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "A textual string containing information about the
            interface.  This string should include the name of the
            manufacturer, the product name and the version of the
            interface hardware/software."
    ::= { ifEntry 2 }

ifMode OBJECT-TYPE
    SYNTAX  INTEGER {
                crypted(1),
                cryptedopen(2),
                boomerang(3),
                testmode(4),
                nocrypt(5)
            }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "The ViPNet mode of interface.
            See documentation of ViPNet"
    ::= { ifEntry 3 }


ifopenin OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 4 }

ifopeninblock OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 5 }

ifopenout OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 6 }

ifopenoutblock OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 7 }

ifcryptin OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 8 }

ifcryptinblock OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 9 }

ifcryptout OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 10 }

ifcryptoutblock OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    ::= { ifEntry 11 }


vipnettraps OBJECT IDENTIFIER ::= { vipnet 0 }

vpnDaemonStart NOTIFICATION-TYPE
    STATUS      current
    DESCRIPTION
        "Start ViPNet daemon"
    ::= { vipnettraps 1 }

vpnDaemonStop NOTIFICATION-TYPE
    STATUS current
    DESCRIPTION
        "Stop ViPNet daemon"
    ::= { vipnettraps 2 }

vpnMftpStart NOTIFICATION-TYPE
    STATUS      current
    DESCRIPTION
        "Start MFTP daemon"
    ::= { vipnettraps 3 }

vpnMftpStop NOTIFICATION-TYPE
    STATUS current
    DESCRIPTION
        "Stop MFTP daemon"
    ::= { vipnettraps 4 }

vpnWatchdogStart NOTIFICATION-TYPE
    STATUS      current
    DESCRIPTION
        "Start WatchDog daemon"
    ::= { vipnettraps 5 }

vpnWatchdogStop NOTIFICATION-TYPE
    STATUS current
    DESCRIPTION
        "Stop WatchDog daemon"
    ::= { vipnettraps 6 }
    
vpnFailoverStart NOTIFICATION-TYPE
    STATUS      current
    DESCRIPTION
        "Start Failover daemon"
    ::= { vipnettraps 7 }

vpnFailoverStop NOTIFICATION-TYPE
    STATUS current
    DESCRIPTION
        "Stop Failover daemon"
    ::= { vipnettraps 8 }

vpnFailoverSwitch NOTIFICATION-TYPE
    STATUS current
    DESCRIPTION
        "Switch Failover daemon to Active mode"
    ::= { vipnettraps 9 }
    
END