-- *****************************************************************
-- STACK-TOP.mib 
--
-- 2007-5-29 9:54
-- 
--
-- Copyright (c) 1985-2007 by ZTE Corp.
-- All rights reserved.
-- *****************************************************************
-- 
STACK-TOP DEFINITIONS ::= BEGIN

IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE, TimeTicks,
        Integer32, NOTIFICATION-TYPE,enterprises
                FROM SNMPv2-SMI
        MacAddress
                FROM SNMPv2-TC  
        MODULE-COMPLIANCE, OBJECT-GROUP
                FROM SNMPv2-CONF;

    zte OBJECT IDENTIFIER ::= { enterprises 3902 }
    zxr10 OBJECT IDENTIFIER ::= { zte 3} 
      
    stacktop MODULE-IDENTITY
        LAST-UPDATED "200705280000Z"
        ORGANIZATION "ZTE Corp."
        CONTACT-INFO
               ""

        DESCRIPTION 
                ""
        REVISION "200405140000Z"
        DESCRIPTION
                ""
               
        ::= { zxr10 301 }


VendorIdType ::= OCTET STRING (SIZE (3))
        -- The vendor ID portion of a MacAddress (first 3 octets
        -- of the 6-octet MAC address)



-- the system group

-- Implementation of the system group is current for all Cisco Workgroup
-- Stack products.

sysMasterVoteTimes OBJECT-TYPE
        SYNTAX        Integer32        
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION   "How many times stack system's master device be voted."
        ::= { stacktop 1 }

sysMasterLastVoteTime OBJECT-TYPE
        SYNTAX        TimeTicks        
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION   "The ending time when stack system's master device be voted."
        ::= { stacktop 2 }

sysLastDetecTopEndTime OBJECT-TYPE
        SYNTAX        TimeTicks        
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION   "The ending time when the system detected top at the last time."
        ::= { stacktop 3 }

sysTopChagTimes OBJECT-TYPE
        SYNTAX        Integer32        
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION   "How many times the system top changed."
        ::= { stacktop 4 }

sysTopDetecMsgCount OBJECT-TYPE
        SYNTAX        Integer32        
        MAX-ACCESS    read-only
        STATUS        current
        DESCRIPTION   "System topo detected topo protocol message count."
        ::= { stacktop 5 }
 
sysTopInfoTable OBJECT-TYPE
        SYNTAX  SEQUENCE OF SysTopInfoEntry
        MAX-ACCESS    not-accessible
        STATUS        current
        DESCRIPTION   "A list of the topo information."
        ::= { stacktop 6 }

sysTopInfoEntry OBJECT-TYPE
        SYNTAX  SysTopInfoEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION
            "An entry to the topo info table."
        INDEX  { sysDeviceMacAddr,sysDeviceStkPortIndex }
        ::= { sysTopInfoTable 1 }

SysTopInfoEntry ::=
     SEQUENCE {         
         sysDeviceMacAddr
             MacAddress,
         sysDeviceStkPortIndex
             Integer32,
         sysDeviceType  
             Integer32,
         sysDeviceStkPortNum
             Integer32,    
         sysDeviceID
             Integer32,
         sysDeviceMasterPri
             Integer32,    
         sysDeviceStkIfStatus
             INTEGER{up(1),down(2)},
         sysDeviceStkIfPanel        
             Integer32,
         sysDeviceStkIfPortID
             Integer32,
         sysDeviceStkPortNeibMacAddr
             MacAddress,
         sysDeviceStkPortNeibPortIndex
             Integer32
         }             

sysDeviceMacAddr  OBJECT-TYPE
        SYNTAX   MacAddress
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System Device mac address."
        ::= { sysTopInfoEntry 1 }

sysDeviceStkPortIndex OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface port index."
        ::= { sysTopInfoEntry 2 }

sysDeviceType  OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device type."
        ::= { sysTopInfoEntry 3 }

sysDeviceStkPortNum  OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface port number."
        ::= { sysTopInfoEntry 4 }
                         
sysDeviceID  OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device ID."
        ::= { sysTopInfoEntry 5 } 

sysDeviceMasterPri OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device's priority in voting master device."
        ::= { sysTopInfoEntry 6 }

sysDeviceStkIfStatus  OBJECT-TYPE
        SYNTAX   INTEGER{up(1),down(2)}
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface status
            1: up
            2: down."
        ::= { sysTopInfoEntry 7 }

sysDeviceStkIfPanel OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface panel num."
        ::= { sysTopInfoEntry 8 } 

sysDeviceStkIfPortID OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface port num."
        ::= { sysTopInfoEntry 9 }
        
sysDeviceStkPortNeibMacAddr OBJECT-TYPE
        SYNTAX   MacAddress
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface neighbor device mac address."
        ::= { sysTopInfoEntry 10 }

sysDeviceStkPortNeibPortIndex OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface neighbor device port index."
        ::= { sysTopInfoEntry 11 }
       
sysStkPortMsgStacTable OBJECT-TYPE
        SYNTAX  SEQUENCE OF SysStkPortMsgStacEntry
        MAX-ACCESS    not-accessible
        STATUS        current
        DESCRIPTION   "A list of the stack interface receive and send message statistic information."
        ::= { stacktop 7 }

sysStkPortMsgStacEntry OBJECT-TYPE
        SYNTAX  SysStkPortMsgStacEntry
        MAX-ACCESS  not-accessible
        STATUS  current
        DESCRIPTION
            "An entry to the stack interface receive and send message statistic information table."
        INDEX  { sysStkDeviceID,sysStkDeviceStkIfIndex }
        ::= { sysStkPortMsgStacTable 1 }

SysStkPortMsgStacEntry ::=
     SEQUENCE {
         sysStkDeviceID
             Integer32,
         sysStkDeviceStkIfIndex
             Integer32,    
         sysStkPortRecMsgCount
             Integer32,
         sysStkPortSendMsgCount                                               
             Integer32
         }
         
sysStkDeviceID  OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device ID."
        ::= { sysStkPortMsgStacEntry 1 }

sysStkDeviceStkIfIndex OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System device stack interface index."
        ::= { sysStkPortMsgStacEntry 2 } 

sysStkPortRecMsgCount OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System stack interface received message count." 
        ::= { sysStkPortMsgStacEntry 3 }
        
sysStkPortSendMsgCount OBJECT-TYPE
        SYNTAX   Integer32
        MAX-ACCESS  read-only
        STATUS  current
        DESCRIPTION
            "System stack interface send message count."
        ::= { sysStkPortMsgStacEntry 4 }
                      
END
