-- extracted from rfc2494.txt
-- at Mon Nov 15 17:11:40 1999

DS0-MIB DEFINITIONS ::= BEGIN

IMPORTS
        MODULE-IDENTITY,
        OBJECT-TYPE,
        transmission
                FROM SNMPv2-SMI
        MODULE-COMPLIANCE,
        OBJECT-GROUP
                FROM SNMPv2-CONF
        DisplayString,
        TruthValue
                FROM SNMPv2-TC
        ifIndex,
        InterfaceIndex,
        InterfaceIndexOrZero
                FROM IF-MIB;

--  This is the MIB module for the DS0 Interface objects.

ds0 MODULE-IDENTITY
        LAST-UPDATED "9807161630Z" -- Jul 16, 1998 4:30:00 PM
        ORGANIZATION "IETF Trunk MIB Working Group"
        CONTACT-INFO
               "David Fowler

                Postal: Newbridge Networks Corporation
                        600 March Road
                        Kanata, Ontario, Canada K2K 2E6

                        Tel: +1 613 591 3600
                        Fax: +1 613 599 3619

                E-mail: davef@newbridge.com"
        DESCRIPTION
               "The MIB module to describe
                DS0 interfaces objects."
        REVISION "9805242010Z"     -- May 24, 1998 8:10:00 PM
        DESCRIPTION
               "Initial version of the DS0-MIB."
 -- 1.3.6.1.2.1.10.81 --  ::= { transmission 81 }


-- The DS0 Config Group
-- Implementation of this group is mandatory for all
-- systems that use a DS0 Interface.
-- The DS0 Config Group consists of two tables:
--    DS0 Configuration Table
--    DS0 Channel Mapping Table
-- The DS0 Configuration Table

dsx0ConfigTable OBJECT-TYPE
        SYNTAX SEQUENCE OF Dsx0ConfigEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
               "The DS0 Configuration table."
 -- 1.3.6.1.2.1.10.81.1 --  ::= { ds0 1 }


dsx0ConfigEntry OBJECT-TYPE
        SYNTAX Dsx0ConfigEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
               "An entry in the DS0 Configuration table.  There
                is an entry in this table for each DS0 interface."
        INDEX {
                ifIndex }
 -- 1.3.6.1.2.1.10.81.1.1 --  ::= { dsx0ConfigTable 1 }


Dsx0ConfigEntry ::= SEQUENCE {
        dsx0Ds0ChannelNumber       INTEGER,
        dsx0RobbedBitSignalling    TruthValue,
        dsx0CircuitIdentifier      DisplayString,
        dsx0IdleCode               INTEGER,
        dsx0SeizedCode             INTEGER,
        dsx0ReceivedCode           INTEGER,
        dsx0TransmitCodesEnable    TruthValue,
        dsx0Ds0BundleMappedIfIndex InterfaceIndexOrZero }


dsx0Ds0ChannelNumber OBJECT-TYPE
        SYNTAX INTEGER (0..31)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
               "This object indicates the channel number of the
                ds0 on its DS1/E1."
 -- 1.3.6.1.2.1.10.81.1.1.1 --  ::= { dsx0ConfigEntry 1 }


dsx0RobbedBitSignalling OBJECT-TYPE
        SYNTAX TruthValue
        MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
               "This object indicates if Robbed Bit Signalling is
                turned on or off for a given ds0.  This only
                applies to DS0s on a DS1 link.  For E1 links the
                value is always off (false)."
 -- 1.3.6.1.2.1.10.81.1.1.2 --  ::= { dsx0ConfigEntry 2 }


dsx0CircuitIdentifier OBJECT-TYPE
        SYNTAX DisplayString (SIZE (0..255))
        MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
               "This object contains the transmission vendor's
                circuit identifier, for the purpose of
                facilitating troubleshooting."
 -- 1.3.6.1.2.1.10.81.1.1.3 --  ::= { dsx0ConfigEntry 3 }


dsx0IdleCode OBJECT-TYPE
        SYNTAX INTEGER (0..15)
        MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
               "This object contains the code transmitted in the
                ABCD bits when the ds0 is not connected and
                dsx0TransmitCodesEnable is enabled.  The object is
                a bitmap and the various bit positions are:
                      1     D bit
                      2     C bit
                      4     B bit
                      8     A bit"
 -- 1.3.6.1.2.1.10.81.1.1.4 --  ::= { dsx0ConfigEntry 4 }


dsx0SeizedCode OBJECT-TYPE
        SYNTAX INTEGER (0..15)
        MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
               "This object contains the code transmitted in the
                ABCD bits when the ds0 is connected and
                dsx0TransmitCodesEnable is enabled.  The object is
                a bitmap and the various bit positions are:
                      1     D bit
                      2     C bit
                      4     B bit
                      8     A bit"
 -- 1.3.6.1.2.1.10.81.1.1.5 --  ::= { dsx0ConfigEntry 5 }


dsx0ReceivedCode OBJECT-TYPE
        SYNTAX INTEGER (0..15)
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
               "This object contains the code being received in
                the ABCD bits.  The object is a bitmap and the
                various bit positions are:
                      1     D bit
                      2     C bit
                      4     B bit
                      8     A bit"
 -- 1.3.6.1.2.1.10.81.1.1.6 --  ::= { dsx0ConfigEntry 6 }


dsx0TransmitCodesEnable OBJECT-TYPE
        SYNTAX TruthValue
        MAX-ACCESS read-write
        STATUS current
        DESCRIPTION
               "This object determines if the idle and seized
                codes are transmitted. If the value of this object
                is true then the codes are transmitted."
 -- 1.3.6.1.2.1.10.81.1.1.7 --  ::= { dsx0ConfigEntry 7 }


dsx0Ds0BundleMappedIfIndex OBJECT-TYPE
        SYNTAX InterfaceIndexOrZero
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
               "This object indicates the ifIndex value assigned
                by the agent for the ds0Bundle(82) ifEntry to
                which the given ds0(81) ifEntry may belong.

                If the given ds0(81) ifEntry does not belong to
                any ds0Bundle(82) ifEntry, then this object has a
                value of zero.

                While this object provides information that can
                also be found in the ifStackTable, it provides
                this same information with a single table lookup,
                rather than by walking the ifStackTable to find
                the possibly non-existent ds0Bundle(82) ifEntry
                that may be stacked above the given ds0(81)
                ifTable entry."
 -- 1.3.6.1.2.1.10.81.1.1.8 --  ::= { dsx0ConfigEntry 8 }


-- The DS0 Channel Mapping Table

dsx0ChanMappingTable OBJECT-TYPE
        SYNTAX SEQUENCE OF Dsx0ChanMappingEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
               "The DS0 Channel Mapping table.  This table maps a
                DS0 channel number on a particular DS1/E1 into an
                ifIndex."
 -- 1.3.6.1.2.1.10.81.3 --  ::= { ds0 3 }


dsx0ChanMappingEntry OBJECT-TYPE
        SYNTAX Dsx0ChanMappingEntry
        MAX-ACCESS not-accessible
        STATUS current
        DESCRIPTION
               "An entry in the DS0 Channel Mapping table.  There
                is an entry in this table corresponding to each
                ds0 ifEntry within any interface that is
                channelized to the individual ds0 ifEntry level.

                This table is intended to facilitate mapping from
                channelized interface / channel number to DS0
                ifEntry.  (e.g. mapping (DS1 ifIndex, DS0 Channel
                Number) -> ifIndex)

                While this table provides information that can
                also be found in the ifStackTable and
                dsx0ConfigTable, it provides this same information
                with a single table lookup, rather than by walking
                the ifStackTable to find the various constituent
                ds0 ifTable entries, and testing various
                dsx0ConfigTable entries to check for the entry
                with the applicable DS0 channel number."
        INDEX {
                ifIndex,
                dsx0Ds0ChannelNumber }
 -- 1.3.6.1.2.1.10.81.3.1 --  ::= { dsx0ChanMappingTable 1 }


Dsx0ChanMappingEntry ::= SEQUENCE {
        dsx0ChanMappedIfIndex InterfaceIndex }


dsx0ChanMappedIfIndex OBJECT-TYPE
        SYNTAX InterfaceIndex
        MAX-ACCESS read-only
        STATUS current
        DESCRIPTION
               "This object indicates the ifIndex value assigned
                by the agent for the individual ds0 ifEntry that
                corresponds to the given DS0 channel number
                (specified by the INDEX element
                dsx0Ds0ChannelNumber) of the given channelized
                interface (specified by INDEX element ifIndex)."
 -- 1.3.6.1.2.1.10.81.3.1.1 --  ::= { dsx0ChanMappingEntry 1 }


-- conformance information

ds0Conformance OBJECT IDENTIFIER 
 -- 1.3.6.1.2.1.10.81.2 --  ::= { ds0 2 }

ds0Groups OBJECT IDENTIFIER 
 -- 1.3.6.1.2.1.10.81.2.1 --  ::= { ds0Conformance 1 }

ds0Compliances OBJECT IDENTIFIER 
 -- 1.3.6.1.2.1.10.81.2.2 --  ::= { ds0Conformance 2 }


-- compliance statements

ds0Compliance MODULE-COMPLIANCE
        STATUS current
        DESCRIPTION
               "The compliance statement for DS0 interfaces."

        MODULE 
        MANDATORY-GROUPS {
                        ds0ConfigGroup }

        OBJECT dsx0RobbedBitSignalling
          MIN-ACCESS read-only
          DESCRIPTION 
               "The ability to set RBS is not required."
        OBJECT dsx0CircuitIdentifier
          MIN-ACCESS read-only
          DESCRIPTION 
               "The ability to set the circuit identifier is not
                required."
        OBJECT dsx0IdleCode
          MIN-ACCESS read-only
          DESCRIPTION 
               "The ability to set the idle code is not
                required."
        OBJECT dsx0SeizedCode
          MIN-ACCESS read-only
          DESCRIPTION 
               "The ability to set the seized code is not
                required."
        OBJECT dsx0TransmitCodesEnable
          MIN-ACCESS read-only
          DESCRIPTION 
               "The ability to enable and disable the
                transmitting of idle and seized codes is not
                required."
 -- 1.3.6.1.2.1.10.81.2.2.1 --  ::= { ds0Compliances 1 }

-- units of conformance

ds0ConfigGroup OBJECT-GROUP
        OBJECTS {
                dsx0Ds0ChannelNumber,
                dsx0RobbedBitSignalling,
                dsx0CircuitIdentifier,
                dsx0IdleCode,
                dsx0SeizedCode,
                dsx0ReceivedCode,
                dsx0TransmitCodesEnable,
                dsx0Ds0BundleMappedIfIndex,
                dsx0ChanMappedIfIndex }
        STATUS current
        DESCRIPTION
               "A collection of objects providing configuration
                information applicable to all DS0 interfaces."
 -- 1.3.6.1.2.1.10.81.2.1.1 --  ::= { ds0Groups 1 }

END
-- 
--    Copyright (C) The Internet Society (1999).  All Rights Reserved.
-- 
--    This document and translations of it may be copied and furnished to
--    others, and derivative works that comment on or otherwise explain it
--    or assist in its implementation may be prepared, copied, published
--    and distributed, in whole or in part, without restriction of any
--    kind, provided that the above copyright notice and this paragraph are
--    included on all such copies and derivative works.  However, this
--    document itself may not be modified in any way, such as by removing
--    the copyright notice or references to the Internet Society or other
--    Internet organizations, except as needed for the purpose of
--    developing Internet standards in which case the procedures for
--    copyrights defined in the Internet Standards process must be
--    followed, or as required to translate it into languages other than
--    English.
-- 
--    The limited permissions granted above are perpetual and will not be
--    revoked by the Internet Society or its successors or assigns.
-- 
--    This document and the information contained herein is provided on an
--    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
--    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
--    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
--    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
--    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.