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

📄 ipv6-mib

📁 很不错java的SNMP应用例子
💻
📖 第 1 页 / 共 4 页
字号:
 IPV6-MIB DEFINITIONS ::= BEGIN IMPORTS     MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,     mib-2, Counter32, Unsigned32, Integer32,     Gauge32                               FROM SNMPv2-SMI     DisplayString, PhysAddress, TruthValue, TimeStamp,     VariablePointer, RowPointer           FROM SNMPv2-TC     MODULE-COMPLIANCE, OBJECT-GROUP,     NOTIFICATION-GROUP                    FROM SNMPv2-CONF     Ipv6IfIndex, Ipv6Address, Ipv6AddressPrefix,     Ipv6AddressIfIdentifier,     Ipv6IfIndexOrZero                     FROM IPV6-TC; ipv6MIB MODULE-IDENTITY     LAST-UPDATED "9802052155Z"     ORGANIZATION "IETF IPv6 Working Group"     CONTACT-INFO       "           Dimitry Haskin           Postal: Bay Networks, Inc.                   660 Techology Park Drive.                   Billerica, MA  01821                   US              Tel: +1-978-916-8124           E-mail: dhaskin@baynetworks.com                   Steve Onishi           Postal: Bay Networks, Inc.                   3 Federal Street                   Billerica, MA 01821                   US              Tel: +1-978-916-3816           E-mail: sonishi@baynetworks.com"     DESCRIPTION       "The MIB module for entities implementing the IPv6        protocol."     ::= { mib-2 55 } -- the IPv6 general group ipv6MIBObjects OBJECT IDENTIFIER   ::= { ipv6MIB 1 } ipv6Forwarding OBJECT-TYPE     SYNTAX      INTEGER {                  forwarding(1),    -- acting as a router                                    -- NOT acting as                  notForwarding(2)  -- a router                 }      MAX-ACCESS read-write      STATUS     current      DESCRIPTION        "The indication of whether this entity is acting        as an IPv6 router in respect to the forwarding of        datagrams received by, but not addressed to, this        entity.  IPv6 routers forward datagrams.  IPv6        hosts do not (except those source-routed via the        host).        Note that for some managed nodes, this object may        take on only a subset of the values possible.        Accordingly, it is appropriate for an agent to        return a `wrongValue' response if a management        station attempts to change this object to an        inappropriate value."      ::= { ipv6MIBObjects 1 } ipv6DefaultHopLimit OBJECT-TYPE     SYNTAX      INTEGER(0..255)     MAX-ACCESS  read-write      STATUS     current     DESCRIPTION        "The default value inserted into the Hop Limit        field of the IPv6 header of datagrams originated        at this entity, whenever a Hop Limit value is not        supplied by the transport layer protocol."     DEFVAL  { 64 }     ::= { ipv6MIBObjects 2 }ipv6Interfaces OBJECT-TYPE     SYNTAX      Unsigned32     MAX-ACCESS  read-only     STATUS      current     DESCRIPTION       "The number of IPv6 interfaces (regardless of        their current state) present on this system."     ::= { ipv6MIBObjects 3 }ipv6IfTableLastChange OBJECT-TYPE     SYNTAX      TimeStamp     MAX-ACCESS  read-only     STATUS      current     DESCRIPTION       "The value of sysUpTime at the time of the last       insertion or removal of an entry in the       ipv6IfTable. If the number of entries has been       unchanged since the last re-initialization of       the local network management subsystem, then this       object contains a zero value."     ::= { ipv6MIBObjects 4 }-- the IPv6 Interfaces tableipv6IfTable OBJECT-TYPE     SYNTAX     SEQUENCE OF Ipv6IfEntry     MAX-ACCESS not-accessible     STATUS     current     DESCRIPTION       "The IPv6 Interfaces table contains information       on the entity's internetwork-layer interfaces.       An IPv6 interface constitutes a logical network       layer attachment to the layer immediately below       IPv6 including internet layer 'tunnels', such as       tunnels over IPv4 or IPv6 itself."     ::= { ipv6MIBObjects 5 } ipv6IfEntry OBJECT-TYPE     SYNTAX     Ipv6IfEntry     MAX-ACCESS not-accessible     STATUS     current     DESCRIPTION       "An interface entry containing objects        about a particular IPv6 interface."     INDEX   { ipv6IfIndex }     ::= { ipv6IfTable 1 } Ipv6IfEntry ::= SEQUENCE {         ipv6IfIndex              Ipv6IfIndex,         ipv6IfDescr              DisplayString,         ipv6IfLowerLayer         VariablePointer,         ipv6IfEffectiveMtu       Unsigned32,         ipv6IfReasmMaxSize       Unsigned32,         ipv6IfIdentifier         Ipv6AddressIfIdentifier,         ipv6IfIdentifierLength   INTEGER,         ipv6IfPhysicalAddress    PhysAddress,         ipv6IfAdminStatus        INTEGER,         ipv6IfOperStatus         INTEGER,         ipv6IfLastChange         TimeStamp     } ipv6IfIndex OBJECT-TYPE     SYNTAX     Ipv6IfIndex     MAX-ACCESS not-accessible     STATUS     current     DESCRIPTION       "A unique non-zero value identifying        the particular IPv6 interface."     ::= { ipv6IfEntry 1 } ipv6IfDescr OBJECT-TYPE     SYNTAX     DisplayString     MAX-ACCESS read-write     STATUS     current     DESCRIPTION       "A textual string containing information about the       interface.  This string may be set by the network       management system."     ::= { ipv6IfEntry 2 } ipv6IfLowerLayer OBJECT-TYPE    SYNTAX      VariablePointer    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION      "This object identifies the protocol layer over       which this network interface operates.  If this       network interface operates over the data-link       layer, then the value of this object refers to an       instance of ifIndex [6]. If this network interface       operates over an IPv4 interface, the value of this       object refers to an instance of ipAdEntAddr [3].       If this network interface operates over another       IPv6 interface, the value of this object refers to       an instance of ipv6IfIndex.  If this network       interface is not currently operating over an active       protocol layer, then the value of this object       should be set to the OBJECT ID { 0 0 }."    ::= { ipv6IfEntry 3 } ipv6IfEffectiveMtu OBJECT-TYPE    SYNTAX      Unsigned32    UNITS       "octets"    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION      "The size of the largest IPv6 packet which can be      sent/received on the interface, specified in      octets." ::= { ipv6IfEntry 4 } ipv6IfReasmMaxSize OBJECT-TYPE    SYNTAX      Unsigned32 (0..65535)    UNITS       "octets"    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION      "The size of the largest IPv6 datagram which this      entity can re-assemble from incoming IPv6 fragmented      datagrams received on this interface." ::= { ipv6IfEntry 5 } ipv6IfIdentifier OBJECT-TYPE     SYNTAX      Ipv6AddressIfIdentifier     MAX-ACCESS  read-write     STATUS      current     DESCRIPTION        "The Interface Identifier for this interface that        is (at least) unique on the link this interface is        attached to. The Interface Identifier is combined        with an address prefix to form an interface address.        By default, the Interface Identifier is autoconfigured        according to the rules of the link type this        interface is attached to."     ::= { ipv6IfEntry 6 } ipv6IfIdentifierLength OBJECT-TYPE     SYNTAX      INTEGER (0..64)     UNITS       "bits"     MAX-ACCESS  read-write     STATUS      current     DESCRIPTION       "The length of the Interface Identifier in bits."     ::= { ipv6IfEntry 7 } ipv6IfPhysicalAddress OBJECT-TYPE     SYNTAX      PhysAddress     MAX-ACCESS  read-only     STATUS      current     DESCRIPTION       "The interface's physical address. For example, for       an IPv6 interface attached to an 802.x link, this       object normally contains a MAC address. Note that       in some cases this address may differ from the       address of the interface's protocol sub-layer.  The       interface's media-specific MIB must define the bit       and byte ordering and the format of the value of       this object. For interfaces which do not have such       an address (e.g., a serial line), this object should       contain an octet string of zero length."     ::= { ipv6IfEntry 8 }ipv6IfAdminStatus OBJECT-TYPE    SYNTAX  INTEGER {             up(1),       -- ready to pass packets             down(2)            }    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION      "The desired state of the interface.  When a managed      system initializes,  all IPv6 interfaces start with      ipv6IfAdminStatus in the down(2) state.  As a result      of either explicit management action or per      configuration information retained by the managed      system,  ipv6IfAdminStatus is then changed to      the up(1) state (or remains in the down(2) state)."    ::= { ipv6IfEntry 9 }ipv6IfOperStatus OBJECT-TYPE    SYNTAX  INTEGER {             up(1),             -- ready to pass packets             down(2),             noIfIdentifier(3), -- no interface identifier                                -- status can not be                                -- determined for some             unknown(4),        -- reason                                -- some component is             notPresent(5)      -- missing            }    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION      "The current operational state of the interface.      The noIfIdentifier(3) state indicates that no valid      Interface Identifier is assigned to the interface.      This state usually indicates that the link-local      interface address failed Duplicate Address Detection.      If ipv6IfAdminStatus is down(2) then ipv6IfOperStatus      should be down(2).  If ipv6IfAdminStatus is changed      to up(1) then ipv6IfOperStatus should change to up(1)      if the interface is ready to transmit and receive      network traffic; it should remain in the down(2) or      noIfIdentifier(3) state if and only if there is a      fault that prevents it from going to the up(1) state;      it should remain in the notPresent(5) state if      the interface has missing (typically, lower layer)      components."    ::= { ipv6IfEntry 10 }ipv6IfLastChange OBJECT-TYPE    SYNTAX      TimeStamp    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION        "The value of sysUpTime at the time the interface        entered its current operational state.  If the        current state was entered prior to the last        re-initialization of the local network management        subsystem, then this object contains a zero        value."    ::= { ipv6IfEntry 11 } --  IPv6 Interface Statistics table ipv6IfStatsTable OBJECT-TYPE     SYNTAX     SEQUENCE OF Ipv6IfStatsEntry     MAX-ACCESS not-accessible     STATUS     current     DESCRIPTION         "IPv6 interface traffic statistics."     ::= { ipv6MIBObjects 6 } ipv6IfStatsEntry OBJECT-TYPE     SYNTAX     Ipv6IfStatsEntry     MAX-ACCESS not-accessible     STATUS     current     DESCRIPTION         "An interface statistics entry containing objects         at a particular IPv6 interface."     AUGMENTS { ipv6IfEntry }     ::= { ipv6IfStatsTable 1 } Ipv6IfStatsEntry ::= SEQUENCE {         ipv6IfStatsInReceives             Counter32,         ipv6IfStatsInHdrErrors             Counter32,         ipv6IfStatsInTooBigErrors             Counter32,         ipv6IfStatsInNoRoutes             Counter32,         ipv6IfStatsInAddrErrors             Counter32,         ipv6IfStatsInUnknownProtos             Counter32,         ipv6IfStatsInTruncatedPkts             Counter32,         ipv6IfStatsInDiscards             Counter32,         ipv6IfStatsInDelivers             Counter32,         ipv6IfStatsOutForwDatagrams             Counter32,         ipv6IfStatsOutRequests             Counter32,         ipv6IfStatsOutDiscards             Counter32,         ipv6IfStatsOutFragOKs             Counter32,         ipv6IfStatsOutFragFails

⌨️ 快捷键说明

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