rfc2513.txt

来自「RFC 的详细文档!」· 文本 代码 · 共 1,628 行 · 第 1/5 页

TXT
1,628 行
字号
                           -- header information
          sysName               -- name of the switch
              DisplayString,

          description           -- textual description of the collection
              DisplayString,

          startTime             -- start time of the collection



McCloghrie, et. al.         Standards Track                     [Page 6]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


              DateAndTime,

          SEQUENCE OF {         -- sequence of (subtree, list) tuples
              SEQUENCE {
                  subtree
                      OBJECT IDENTIFIER,
                  list
                      OCTET STRING
              }
          }
                           -- sequence of connection records
          SEQUENCE OF {
                                -- each record containing a sequence
              SEQUENCE OF {     -- per identified tuple

                  SEQUENCE OF {     -- each per-tuple sequence containing
                      value         -- a sequence of object values
                          ObjectSyntax
                  }
              }
          }
      }

   where:

   (1)  the value of the sysName component is that of the sysName object
        in the System group [16].

   (2)  each (subtree, list) specifies the set of objects contained in
        that tuple's sequence within each and every connection record.

   (3)  the tuples' sequences within each connection record occur in the
        same order as the (subtree, list) tuples occur in the header
        information.

   (4)  the object values within each connection record occur in the
        same order as they are represented by the bits in the
        corresponding list value.

   (5)  ObjectSyntax is defined by the SMIv2 [5].

   (6)  One particular category of object values deserves special
        attention: an object defined to hold the checksum value of an
        accounting record (e.g., atmAcctngRecordCrc16, defined in [19]).
        An object in this category will generally have a SYNTAX of a
        fixed-length OCTET STRING, and have its value initialized to the
        string of all zeros when composing the accounting record
        containing it, with the location of these zeros being saved.



McCloghrie, et. al.         Standards Track                     [Page 7]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


        Once the record is generated, the checksum is calculated over
        the whole connection record (including the starting SEQUENCE OF
        and the trailing end-of-contents octets, if used), and then the
        zeros are overwritten (at the saved location) by the calculated
        value of the checksum.

   The encoding of the above syntax using the Basic Encoding Rules is
   the same as defined by the SNMPv2 [10], with the following exception:

     - when encoding the length field for a structured type, i.e., a
       SEQUENCE or SEQUENCE OF, the indefinite form encoding is
       permitted.

   For example, the file containing the data:

   [1] IMPLICIT SEQUENCE     a1 80
         OCTET STRING        04 09 73 77 69 74 63 68 2d 31 32
         OCTET STRING        04 0a 41 63 63 6f 75 6e 74 69 6e 67
         OCTET STRING        04 08 07 cc 07 14 10 05 00 00
         SEQUENCE OF         30 0e
           SEQUENCE             30 0c
             OBJECT IDENTIFIER     06 07 2b 06 01 03 7f 01 01
             OCTET STRING          04 01 c0
         SEQUENCE OF         30 80
           SEQUENCE OF          30 08
             SEQUENCE OF           30 06
               INTEGER                02 01 00
               INTEGER                02 01 21
           SEQUENCE OF          30 08
             SEQUENCE OF           30 06
               INTEGER                02 01 00
               INTEGER                02 01 22
         end-of-contents     00 00
       end-of-contents       00 00

   contains two connection records, each containing one tuple listing
   two (integer) data items in a (fictitious) subtree:
   1.3.6.1.3.127.1.1.  Its header indicates it's for "switch-12", with
   description "Accounting", and was collected at 16:05:00 on 20 July
   1996.

   As well as the standard format defined above, the MIB allows other
   enterprise-specific formats to be used.








McCloghrie, et. al.         Standards Track                     [Page 8]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


4.  Definitions

ACCOUNTING-CONTROL-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
    mib-2, Integer32                              FROM SNMPv2-SMI
    TEXTUAL-CONVENTION, RowStatus, TestAndIncr,
    DisplayString, TruthValue                     FROM SNMPv2-TC
    MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP
                                                  FROM SNMPv2-CONF
    ifIndex                                       FROM IF-MIB;


accountingControlMIB MODULE-IDENTITY
    LAST-UPDATED "9809281000Z"
    ORGANIZATION "IETF AToM MIB Working Group"
    CONTACT-INFO "Keith McCloghrie
                  Cisco Systems, Inc.
                  170 West Tasman Drive,
                  San Jose CA 95134-1706.
                  Phone: +1 408 526 5260
                  Email: kzm@cisco.com"
    DESCRIPTION
            "The MIB module for managing the collection and storage of
            accounting information for connections in a connection-
            oriented network such as ATM."
    ::= { mib-2 60 }


acctngMIBObjects       OBJECT IDENTIFIER ::= { accountingControlMIB 1 }

acctngSelectionControl OBJECT IDENTIFIER ::= { acctngMIBObjects 1 }
acctngFileControl      OBJECT IDENTIFIER ::= { acctngMIBObjects 2 }
acctngInterfaceControl OBJECT IDENTIFIER ::= { acctngMIBObjects 3 }
acctngTrapControl      OBJECT IDENTIFIER ::= { acctngMIBObjects 4 }

-- Textual Conventions


DataCollectionSubtree ::= TEXTUAL-CONVENTION
    STATUS       current
    DESCRIPTION
            "The subtree component of a (subtree, list) tuple.  Such a
            (subtree, list) tuple defines a set of objects and their
            values to be collected as accounting data for a connection.
            The subtree specifies a single OBJECT IDENTIFIER value such
            that each object in the set is named by the subtree value



McCloghrie, et. al.         Standards Track                     [Page 9]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


            appended with a single additional sub-identifier."
    SYNTAX       OBJECT IDENTIFIER

DataCollectionList ::= TEXTUAL-CONVENTION
    STATUS       current
    DESCRIPTION
            "The list component of a (subtree, list) tuple.  Such a
            (subtree, list) tuple defines a set of objects and their
            values to be collected as accounting data for a connection.
            The subtree specifies a single OBJECT IDENTIFIER value such
            that each object in the set is named by the subtree value
            appended with a single additional sub-identifier.  The list
            specifies a set of data items, where the presence of an item
            in the list indicates that the item is (to be) present in
            the data collected for a connection; the absence of an item
            from the list indicates that the item is not (to be) present
            in the data collected for a connection.  Each data item is
            represented by an integer which when appended (as as
            additional sub-identifier) to the OBJECT IDENTIFIER value of
            the subtree identified by the tuple, is the name of an
            object defining that data item (its description and its
            syntax).

            The list is specified as an OCTET STRING in which each data
            item is represented by a single bit, where data items 1
            through 8 are represented by the bits in the first octet,
            data items 9 through 16 by the bits in the second octet,
            etc.  In each octet, the lowest numbered data item is
            represented by the most significant bit, and the highest
            numbered data item by the least significant bit.  A data
            item is present in the list when its bit is set, and absent
            when its bit is reset.  If the length of an OCTET STRING
            value is too short to represent one or more data items
            defined in a subtree, then those data items are absent from
            the set identified by the tuple of that subtree and that
            OCTET STRING value."
    SYNTAX       OCTET STRING (SIZE(0..8))

FileIndex ::= TEXTUAL-CONVENTION
    STATUS       current
    DESCRIPTION
            "An arbitrary integer value identifying a file into which
            accounting data is being collected."
    SYNTAX       Integer32 (1..65535)


-- The Accounting Information Selection table




McCloghrie, et. al.         Standards Track                    [Page 10]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


acctngSelectionTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF AcctngSelectionEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "A list of accounting information selection entries.

            Note that additions, modifications and deletions of entries
            in this table can occur at any time, but such changes only
            take effect on the next occasion when collection begins into
            a new file.  Thus, between modification and the next 'swap',
            the content of this table does not reflect the current
            selection."
    ::= { acctngSelectionControl 1 }

acctngSelectionEntry OBJECT-TYPE
    SYNTAX      AcctngSelectionEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "An entry identifying an (subtree, list) tuple used to
            select a set of accounting information which is to be
            collected."
    INDEX   { acctngSelectionIndex }
    ::= { acctngSelectionTable 1 }

AcctngSelectionEntry ::=
    SEQUENCE {
        acctngSelectionIndex     Integer32,
        acctngSelectionSubtree   DataCollectionSubtree,
        acctngSelectionList      DataCollectionList,
        acctngSelectionFile      FileIndex,
        acctngSelectionType      BITS,
        acctngSelectionRowStatus RowStatus
    }

acctngSelectionIndex OBJECT-TYPE
    SYNTAX      Integer32 (1..65535)
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            "An arbitrary integer value which uniquely identifies a
            tuple stored in this table.  This value is required to be
            the permanent 'handle' for an entry in this table for as
            long as that entry exists, including across restarts and
            power outages."
    ::= { acctngSelectionEntry 1 }




McCloghrie, et. al.         Standards Track                    [Page 11]

RFC 2513           Connection-Oriented Accounting MIB      February 1999


acctngSelectionSubtree OBJECT-TYPE
    SYNTAX      DataCollectionSubtree
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
            "The combination of acctngSelectionSubtree and
            acctngSelectionList specifies one (subtree, list) tuple
            which is to be collected."
    ::= { acctngSelectionEntry 2 }

acctngSelectionList OBJECT-TYPE
    SYNTAX      DataCollectionList
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
            "The combination of acctngSelectionSubtree and
            acctngSelectionList specifies one (subtree, list) tuple
            which is to be collected."
    ::= { acctngSelectionEntry 3 }

acctngSelectionFile OBJECT-TYPE
    SYNTAX      FileIndex
    MAX-ACCESS  read-create
    STATUS      current
    DESCRIPTION
            "An indication of the file into which the accounting
            information identified by this entry is to be stored.  If
            there is no conceptual row in the acctngFileTable for which
            the value of acctngFileIndex has the same value as this
            object, then the information selected by this entry is not

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?