⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udp-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 2 页
字号:
            1. For an application that is willing to accept both               IPv4 and IPv6 datagrams, the value of this object               must be ''h (a zero-length octet-string), with               the value of the corresponding instance of the               udpEndpointLocalAddressType object being unknown(0).            2. For an application that is willing to accept only IPv4               or only IPv6 datagrams, the value of this object               must be '0.0.0.0' or '::', respectively, while the               corresponding instance of the               udpEndpointLocalAddressType object represents the               appropriate address type.            3. For an application that is listening for data               destined only to a specific IP address, the value               of this object is the specific IP address for which               this node is receiving packets, with the               corresponding instance of the               udpEndpointLocalAddressType object representing the               appropriate address type.            As this object is used in the index for the            udpEndpointTable, implementors of this table should be            careful not to create entries that would result in OIDs            with more than 128 subidentifiers; else the information            cannot be accessed using SNMPv1, SNMPv2c, or SNMPv3."    ::= { udpEndpointEntry 2 }udpEndpointLocalPort OBJECT-TYPE    SYNTAX     InetPortNumber    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION           "The local port number for this UDP endpoint."    ::= { udpEndpointEntry 3 }udpEndpointRemoteAddressType OBJECT-TYPE    SYNTAX     InetAddressType    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION           "The address type of udpEndpointRemoteAddress.  Only            IPv4, IPv4z, IPv6, and IPv6z addresses are expected, or            unknown(0) if datagrams for all remote IP addresses are            accepted.  Also, note that some combinations of            udpEndpointLocalAdressType and            udpEndpointRemoteAddressType are not supported.  In            particular, if the value of this object is not            unknown(0), it is expected to always refer to the            same IP version as udpEndpointLocalAddressType."    ::= { udpEndpointEntry 4 }udpEndpointRemoteAddress OBJECT-TYPE    SYNTAX     InetAddress    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION           "The remote IP address for this UDP endpoint.  If            datagrams from any remote system are to be accepted,            this value is ''h (a zero-length octet-string).            Otherwise, it has the type described by            udpEndpointRemoteAddressType and is the address of the            remote system from which datagrams are to be accepted            (or to which all datagrams will be sent).            As this object is used in the index for the            udpEndpointTable, implementors of this table should be            careful not to create entries that would result in OIDs            with more than 128 subidentifiers; else the information            cannot be accessed using SNMPv1, SNMPv2c, or SNMPv3."    ::= { udpEndpointEntry 5 }udpEndpointRemotePort OBJECT-TYPE    SYNTAX     InetPortNumber    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION           "The remote port number for this UDP endpoint.  If            datagrams from any remote system are to be accepted,            this value is zero."    ::= { udpEndpointEntry 6 }udpEndpointInstance OBJECT-TYPE    SYNTAX     Unsigned32 (1..'ffffffff'h)    MAX-ACCESS not-accessible    STATUS     current    DESCRIPTION           "The instance of this tuple.  This object is used to            distinguish among multiple processes 'connected' to            the same UDP endpoint.  For example, on a system            implementing the BSD sockets interface, this would be            used to support the SO_REUSEADDR and SO_REUSEPORT            socket options."    ::= { udpEndpointEntry 7 }udpEndpointProcess OBJECT-TYPE    SYNTAX     Unsigned32    MAX-ACCESS read-only    STATUS     current    DESCRIPTION           "The system's process ID for the process associated with            this endpoint, or zero if there is no such process.            This value is expected to be the same as            HOST-RESOURCES-MIB::hrSWRunIndex or SYSAPPL-MIB::            sysApplElmtRunIndex for some row in the appropriate            tables."    ::= { udpEndpointEntry 8 }-- The deprecated UDP Listener table-- The deprecated UDP listener table only contains information-- about this entity's IPv4 UDP end-points on which a local-- application is currently accepting datagrams.  It does not-- provide more detailed connection information, or information-- about IPv6 endpoints.udpTable OBJECT-TYPE    SYNTAX     SEQUENCE OF UdpEntry    MAX-ACCESS not-accessible    STATUS     deprecated    DESCRIPTION           "A table containing IPv4-specific UDP listener            information.  It contains information about all local            IPv4 UDP end-points on which an application is            currently accepting datagrams.  This table has been            deprecated in favor of the version neutral            udpEndpointTable."    ::= { udp 5 }udpEntry OBJECT-TYPE    SYNTAX     UdpEntry    MAX-ACCESS not-accessible    STATUS     deprecated    DESCRIPTION           "Information about a particular current UDP listener."    INDEX   { udpLocalAddress, udpLocalPort }    ::= { udpTable 1 }UdpEntry ::= SEQUENCE {    udpLocalAddress   IpAddress,    udpLocalPort      Integer32}udpLocalAddress OBJECT-TYPE    SYNTAX     IpAddress    MAX-ACCESS read-only    STATUS     deprecated    DESCRIPTION           "The local IP address for this UDP listener.  In the            case of a UDP listener that is willing to accept            datagrams for any IP interface associated with the            node, the value 0.0.0.0 is used."    ::= { udpEntry 1 }udpLocalPort OBJECT-TYPE    SYNTAX     Integer32 (0..65535)    MAX-ACCESS read-only    STATUS     deprecated    DESCRIPTION           "The local port number for this UDP listener."    ::= { udpEntry 2 }-- conformance informationudpMIBConformance OBJECT IDENTIFIER ::= { udpMIB 2 }udpMIBCompliances OBJECT IDENTIFIER ::= { udpMIBConformance 1 }udpMIBGroups      OBJECT IDENTIFIER ::= { udpMIBConformance 2 }-- compliance statementsudpMIBCompliance2 MODULE-COMPLIANCE    STATUS     current    DESCRIPTION           "The compliance statement for systems that implement            UDP.            There are a number of INDEX objects that cannot be            represented in the form of OBJECT clauses in SMIv2, but            for which we have the following compliance            requirements, expressed in OBJECT clause form in this            description clause:            -- OBJECT      udpEndpointLocalAddressType            -- SYNTAX      InetAddressType { unknown(0), ipv4(1),            --                               ipv6(2), ipv4z(3),            --                               ipv6z(4) }            -- DESCRIPTION            --     Support for dns(5) is not required.            -- OBJECT      udpEndpointLocalAddress            -- SYNTAX      InetAddress (SIZE(0|4|8|16|20))            -- DESCRIPTION            --     Support is only required for zero-length            --     octet-strings, and for scoped and unscoped            --     IPv4 and IPv6 addresses.            -- OBJECT      udpEndpointRemoteAddressType            -- SYNTAX      InetAddressType { unknown(0), ipv4(1),            --                               ipv6(2), ipv4z(3),            --                               ipv6z(4) }            -- DESCRIPTION            --     Support for dns(5) is not required.            -- OBJECT      udpEndpointRemoteAddress            -- SYNTAX      InetAddress (SIZE(0|4|8|16|20))            -- DESCRIPTION            --     Support is only required for zero-length            --     octet-strings, and for scoped and unscoped            --     IPv4 and IPv6 addresses.           "    MODULE  -- this module         MANDATORY-GROUPS { udpBaseGroup, udpEndpointGroup }         GROUP       udpHCGroup         DESCRIPTION                "This group is mandatory for systems that                 are capable of receiving or transmitting more than                 1 million UDP datagrams per second.  1 million                 datagrams per second will cause a Counter32 to                 wrap in just over an hour."    ::= { udpMIBCompliances 2 }udpMIBCompliance MODULE-COMPLIANCE    STATUS     deprecated    DESCRIPTION           "The compliance statement for IPv4-only systems that            implement UDP.  For IP version independence, this            compliance statement is deprecated in favor of            udpMIBCompliance2.  However, agents are still            encouraged to implement these objects in order to            interoperate with the deployed base of managers."    MODULE  -- this module        MANDATORY-GROUPS { udpGroup }    ::= { udpMIBCompliances 1 }-- units of conformanceudpGroup OBJECT-GROUP    OBJECTS   { udpInDatagrams, udpNoPorts,                udpInErrors, udpOutDatagrams,                udpLocalAddress, udpLocalPort }    STATUS     deprecated    DESCRIPTION           "The deprecated group of objects providing for            management of UDP over IPv4."    ::= { udpMIBGroups 1 }udpBaseGroup OBJECT-GROUP    OBJECTS   { udpInDatagrams, udpNoPorts, udpInErrors,                udpOutDatagrams }    STATUS     current    DESCRIPTION           "The group of objects providing for counters of UDP            statistics."    ::= { udpMIBGroups 2 }udpHCGroup OBJECT-GROUP    OBJECTS   { udpHCInDatagrams, udpHCOutDatagrams }    STATUS     current    DESCRIPTION           "The group of objects providing for counters of high            speed UDP implementations."    ::= { udpMIBGroups 3 }udpEndpointGroup OBJECT-GROUP    OBJECTS    { udpEndpointProcess }    STATUS     current    DESCRIPTION           "The group of objects providing for the IP version            independent management of UDP 'endpoints'."    ::= { udpMIBGroups 4 }END

⌨️ 快捷键说明

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