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

📄 appletalk-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 5 页
字号:
--       format of DdpNodeAddress--     serialPPP: null OCTET STRING--     serialNonstandard: vendor specific--     aurp: see AURP MIB to determine format--     frameRelay: 32 bit DLCI in network byte order--       (OCTET STRING (SIZE (4)))--     x25: X121Address (see RFC 1382)--     ip: IP address (OCTET STRING (SIZE (4)))--     osi: NSAP (OCTET STRING (SIZE (3..20)))--     decnetIV: 6 bit area, 10 bit host in network byte order--       (OCTET STRING (SIZE (2)))--     arap: ???--     nonAppleTalk3Com: based on ifType--     ipx: 32 bit network number in network byte order--       followed by datalink address of host--     arns: 32 bit ARNS header--     hdlc: DdpNodeAddress or null OCTET STRINGatportType OBJECT-TYPE    SYNTAX INTEGER {         other(1),       -- none of the following         localtalk(2),         ethertalk1(3),         ethertalk2(4),         tokentalk(5),         iptalk(6),         serialPPP(7),         serialNonstandard(8),         virtual(9),    -- an internal interface         fdditalk(10),         arctalk(11),         smdstalk(12),         aurp(13),         frameRelay(14),         x25(15),         ip(16),         osi(17),         decnetIV(18),         arap(19),         isdnInThePacketMode(20),         nonAppleTalk3Com(21),         ipx(22),         arns(23),         hdlc(24)    }    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The type of port, distinguished by the protocol        immediately below DDP in the protocol stack."    ::= { atportEntry 3 }atportNetStart OBJECT-TYPE    SYNTAX ATNetworkNumber    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The first AppleTalk network address in the range        configured for this port.  If this port is not a        native AppleTalk port, this object shall have the        value of two octets of zero."    ::= { atportEntry 4 }atportNetEnd OBJECT-TYPE    SYNTAX ATNetworkNumber    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The last AppleTalk network address in the range        configured for this port.  If the network to which        this AppleTalk port is connected is a non-extended        network, or if it is not a native AppleTalk port,        the value for atportNetEnd shall be two octets of        zero."    ::= { atportEntry 5 }atportNetAddress OBJECT-TYPE    SYNTAX DdpNodeAddress    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The AppleTalk network address configured for this        port.  In addition, this value may be used as a hint        for an initial node number used during node-finding.        If this port is not a native AppleTalk port, this        object shall have the value of three octets of zero."    ::= { atportEntry 6 }atportStatus OBJECT-TYPE    SYNTAX INTEGER {         routing(1), --this port is fully configured & routing         unconfigured(2),         off(3),         invalid(4),         endNode(5), -- this port is acting as an end node         offDueToConflict(6), -- port is off due to                      -- configuration conflict         other(7) -- none of the states defined above    }    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The configuration status of this port.        Setting this object to the value invalid(4) has the        effect of invalidating the corresponding entry in the        atportTable.  That is, it effectively disassociates the        mapping identified with said entry.  It is an        implementation-specific matter as to whether the agent        removes an invalidated entry from the table.        Accordingly, management stations must be prepared to        receive from agents tabular information corresponding        to entries not currently in use.  Proper        interpretation of such entries requires examination        of the relevant atportStatus object."    ::= { atportEntry 7 }atportNetConfig OBJECT-TYPE    SYNTAX INTEGER {        conflictOrientedSeed(1),  -- use configured network              -- range even if it conflicts with another              -- AppleTalk device        garnered(2), -- acquire from another AppleTalk device        guessed(3),  -- generate a "random" network range        unconfigured(4), -- no other value applies        conflictAverseSeed(5),  -- use configured network              -- range, but don't come up if it conflicts        softSeed(6)  -- attempt to use configured network              -- range, but use network range from another              -- router if our configuration conflicts    }    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The status of the network information for this port.        If this port is not a native AppleTalk port, this        object shall have the value unconfigured(4)."    ::= { atportEntry 8 }atportZoneConfig OBJECT-TYPE    SYNTAX INTEGER {        conflictOrientedSeed(1), -- use configured zone             -- information even if it conflicts with             -- another AppleTalk device        garnered(2), -- acquire from another AppleTalk device        guessed(3),  -- generate "random" zone information        unconfigured(4), -- no other value applies        conflictAverseSeed(5),  -- use configured zone              -- information, but don't come up if it              -- conflicts        softSeed(6)  -- attempt to use configured zone              -- information, but use zone information              -- from another router if our configuration              -- conflicts    }    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The status of the zone information for this port.        If this port is not a native AppleTalk port, this        object shall have the value unconfigured(4)."    ::= { atportEntry 9 }atportZoneDefault OBJECT-TYPE    SYNTAX ATName    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The name of the default zone for this port.  If        this port only has one zone, that zone is        represented here. If this port is not a native        AppleTalk port, this object shall contain an octet        string of zero length.        When this value is changed in a router, the router        must send a zipNotify packet on the associated        network."    ::= { atportEntry 10 }atportIfIndex OBJECT-TYPE    SYNTAX INTEGER    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The physical interface associated with this        AppleTalk port.  The interface identified by a        particular value of this index is the same interface        as identified by the same value of ifIndex."    ::= { atportEntry 11 }atportNetFrom OBJECT-TYPE    SYNTAX DdpNodeAddress    ACCESS read-only    STATUS mandatory    DESCRIPTION        "When atportNetConfig is set to garnered(2), this        variable contains the DDP address of an entity from        which the AppleTalk network number was garnered.        When atportNetConfig is set to        conflictOrientedSeed(1), conflictAverseSeed(5),        or softSeed(6), this variable contains the DDP        address of an entity which confirmed or supplied our        AppleTalk network number, for example by replying to        a ZIP GetNetInfo request.        If atportNetConfig is set to guessed(3) or        unconfigured(4), or if the entity has not received        any network number confirmation, this variable        should be set to three octets of zero."    ::= { atportEntry 12 }atportZoneFrom OBJECT-TYPE    SYNTAX DdpNodeAddress    ACCESS read-only    STATUS mandatory    DESCRIPTION        "When atportZoneConfig is set to garnered(2), this        variable contains the DDP address of an entity from        which the AppleTalk zone list was garnered.        When atportZoneConfig is set to        conflictOrientedSeed(1), conflictAverseSeed(5), or        softSeed(6), this variable contains the DDP address        of an entity which confirmed or supplied our        AppleTalk zone information, for example by replying        to a ZIP GetNetInfo request or a ZIP Query.        If atportZoneConfig is set to guessed(3) or        unconfigured(4), or if the entity has not received        any zone confirmation, this variable should be set        to three octets of zero."    ::= { atportEntry 13 }atportInPkts OBJECT-TYPE    SYNTAX Counter    ACCESS read-only    STATUS mandatory    DESCRIPTION        "The number of packets received by this entity on        this port."    ::= { atportEntry 14 }atportOutPkts OBJECT-TYPE    SYNTAX Counter    ACCESS read-only    STATUS mandatory    DESCRIPTION        "The number of packets transmitted by this entity on        this port."    ::= { atportEntry 15 }atportHome OBJECT-TYPE    SYNTAX INTEGER {        home(1),        notHome(2)    }    ACCESS read-only    STATUS mandatory    DESCRIPTION        "An indication of whether or not the entity is        homed on this port, that is to say, a port on which        the entity could perform NBP registrations for        services that it chooses to advertise."    ::= { atportEntry 16 }atportCurrentZone OBJECT-TYPE    SYNTAX ATName    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The current zone for the port.  In general, this is        the zone name in which services on this port will        be registered.  If this port is not a native        AppleTalk port, this object shall contain an octet        string of zero length.  Note that modifications to        this object do not affect the nbpTable."    ::= { atportEntry 17 }atportConflictPhysAddr OBJECT-TYPE    SYNTAX OCTET STRING    ACCESS read-only    STATUS mandatory    DESCRIPTION        "The link-layer address of a device which caused        this entity to set atportStatus to        offDueToConflict(6). If this address is not        available, or if the entity has not set atportStatus        to offDueToConflict, this object shall be a zero        length OCTET STRING."    ::= { atportEntry 18 }-- The atportZoneTable stores information about the zones-- associated with each port.  The default zone for each-- port is stored in the port's atportZoneDefault variable;-- all other zones for the port are listed in this table.-- If a port only has one zone, it should be stored in the-- port's atportZoneDefault variable, and this table should-- be empty.---- One of the indexes for this table is atportZoneName.-- Even though AppleTalk zone name matches are-- case-insensitive, this table will store zone names-- regardless of case.  SNMP Get, GetNext and Set operations-- are performed on these (potentially) mixed case strings-- according to the normal SNMP rules with the following-- caveat: in processing a SET request, the agent shall-- perform a case-insensitive search and a case-sensitive-- search.  If the case-insensitive search matches and the-- case-sensitive search does not match, the "equivalent"-- zone name exists in another entry with a different-- capitalization and the SET request shall fail due-- to the name being inconsistent (SNMPv1 should return a-- genErr.) This insures that only one version of a zone-- name will appear in each agent, at the expense of forcing-- a management station to query using that exact name.atportZoneTable OBJECT-TYPE    SYNTAX SEQUENCE OF AtportZoneEntry    ACCESS not-accessible    STATUS mandatory    DESCRIPTION        "The table of zone information for non-default        zones on ports."    ::= { atport 2 }atportZoneEntry OBJECT-TYPE    SYNTAX AtportZoneEntry    ACCESS not-accessible    STATUS mandatory    DESCRIPTION        "An entry of zone information for a port.        As an example, an instance of the atportZoneStatus        object might be named        atportZoneStatus.2.8.84.119.105.108.105.103.104.116"    INDEX { atportZonePort, atportZoneName }    ::= { atportZoneTable 1 }AtportZoneEntry ::= SEQUENCE {    atportZonePort     INTEGER,    atportZoneName     ATName (SIZE (1..32)),    atportZoneStatus   INTEGER}atportZonePort OBJECT-TYPE    SYNTAX INTEGER    ACCESS not-accessible    STATUS mandatory    DESCRIPTION        "An integer representing the port to which this zone        belongs. The port identified by a particular value        of this object is the same port as identified by the        same value of atportIndex."    ::= { atportZoneEntry 1 }atportZoneName OBJECT-TYPE    SYNTAX ATName (SIZE (1..32))    ACCESS not-accessible    STATUS mandatory    DESCRIPTION        "A zone name configured for the AppleTalk port        referred to in the corresponding entry of        atportZonePort.        When this value is changed in a router, the router        must send a zipNotify packet on the associated        network."    ::= { atportZoneEntry 2 }atportZoneStatus OBJECT-TYPE    SYNTAX INTEGER {        valid(1),        invalid(2)    }    ACCESS read-write    STATUS mandatory    DESCRIPTION        "The status of this zone entry.        Setting this object to the value invalid(2) has the        effect of invalidating the corresponding entry in        the atportZoneTable.  That is, it effectively        disassociates the mapping identified with said        entry.  It is an implementation-specific matter as        to whether the agent removes an invalidated entry        from the table. Accordingly, management stations        must be prepared to receive from agents tabular        information corresponding to entries not currently        in use.  Proper interpretation of such entries        requires examination of the relevant        atportZoneStatus object."    ::= { atportZoneEntry 3 }-- The DDP Group---- Implementation of this group is mandatory for all-- entities that implement DDP---- This group consists of DDP variables that would be-- implemented by either a router or an end node.  The-- following variables are included:--     ddpOutRequests--     ddpOutShorts--     ddpOutLongs--     ddpInReceives--     ddpInLocalDatagrams--     ddpNoProtocolHandlers--     ddpTooShortErrors--     ddpTooLongErrors--     ddpShortDDPErrors--     ddpChecksumErrors--     ddpListenerTable---- Note that the variables in this group are not numbered-- sequentially.  This was done so that it was not necessary-- to deprecate variables from RFC 1243.ddpOutRequests OBJECT-TYPE    SYNTAX Counter    ACCESS read-only    STATUS mandatory    DESCRIPTION        "The total number of DDP datagrams which were        supplied to DDP by local DDP clients in requests for        transmission.  Note that this counter does not        include any datagrams counted in ddpForwRequests."

⌨️ 快捷键说明

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