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

📄 if-mib.txt

📁 snmp based application it is used to get the info of snmp
💻 TXT
📖 第 1 页 / 共 5 页
字号:
IF-MIB DEFINITIONS ::= BEGINIMPORTS    MODULE-IDENTITY, OBJECT-TYPE, Counter32, Gauge32, Counter64,    Integer32, TimeTicks, mib-2,    NOTIFICATION-TYPE                        FROM SNMPv2-SMI    TEXTUAL-CONVENTION, DisplayString,    PhysAddress, TruthValue, RowStatus,    TimeStamp, AutonomousType, TestAndIncr   FROM SNMPv2-TC    MODULE-COMPLIANCE, OBJECT-GROUP,    NOTIFICATION-GROUP                       FROM SNMPv2-CONF    snmpTraps                                FROM SNMPv2-MIB    IANAifType                               FROM IANAifType-MIB;ifMIB MODULE-IDENTITY    LAST-UPDATED "200006140000Z"    ORGANIZATION "IETF Interfaces MIB Working Group"    CONTACT-INFO            "   Keith McCloghrie                Cisco Systems, Inc.                170 West Tasman Drive                San Jose, CA  95134-1706                US                408-526-5260                kzm@cisco.com"    DESCRIPTION            "The MIB module to describe generic objects for network            interface sub-layers.  This MIB is an updated version of            MIB-II's ifTable, and incorporates the extensions defined in            RFC 1229."    REVISION      "200006140000Z"    DESCRIPTION            "Clarifications agreed upon by the Interfaces MIB WG, and            published as RFC 2863."    REVISION      "199602282155Z"    DESCRIPTION            "Revisions made by the Interfaces MIB WG, and published in            RFC 2233."    REVISION      "199311082155Z"    DESCRIPTION            "Initial revision, published as part of RFC 1573."    ::= { mib-2 31 }ifMIBObjects OBJECT IDENTIFIER ::= { ifMIB 1 }interfaces   OBJECT IDENTIFIER ::= { mib-2 2 }---- Textual Conventions---- OwnerString has the same semantics as used in RFC 1271OwnerString ::= TEXTUAL-CONVENTION    DISPLAY-HINT "255a"    STATUS       deprecated    DESCRIPTION            "This data type is used to model an administratively            assigned name of the owner of a resource.  This information            is taken from the NVT ASCII character set.  It is suggested            that this name contain one or more of the following: ASCII            form of the manager station's transport address, management            station name (e.g., domain name), network management            personnel's name, location, or phone number.  In some cases            the agent itself will be the owner of an entry.  In these            cases, this string shall be set to a string starting with            'agent'."    SYNTAX       OCTET STRING (SIZE(0..255))-- InterfaceIndex contains the semantics of ifIndex and should be used-- for any objects defined in other MIB modules that need these semantics.InterfaceIndex ::= TEXTUAL-CONVENTION    DISPLAY-HINT "d"    STATUS       current    DESCRIPTION            "A unique value, greater than zero, for each interface or            interface sub-layer in the managed system.  It is            recommended that values are assigned contiguously starting            from 1.  The value for each interface sub-layer must remain            constant at least from one re-initialization of the entity's            network management system to the next re-initialization."    SYNTAX       Integer32 (1..2147483647)InterfaceIndexOrZero ::= TEXTUAL-CONVENTION    DISPLAY-HINT "d"    STATUS       current    DESCRIPTION            "This textual convention is an extension of the            InterfaceIndex convention.  The latter defines a greater            than zero value used to identify an interface or interface            sub-layer in the managed system.  This extension permits the            additional value of zero.  the value zero is object-specific            and must therefore be defined as part of the description of            any object which uses this syntax.  Examples of the usage of            zero might include situations where interface was unknown,            or when none or all interfaces need to be referenced."    SYNTAX       Integer32 (0..2147483647)ifNumber  OBJECT-TYPE    SYNTAX      Integer32    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The number of network interfaces (regardless of their            current state) present on this system."    ::= { interfaces 1 }ifTableLastChange  OBJECT-TYPE    SYNTAX      TimeTicks    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The value of sysUpTime at the time of the last creation or            deletion of an entry in the ifTable.  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."    ::= { ifMIBObjects 5 }-- the Interfaces table-- The Interfaces table contains information on the entity's-- interfaces.  Each sub-layer below the internetwork-layer-- of a network interface is considered to be an interface.ifTable OBJECT-TYPE    SYNTAX      SEQUENCE OF IfEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION            "A list of interface entries.  The number of entries is            given by the value of ifNumber."    ::= { interfaces 2 }ifEntry OBJECT-TYPE    SYNTAX      IfEntry    MAX-ACCESS  not-accessible    STATUS      current    DESCRIPTION            "An entry containing management information applicable to a            particular interface."    INDEX   { ifIndex }    ::= { ifTable 1 }IfEntry ::=    SEQUENCE {        ifIndex                 InterfaceIndex,        ifDescr                 DisplayString,        ifType                  IANAifType,        ifMtu                   Integer32,        ifSpeed                 Gauge32,        ifPhysAddress           PhysAddress,        ifAdminStatus           INTEGER,        ifOperStatus            INTEGER,        ifLastChange            TimeTicks,        ifInOctets              Counter32,        ifInUcastPkts           Counter32,        ifInNUcastPkts          Counter32,  -- deprecated        ifInDiscards            Counter32,        ifInErrors              Counter32,        ifInUnknownProtos       Counter32,        ifOutOctets             Counter32,        ifOutUcastPkts          Counter32,        ifOutNUcastPkts         Counter32,  -- deprecated        ifOutDiscards           Counter32,        ifOutErrors             Counter32,        ifOutQLen               Gauge32,    -- deprecated        ifSpecific              OBJECT IDENTIFIER -- deprecated    }ifIndex OBJECT-TYPE    SYNTAX      InterfaceIndex    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "A unique value, greater than zero, for each interface.  It            is recommended that values are assigned contiguously            starting from 1.  The value for each interface sub-layer            must remain constant at least from one re-initialization of            the entity's network management system to the next re-            initialization."    ::= { ifEntry 1 }ifDescr OBJECT-TYPE    SYNTAX      DisplayString (SIZE (0..255))    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "A textual string containing information about the            interface.  This string should include the name of the            manufacturer, the product name and the version of the            interface hardware/software."    ::= { ifEntry 2 }ifType OBJECT-TYPE    SYNTAX      IANAifType    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The type of interface.  Additional values for ifType are            assigned by the Internet Assigned Numbers Authority (IANA),            through updating the syntax of the IANAifType textual            convention."    ::= { ifEntry 3 }ifMtu OBJECT-TYPE    SYNTAX      Integer32    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The size of the largest packet which can be sent/received            on the interface, specified in octets.  For interfaces that            are used for transmitting network datagrams, this is the            size of the largest network datagram that can be sent on the            interface."    ::= { ifEntry 4 }ifSpeed OBJECT-TYPE    SYNTAX      Gauge32    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "An estimate of the interface's current bandwidth in bits            per second.  For interfaces which do not vary in bandwidth            or for those where no accurate estimation can be made, this            object should contain the nominal bandwidth.  If the            bandwidth of the interface is greater than the maximum value            reportable by this object then this object should report its            maximum value (4,294,967,295) and ifHighSpeed must be used            to report the interace's speed.  For a sub-layer which has            no concept of bandwidth, this object should be zero."    ::= { ifEntry 5 }ifPhysAddress OBJECT-TYPE    SYNTAX      PhysAddress    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The interface's address at its protocol sub-layer.  For            example, for an 802.x interface, this object normally            contains a MAC address.  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."    ::= { ifEntry 6 }ifAdminStatus OBJECT-TYPE    SYNTAX  INTEGER {                up(1),       -- ready to pass packets                down(2),                testing(3)   -- in some test mode            }    MAX-ACCESS  read-write    STATUS      current    DESCRIPTION            "The desired state of the interface.  The testing(3) state            indicates that no operational packets can be passed.  When a            managed system initializes, all interfaces start with            ifAdminStatus in the down(2) state.  As a result of either            explicit management action or per configuration information            retained by the managed system, ifAdminStatus is then            changed to either the up(1) or testing(3) states (or remains            in the down(2) state)."    ::= { ifEntry 7 }ifOperStatus OBJECT-TYPE    SYNTAX  INTEGER {                up(1),        -- ready to pass packets                down(2),                testing(3),   -- in some test mode                unknown(4),   -- status can not be determined                              -- for some reason.                dormant(5),                notPresent(6),    -- some component is missing                lowerLayerDown(7) -- down due to state of                                  -- lower-layer interface(s)            }    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The current operational state of the interface.  The            testing(3) state indicates that no operational packets can            be passed.  If ifAdminStatus is down(2) then ifOperStatus            should be down(2).  If ifAdminStatus is changed to up(1)            then ifOperStatus should change to up(1) if the interface is            ready to transmit and receive network traffic; it should            change to dormant(5) if the interface is waiting for            external actions (such as a serial line waiting for an            incoming connection); it should remain in the down(2) 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(6)            state if the interface has missing (typically, hardware)            components."    ::= { ifEntry 8 }ifLastChange OBJECT-TYPE    SYNTAX      TimeTicks    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."    ::= { ifEntry 9 }ifInOctets OBJECT-TYPE    SYNTAX      Counter32    MAX-ACCESS  read-only    STATUS      current    DESCRIPTION            "The total number of octets received on the interface,            including framing characters.            Discontinuities in the value of this counter can occur at            re-initialization of the management system, and at other            times as indicated by the value of            ifCounterDiscontinuityTime."    ::= { ifEntry 10 }ifInUcastPkts OBJECT-TYPE    SYNTAX      Counter32    MAX-ACCESS  read-only

⌨️ 快捷键说明

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