APPLICATION-MIB
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:15k
源码类别:

SNMP编程

开发平台:

C/C++

  1.    APPLICATION-MIB DEFINITIONS ::= BEGIN
  2.    IMPORTS
  3.        OBJECT-TYPE, Counter32, Gauge32
  4.          FROM SNMPv2-SMI
  5.        mib-2
  6.          FROM RFC1213-MIB
  7.        DisplayString, TimeStamp
  8.          FROM SNMPv2-TC;
  9.    -- Textual conventions
  10.    -- DistinguishedName [5] is used to refer to objects in the
  11.    -- directory.
  12.    DistinguishedName ::= TEXTUAL-CONVENTION
  13.        STATUS current
  14.        DESCRIPTION
  15.            "A Distinguished Name represented in accordance with
  16.             RFC1485."
  17.        SYNTAX DisplayString
  18.    application MODULE-IDENTITY
  19.        LAST-UPDATED "9311280000Z"
  20.        ORGANIZATION "IETF Mail and Directory Management Working Group"
  21.        CONTACT-INFO
  22.          "        Ned Freed
  23.           Postal: Innosoft International, Inc.
  24.                   250 West First Street, Suite 240
  25.                   Claremont, CA  91711
  26.                   US
  27.              Tel: +1 909 624 7907
  28.              Fax: +1 909 621 5319
  29.           E-Mail: ned@innosoft.com"
  30.        DESCRIPTION
  31.          "The MIB module describing network service applications"
  32.        ::= { mib-2 27 }
  33.    -- The basic applTable contains a list of the application
  34.    -- entities.
  35.    applTable OBJECT-TYPE
  36.        SYNTAX SEQUENCE OF ApplEntry
  37.        MAX-ACCESS not-accessible
  38.        STATUS current
  39.        DESCRIPTION
  40.            "The table holding objects which apply to all different
  41.             kinds of applications providing network services."
  42.        ::= {application 1}
  43.    applEntry OBJECT-TYPE
  44.        SYNTAX ApplEntry
  45.        MAX-ACCESS not-accessible
  46.        STATUS current
  47.        DESCRIPTION
  48.          "An entry associated with a network service application."
  49.        INDEX {applIndex}
  50.        ::= {applTable 1}
  51.    ApplEntry ::= SEQUENCE {
  52.        applIndex
  53.            INTEGER,
  54.        applName
  55.            DisplayString,
  56.        applDirectoryName
  57.            DistinguishedName,
  58.        applVersion
  59.            DisplayString,
  60.        applUptime
  61.            TimeStamp,
  62.        applOperStatus
  63.            INTEGER,
  64.        applLastChange
  65.            TimeStamp,
  66.        applInboundAssociations
  67.            Gauge32,
  68.        applOutboundAssociations
  69.            Gauge32,
  70.        applAccumulatedInboundAssociations
  71.            Counter32,
  72.        applAccumulatedOutboundAssociations
  73.            Counter32,
  74.        applLastInboundActivity
  75.            TimeStamp,
  76.        applLastOutboundActivity
  77.            TimeStamp,
  78.        applRejectedInboundAssociations
  79.            Counter32,
  80.        applFailedOutboundAssociations
  81.            Counter32
  82.    }
  83.    applIndex OBJECT-TYPE
  84.        SYNTAX INTEGER (1..2147483647)
  85.        MAX-ACCESS not-accessible
  86.        STATUS current
  87.        DESCRIPTION
  88.          "An index to uniquely identify the network service
  89.           application."
  90.        ::= {applEntry 1}
  91.    applName OBJECT-TYPE
  92.        SYNTAX DisplayString
  93.        MAX-ACCESS read-only
  94.        STATUS current
  95.        DESCRIPTION
  96.          "The name the network service application chooses to be
  97.           known by."
  98.        ::= {applEntry 2}
  99.    applDirectoryName OBJECT-TYPE
  100.        SYNTAX DistinguishedName
  101.        MAX-ACCESS read-only
  102.        STATUS current
  103.        DESCRIPTION
  104.          "The Distinguished Name of the directory entry where
  105.           static information about this application is stored.
  106.           An empty string indicates that no information about
  107.           the application is available in the directory."
  108.        ::= {applEntry 3}
  109.    applVersion OBJECT-TYPE
  110.        SYNTAX DisplayString
  111.        MAX-ACCESS read-only
  112.        STATUS current
  113.        DESCRIPTION
  114.          "The version of network service application software."
  115.        ::= {applEntry 4}
  116.    applUptime OBJECT-TYPE
  117.        SYNTAX TimeStamp
  118.        MAX-ACCESS read-only
  119.        STATUS current
  120.        DESCRIPTION
  121.          "The value of sysUpTime at the time the network service
  122.           application was last initialized.  If the application was
  123.           last initialized prior to the last initialization of the
  124.           network management subsystem, then this object contains
  125.           a zero value."
  126.        ::= {applEntry 5}
  127.    applOperStatus OBJECT-TYPE
  128.        SYNTAX INTEGER {
  129.          up(1),
  130.          down(2),
  131.          halted(3),
  132.          congested(4),
  133.          restarting(5)
  134.        }
  135.        MAX-ACCESS read-only
  136.        STATUS current
  137.        DESCRIPTION
  138.          "Indicates the operational status of the network service
  139.           application. 'down' indicates that the network service is
  140.           not available. 'running' indicates that the network service
  141.           is operational and available.  'halted' indicates that the
  142.           service is operational but not available.  'congested'
  143.           indicates that the service is operational but no additional
  144.           inbound associations can be accomodated.  'restarting'
  145.           indicates that the service is currently unavailable but is
  146.           in the process of restarting and will be available soon."
  147.        ::= {applEntry 6}
  148.    applLastChange OBJECT-TYPE
  149.        SYNTAX TimeStamp
  150.        MAX-ACCESS read-only
  151.        STATUS current
  152.        DESCRIPTION
  153.          "The value of sysUpTime at the time the network service
  154.           application entered its current operational state.  If
  155.           the current state was entered prior to the last
  156.           initialization of the local network management subsystem,
  157.           then this object contains a zero value."
  158.        ::= {applEntry 7}
  159.    applInboundAssociations OBJECT-TYPE
  160.        SYNTAX Gauge32
  161.        MAX-ACCESS read-only
  162.        STATUS current
  163.        DESCRIPTION
  164.          "The number of current associations to the network service
  165.           application, where it is the responder.  For dynamic single
  166.           threaded processes, this will be the number of application
  167.           instances."
  168.        ::= {applEntry 8}
  169.    applOutboundAssociations OBJECT-TYPE
  170.        SYNTAX Gauge32
  171.        MAX-ACCESS read-only
  172.        STATUS current
  173.        DESCRIPTION
  174.          "The number of current associations to the network service
  175.           application, where it is the initiator.  For dynamic single
  176.           threaded processes, this will be the number of application
  177.           instances."
  178.        ::= {applEntry 9}
  179.    applAccumulatedInboundAssociations OBJECT-TYPE
  180.        SYNTAX Counter32
  181.        MAX-ACCESS read-only
  182.        STATUS current
  183.        DESCRIPTION
  184.          "The total number of associations to the application entity
  185.           since application initialization, where it was the responder.
  186.           For  dynamic single threaded processes, this will be the
  187.           number of application instances."
  188.        ::= {applEntry 10}
  189.    applAccumulatedOutboundAssociations OBJECT-TYPE
  190.        SYNTAX Counter32
  191.        MAX-ACCESS read-only
  192.        STATUS current
  193.        DESCRIPTION
  194.          "The total number of associations to the application entity
  195.           since application initialization, where it was the initiator.
  196.           For dynamic single threaded processes, this will be the
  197.           number of application instances."
  198.        ::= {applEntry 11}
  199.    applLastInboundActivity OBJECT-TYPE
  200.        SYNTAX TimeStamp
  201.        MAX-ACCESS read-only
  202.        STATUS current
  203.        DESCRIPTION
  204.          "The value of sysUpTime at the time this application last
  205.           had an inbound association.  If the last association
  206.           occurred prior to the last initialization of the network
  207.           subsystem, then this object contains a zero value."
  208.        ::= {applEntry 12}
  209.    applLastOutboundActivity OBJECT-TYPE
  210.        SYNTAX TimeStamp
  211.        MAX-ACCESS read-only
  212.        STATUS current
  213.        DESCRIPTION
  214.          "The value of sysUpTime at the time this application last
  215.           had an outbound association.  If the last association
  216.           occurred prior to the last initialization of the network
  217.           subsystem, then this object contains a zero value."
  218.        ::= {applEntry 13}
  219.    applRejectedInboundAssociations OBJECT-TYPE
  220.        SYNTAX Counter32
  221.        MAX-ACCESS read-only
  222.        STATUS current
  223.        DESCRIPTION
  224.          "The total number of inbound associations the application
  225.           entity has rejected, since application initialization."
  226.        ::= {applEntry 14}
  227.    applFailedOutboundAssociations OBJECT-TYPE
  228.        SYNTAX Counter32
  229.        MAX-ACCESS read-only
  230.        STATUS current
  231.        DESCRIPTION
  232.          "The total number associations where the application entity
  233.           is initiator and association establishment has failed,
  234.           since application initialization."
  235.        ::= {applEntry 15}
  236.    -- The assocTable augments the information in the applTable
  237.    -- with information about associations.  Note that two levels
  238.    -- of compliance are specified below, depending on whether
  239.    -- association monitoring is mandated.
  240.    assocTable OBJECT-TYPE
  241.        SYNTAX SEQUENCE OF AssocEntry
  242.        MAX-ACCESS not-accessible
  243.        STATUS current
  244.        DESCRIPTION
  245.            "The table holding a set of all active application
  246.             associations."
  247.        ::= {application 2}
  248.    assocEntry OBJECT-TYPE
  249.        SYNTAX AssocEntry
  250.        MAX-ACCESS not-accessible
  251.        STATUS current
  252.        DESCRIPTION
  253.          "An entry associated with an association for a network
  254.           service application."
  255.        INDEX {applIndex, assocIndex}
  256.        ::= {assocTable 1}
  257.    AssocEntry ::= SEQUENCE {
  258.        assocIndex
  259.            INTEGER,
  260.        assocRemoteApplication
  261.            DisplayString,
  262.        assocApplicationProtocol
  263.            OBJECT IDENTIFIER,
  264.        assocApplicationType
  265.            INTEGER,
  266.        assocDuration
  267.            TimeStamp
  268.    }
  269.    assocIndex OBJECT-TYPE
  270.        SYNTAX INTEGER (1..2147483647)
  271.        MAX-ACCESS not-accessible
  272.        STATUS current
  273.        DESCRIPTION
  274.          "An index to uniquely identify each association for a network
  275.           service application."
  276.        ::= {assocEntry 1}
  277.    assocRemoteApplication OBJECT-TYPE
  278.        SYNTAX DisplayString
  279.        MAX-ACCESS read-only
  280.        STATUS current
  281.        DESCRIPTION
  282.          "The name of the system running remote network service
  283.           application.  For an IP-based application this should be
  284.           either a domain name or IP address.  For an OSI application
  285.           it should be the string encoded distinguished name of the
  286.           managed object.  For X.400(84) MTAs which do not have a
  287.           Distinguished Name, the RFC1327 [6] syntax
  288.           'mta in globalid' should be used."
  289.        ::= {assocEntry 2}
  290.    assocApplicationProtocol OBJECT-TYPE
  291.        SYNTAX OBJECT IDENTIFIER
  292.        MAX-ACCESS read-only
  293.        STATUS current
  294.        DESCRIPTION
  295.          "An identification of the protocol being used for the
  296.           application.  For an OSI Application, this will be the
  297.           Application Context.  For Internet applications, the IANA
  298.           maintains a registry of the OIDs which correspond to
  299.           well-known applications.  If the application protocol is
  300.           not listed in the registry, an OID value of the form
  301.           {applTCPProtoID port} or {applUDProtoID port} are used for
  302.           TCP-based and UDP-based protocols, respectively. In either
  303.           case 'port' corresponds to the primary port number being
  304.           used by the protocol."
  305.        ::= {assocEntry 3}
  306.    assocApplicationType OBJECT-TYPE
  307.        SYNTAX INTEGER {
  308.            ua-initiator(1),
  309.            ua-responder(2),
  310.            peer-initiator(3),
  311.            peer-responder(4)}
  312.        MAX-ACCESS read-only
  313.        STATUS current
  314.        DESCRIPTION
  315.          "This indicates whether the remote application is some type of
  316.           client making use of this network service (e.g. a User Agent)
  317.           or a server acting as a peer. Also indicated is whether the
  318.           remote end initiated an incoming connection to the network
  319.           service or responded to an outgoing connection made by the
  320.           local application."
  321.        ::= {assocEntry 4}
  322.    assocDuration OBJECT-TYPE
  323.        SYNTAX TimeStamp
  324.        MAX-ACCESS read-only
  325.        STATUS current
  326.        DESCRIPTION
  327.          "The value of sysUpTime at the time this association was
  328.           started.  If this association started prior to the last
  329.           initialization of the network subsystem, then this
  330.           object contains a zero value."
  331.        ::= {assocEntry 5}
  332.    -- Conformance information
  333.    applConformance OBJECT IDENTIFIER ::= {application 3}
  334.    applGroups      OBJECT IDENTIFIER ::= {applConformance 1}
  335.    applCompliances OBJECT IDENTIFIER ::= {applConformance 2}
  336.    -- Compliance statements
  337.    applCompliance MODULE-COMPLIANCE
  338.        STATUS current
  339.        DESCRIPTION
  340.          "The compliance statement for SNMPv2 entities
  341.           which implement the Network Services Monitoring MIB
  342.           for basic monitoring of network service applications."
  343.        MODULE  -- this module
  344.          MANDATORY-GROUPS {applGroup}
  345.        ::= {applCompliances 1}
  346.    assocCompliance MODULE-COMPLIANCE
  347.        STATUS current
  348.        DESCRIPTION
  349.          "The compliance statement for SNMPv2 entities which
  350.           implement the Network Services Monitoring MIB for basic
  351.           monitoring of network service applications and their
  352.           associations."
  353.        MODULE  -- this module
  354.          MANDATORY-GROUPS {applGroup, assocGroup}
  355.        ::= {applCompliances 2}
  356.   -- Units of conformance
  357.    applGroup OBJECT-GROUP
  358.        OBJECTS {
  359.          applName, applVersion, applUptime, applOperStatus,
  360.          applLastChange, applInboundAssociations,
  361.          applOutboundAssociations, applAccumulatedInboundAssociations,
  362.          applAccumulatedOutboundAssociations, applLastInboundActivity,
  363.          applLastOutboundActivity, applRejectedInboundAssociations,
  364.          applFailedOutboundAssociations}
  365.        STATUS current
  366.        DESCRIPTION
  367.          "A collection of objects providing basic monitoring of
  368.           network service applications."
  369.        ::= {applGroups 1}
  370.    assocGroup OBJECT-GROUP
  371.        OBJECTS {
  372.          assocRemoteApplication, assocApplicationProtocol,
  373.          assocApplicationType, assocDuration}
  374.        STATUS current
  375.        DESCRIPTION
  376.          "A collection of objects providing basic monitoring of
  377.           network service applications' associations."
  378.        ::= {applGroups 2}
  379.    -- OIDs of the form {applTCPProtoID port} are intended to be used
  380.    -- for TCP-based protocols that don't have OIDs assigned by other
  381.    -- means. {applUDPProtoID port} serves the same purpose for
  382.    -- UDP-based protocols. In either case 'port' corresponds to
  383.    -- the primary port number being used by the protocol. For example,
  384.    -- assuming no other OID is assigned for SMTP, an OID of
  385.    -- {applTCPProtoID 25} could be used, since SMTP is a TCP-based
  386.    -- protocol that uses port 25 as its primary port.
  387.    applTCPProtoID OBJECT IDENTIFIER ::= {application 4}
  388.    applUDPProtoID OBJECT IDENTIFIER ::= {application 5}
  389.    END