IF-MIB
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.
- Source file
IF-MIB- Last revised
- Identity
ifMIB- Base OID
1.3.6.1.2.1.31- Objects
- 3 scalars · 53 columns
- Tables
- 5 tables
Net-SNMP examples using the rfc MIB directory
These commands use the standard Observium installation path and load the selected MIB variant before the RFC and Net-SNMP directories.
/usr/bin/snmptranslate -Pud -Ir -On -m 'IF-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'IF-MIB::ifMIB'
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'IF-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'IF-MIB::ifMIB'
Imported Objects
| IANAifType-MIB | IANAifType |
| SNMPv2-CONF | MODULE-COMPLIANCE (no object page) NOTIFICATION-GROUP (no object page) OBJECT-GROUP (no object page) |
| SNMPv2-MIB | snmpTraps |
| SNMPv2-SMI | Counter32 Counter64 Gauge32 Integer32 mib-2 MODULE-IDENTITY (no object page) NOTIFICATION-TYPE (no object page) OBJECT-TYPE (no object page) TimeTicks |
| SNMPv2-TC | AutonomousType DisplayString PhysAddress RowStatus TestAndIncr TEXTUAL-CONVENTION (no object page) TimeStamp TruthValue |
interfaces
.1.3.6.1.2.1.2
| Object | Syntax | OID |
|---|---|---|
| ifNumber | SNMPv2-SMIInteger32 | .1.3.6.1.2.1.2.1 |
A list of interface entries. The number of entries is given by the value of ifNumber.
| Column | Syntax | OID |
|---|---|---|
| ifIndex | InterfaceIndex | .1.3.6.1.2.1.2.2.1.1 |
| ifDescrOBS ✓ | SNMPv2-TCDisplayString | .1.3.6.1.2.1.2.2.1.2 |
| ifTypeOBS ✓ | IANAifType-MIBIANAifType | .1.3.6.1.2.1.2.2.1.3 |
| ifMtuOBS ✓ | SNMPv2-SMIInteger32 | .1.3.6.1.2.1.2.2.1.4 |
| ifSpeedOBS ✓ | SNMPv2-SMIGauge32 | .1.3.6.1.2.1.2.2.1.5 |
| ifPhysAddressOBS ✓ | SNMPv2-TCPhysAddress | .1.3.6.1.2.1.2.2.1.6 |
| ifAdminStatusOBS ✓ | Enumerationr/w | .1.3.6.1.2.1.2.2.1.7 |
| ifOperStatusOBS ✓ | Enumeration | .1.3.6.1.2.1.2.2.1.8 |
| ifLastChangeOBS ✓ | SNMPv2-SMITimeTicks | .1.3.6.1.2.1.2.2.1.9 |
| ifInOctetsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.10 |
| ifInUcastPktsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.11 |
| SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.12 | |
| ifInDiscardsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.13 |
| ifInErrorsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.14 |
| ifInUnknownProtos | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.15 |
| ifOutOctetsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.16 |
| ifOutUcastPktsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.17 |
| SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.18 | |
| ifOutDiscardsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.19 |
| ifOutErrorsOBS ✓ | SNMPv2-SMICounter32 | .1.3.6.1.2.1.2.2.1.20 |
ifOutQLendeprecated | SNMPv2-SMIGauge32 | .1.3.6.1.2.1.2.2.1.21 |
ifSpecificdeprecated | ObjectIdentifier | .1.3.6.1.2.1.2.2.1.22 |
A list of interface entries. The number of entries is given by the value of ifNumber. This table contains additional objects for the interface table.
.1.3.6.1.2.1.31.1.2
· 3 columns
The table containing information on the relationships between the multiple sub-layers of network interfaces. In particular, it contains information on which sub-layers run 'on top of' which other sub-layers, where each…
.1.3.6.1.2.1.31.1.2.1
| Column | Syntax | OID |
|---|---|---|
| ifStackHigherLayer | InterfaceIndexOrZero | .1.3.6.1.2.1.31.1.2.1.1 |
| ifStackLowerLayer | InterfaceIndexOrZero | .1.3.6.1.2.1.31.1.2.1.2 |
| ifStackStatusOBS ✓ | SNMPv2-TCRowStatusr/w | .1.3.6.1.2.1.31.1.2.1.3 |
ifTestTable
deprecated.1.3.6.1.2.1.31.1.3
· 6 columns
This table contains one entry per interface. It defines objects which allow a network manager to instruct an agent to test an interface for various faults. Tests for an interface are defined in the media-specific MIB …
.1.3.6.1.2.1.31.1.3.1
| Column | Syntax | OID |
|---|---|---|
ifTestIddeprecated | SNMPv2-TCTestAndIncrr/w | .1.3.6.1.2.1.31.1.3.1.1 |
ifTestStatusdeprecated | Enumerationr/w | .1.3.6.1.2.1.31.1.3.1.2 |
ifTestTypedeprecated | SNMPv2-TCAutonomousTyper/w | .1.3.6.1.2.1.31.1.3.1.3 |
ifTestResultdeprecated | Enumeration | .1.3.6.1.2.1.31.1.3.1.4 |
ifTestCodedeprecated | ObjectIdentifier | .1.3.6.1.2.1.31.1.3.1.5 |
ifTestOwnerdeprecated | OwnerStringr/w | .1.3.6.1.2.1.31.1.3.1.6 |
.1.3.6.1.2.1.31.1.4
· 3 columns
This table contains an entry for each address (broadcast, multicast, or uni-cast) for which the system will receive packets/frames on a particular interface, except as follows:
…
.1.3.6.1.2.1.31.1.4.1
| Column | Syntax | OID |
|---|---|---|
| ifRcvAddressAddress | SNMPv2-TCPhysAddress | .1.3.6.1.2.1.31.1.4.1.1 |
| ifRcvAddressStatus | SNMPv2-TCRowStatusr/w | .1.3.6.1.2.1.31.1.4.1.2 |
| ifRcvAddressType | Enumerationr/w | .1.3.6.1.2.1.31.1.4.1.3 |
ifMIBObjects
.1.3.6.1.2.1.31.1
| Object | Syntax | OID |
|---|---|---|
| ifTableLastChange | SNMPv2-SMITimeTicks | .1.3.6.1.2.1.31.1.5 |
| ifStackLastChange | SNMPv2-SMITimeTicks | .1.3.6.1.2.1.31.1.6 |
Notifications / Traps (2)
Type Definitions (3)
| Type | Syntax | Constraints |
|---|---|---|
| InterfaceIndex | Integer32 | 1 constraints |
| InterfaceIndexOrZero | Integer32 | 1 constraints |
| OwnerString deprecated | OctetString | 1 constraints |
Conformance Groups (14)
ifGeneralGroup deprecated .1.3.6.1.2.1.31.2.1.1
Members (11)
ifFixedLengthGroup .1.3.6.1.2.1.31.2.1.2
Members (5)
ifHCFixedLengthGroup .1.3.6.1.2.1.31.2.1.3
Members (7)
ifPacketGroup .1.3.6.1.2.1.31.2.1.4
Members (15)
ifHCPacketGroup .1.3.6.1.2.1.31.2.1.5
Members (17)
ifVHCPacketGroup .1.3.6.1.2.1.31.2.1.6
Members (23)
ifRcvAddressGroup .1.3.6.1.2.1.31.2.1.7
Members (2)
ifTestGroup deprecated .1.3.6.1.2.1.31.2.1.8
Members (6)
ifStackGroup deprecated .1.3.6.1.2.1.31.2.1.9
Members (1)
ifGeneralInformationGroup .1.3.6.1.2.1.31.2.1.10
Members (15)
ifStackGroup2 .1.3.6.1.2.1.31.2.1.11
Members (2)
ifOldObjectsGroup deprecated .1.3.6.1.2.1.31.2.1.12
Members (4)
ifCounterDiscontinuityGroup .1.3.6.1.2.1.31.2.1.13
Members (1)
linkUpDownNotificationsGroup .1.3.6.1.2.1.31.2.1.14
Notifications (2)
Compliance Statements (3)
ifCompliance deprecated .1.3.6.1.2.1.31.2.2.1
ifCompliance2 deprecated .1.3.6.1.2.1.31.2.2.2
ifCompliance3 .1.3.6.1.2.1.31.2.2.3
Dependencies (5) 5 direct Show tree and compile order Hide dependency details
Each imported module is resolved in the importing module's source directory first, then through the normal default-variant rules.
Dependency tree
Dependency-first compile order
- SNMPv2-SMIrfc
- SNMPv2-TCrfc
- IANAifType-MIBrfc
- SNMPv2-CONFrfc
- SNMPv2-MIBrfc
- IF-MIBrfcselected