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

📄 disman-nslookup-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 2 页
字号:
DISMAN-NSLOOKUP-MIB DEFINITIONS ::= BEGINIMPORTS    MODULE-IDENTITY, OBJECT-TYPE,    Unsigned32, mib-2, Integer32        FROM SNMPv2-SMI                  -- RFC2578    RowStatus        FROM SNMPv2-TC                   -- RFC2579    MODULE-COMPLIANCE, OBJECT-GROUP        FROM SNMPv2-CONF                 -- RFC2580    SnmpAdminString        FROM SNMP-FRAMEWORK-MIB          -- RFC2571    InetAddressType, InetAddress        FROM INET-ADDRESS-MIB;           -- RFC2851 lookupMIB MODULE-IDENTITY    LAST-UPDATED "200009210000Z"         -- 21 September 2000    ORGANIZATION "IETF Distributed Management Working Group"    CONTACT-INFO        "Kenneth White        International Business Machines Corporation        Network Computing Software Division        Research Triangle Park, NC, USA        E-mail: wkenneth@us.ibm.com"    DESCRIPTION        "The Lookup MIB (DISMAN-NSLOOKUP-MIB) enables determination        of either the name(s) corresponding to a host address or of        the address(es) associated with a host name at a remote host."     --  Revision history     REVISION     "200009210000Z"         -- 21 September 2000     DESCRIPTION         "Initial version, published as RFC 2925."    ::= { mib-2 82 } -- Top level structure of the MIB lookupObjects        OBJECT IDENTIFIER ::= { lookupMIB 1 } lookupConformance    OBJECT IDENTIFIER ::= { lookupMIB 2 } -- Simple Object Definitions lookupMaxConcurrentRequests OBJECT-TYPE    SYNTAX      Unsigned32    UNITS       "requests"    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION       "The maximum number of concurrent active lookup requests       that are allowed within an agent implementation.  A value       of 0 for this object implies that there is no limit for       the number of concurrent active requests in effect."    DEFVAL { 10 }    ::= { lookupObjects 1 } lookupPurgeTime OBJECT-TYPE    SYNTAX      Unsigned32 (0..86400)    UNITS       "seconds"    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION       "The amount of time to wait before automatically       deleting an entry in the lookupCtlTable and any       dependent lookupResultsTable entries       after the lookup operation represented by an       lookupCtlEntry has completed.       An lookupCtEntry is considered complete       when its lookupCtlOperStatus object has a       value of completed(3)."    DEFVAL { 900 }  -- 15 minutes as default    ::= { lookupObjects 2 } -- Lookup Control Table lookupCtlTable OBJECT-TYPE    SYNTAX      SEQUENCE OF LookupCtlEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "Defines the Lookup Control Table for providing        the capability of performing a lookup operation,        gethostbyname or gethostbyaddr, from a remote host."   ::= { lookupObjects 3 } lookupCtlEntry OBJECT-TYPE    SYNTAX      LookupCtlEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "Defines an entry in the lookupCtlTable.  A        lookupCtlEntry is initially indexed by        lookupCtlOwnerIndex, which is of type SnmpAdminString,        a textual convention that allows for use of the SNMPv3        View-Based Access Control Model (RFC 2575 [11], VACM)        and also allows an management application to identify        its entries.  The second index element,        lookupCtlOperationName, enables the same        lookupCtlOwnerIndex entity to have multiple outstanding        requests.        The value of lookupCtlTargetAddressType determines which        lookup function to perform.  Specification of dns(16)        as the value of this index implies that the gethostbyname        function should be performed to determine the numeric        addresses associated with a symbolic name via        lookupResultsTable entries.  Use of a value of either        ipv4(1) or ipv6(2) implies that the gethostbyaddr function        should be performed to determine the symbolic name(s)        associated with a numeric address at a remote host."    INDEX {             lookupCtlOwnerIndex,             lookupCtlOperationName          }    ::= { lookupCtlTable 1 } LookupCtlEntry ::=    SEQUENCE {        lookupCtlOwnerIndex         SnmpAdminString,        lookupCtlOperationName      SnmpAdminString,        lookupCtlTargetAddressType  InetAddressType,        lookupCtlTargetAddress      InetAddress,        lookupCtlOperStatus         INTEGER,        lookupCtlTime               Unsigned32,        lookupCtlRc                 Integer32,        lookupCtlRowStatus          RowStatus    } lookupCtlOwnerIndex OBJECT-TYPE    SYNTAX      SnmpAdminString (SIZE(0..32))    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION       "To facilitate the provisioning of access control by a       security administrator using the View-Based Access       Control Model (RFC 2575, VACM) for tables in which       multiple users may need to independently create or       modify entries, the initial index is used as an 'owner       index'.  Such an initial index has a syntax of       SnmpAdminString, and can thus be trivially mapped to a       securityName or groupName as defined in VACM, in       accordance with a security policy.       When used in conjunction with such a security policy all       entries in the table belonging to a particular user (or       group) will have the same value for this initial index.       For a given user's entries in a particular table, the       object identifiers for the information in these entries       will have the same subidentifiers (except for the       'column' subidentifier) up to the end of the encoded       owner index. To configure VACM to permit access to this       portion of the table, one would create       vacmViewTreeFamilyTable entries with the value of       vacmViewTreeFamilySubtree including the owner index       portion, and vacmViewTreeFamilyMask 'wildcarding' the       column subidentifier.  More elaborate configurations       are possible."    ::= { lookupCtlEntry 1 } lookupCtlOperationName OBJECT-TYPE    SYNTAX      SnmpAdminString (SIZE(0..32))    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION        "The name of a lookup operation.  This is locally unique,        within the scope of an lookupCtlOwnerIndex."    ::= { lookupCtlEntry 2 } lookupCtlTargetAddressType OBJECT-TYPE    SYNTAX      InetAddressType    MAX-ACCESS  read-create    STATUS      current    DESCRIPTION        "Specifies the type of address for either performing a        gethostbyname or a gethostbyaddr function at a remote host.        Specification of dns(16) as the value for this object        means that the gethostbyname function should be performed        to return one or more numeric addresses.  Use of a value        of either ipv4(1) or ipv6(2) means that the gethostbyaddr        function should be used to return the symbolic names        associated with a remote host."    ::= { lookupCtlEntry 3 } lookupCtlTargetAddress OBJECT-TYPE    SYNTAX      InetAddress    MAX-ACCESS  read-create    STATUS      current    DESCRIPTION        "Specifies the address used for a resolver lookup at a        remote host.  The corresponding lookupCtlAddressType        objects determines its type as well as the function        that can be requested.        A value for this object MUST be set prior to        transitioning its corresponding lookupCtlEntry to        active(1) via lookupCtlRowStatus."    ::= { lookupCtlEntry 4 } lookupCtlOperStatus OBJECT-TYPE    SYNTAX      INTEGER {                   notStarted(2), -- operation has not started                   completed(3)   -- operation is done                }    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "Reflects the operational state of an lookupCtlEntry:           enabled(1)    - Operation is active.           notStarted(2) - Operation has not been enabled.           completed(3)  - Operation has completed.         An operation is automatically enabled(1) when its         lookupCtlRowStatus object is transitioned to active(1)         status.  Until this occurs lookupCtlOperStatus MUST         report a value of notStarted(2).  After the lookup         operation completes (success or failure) the value         for lookupCtlOperStatus MUST be transitioned to

⌨️ 快捷键说明

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