No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

MIB Reference

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying Interface Information

Querying Interface Information

The table ifTable contains interface entries. The number of entries depends on the value of ifNumber (OID: 1.3.6.1.2.1.2.1). Each entry provides management information for one interface type. The index of ifTable is ifIndex.

This topic describes how to query the mapping between interfaces and indexes in ifDescr. The indexes allow you to query information about interfaces such as XGE, Eth-Trunk, Loopback, and VLANIF interfaces.

Table 3-5  Description of ifTable objects

Object

Description

OID

ifIndex

This object indicates an interface index.

1.3.6.1.2.1.2.2.1.1

ifDescr

This object indicates the interface description and provides the mapping between the interface and index.

1.3.6.1.2.1.2.2.1.2

ifMtu

This object indicates the maximum transmission unit (MTU), in octets.

1.3.6.1.2.1.2.2.1.4

ifSpeed

This object indicates the estimated interface bandwidth, in bit/s. If the bandwidth is fixed or cannot be estimated on an interface, the value is the rated bandwidth.

If the interface bandwidth is higher than the maximum value of ifSpeed, the maximum value of the entry (4,294,967,295) becomes the maximum value of the interface bandwidth and the interface rate is the value of ifHighSpeed (OID:1.3.6.1.2.1.31.1.1.1.15, in Mbit/s) in ifXTable.

The value of this object is zero for subinterfaces.

1.3.6.1.2.1.2.2.1.5

ifPhysAddress

This object indicates the interface address of the protocol sublayer. For an 802.x interface, this object is a MAC address.

1.3.6.1.2.1.2.2.1.6

ifAdminStatus

This object indicates the expected physical status of an interface.

During system initialization, all interfaces start in Down (2) state. After operations or configurations, the interfaces enter the Up (1) or Testing (3) state or remain in Down (2) state. An interface in Testing (3) state cannot forward running packets.

1.3.6.1.2.1.2.2.1.7

ifOperStatus

This object indicates the current configuration status of an interface.

  • If the value of ifAdminStatus is Up (1) and the interface can transmit data, the value of ifOperStatus is Up (1); if an operation such as shutdown is performed, ifOperStatus remains Down (2).

  • If the value of ifAdminStatus is Down (2), the value of ifOperStatus is Down (2).

1.3.6.1.2.1.2.2.1.8

ifInOctets

This object indicates the total bytes of incoming packets, including subframe data, in bytes.

1.3.6.1.2.1.2.2.1.10

ifInUcastPkts

This object indicates the number of unicast packets sent from the current sublayer to the upper-level sublayer.

1.3.6.1.2.1.2.2.1.11

ifInDiscards

This object indicates the number of dropped incoming packets.

1.3.6.1.2.1.2.2.1.13

ifInErrors

This object indicates the number of packets or MTUs that fail to be sent to the upper layer.

1.3.6.1.2.1.2.2.1.14

ifInUnknownProtos

This object indicates the number of packets or MTUs that are dropped due to unknown or unsupported protocols. If an interface does not support protocol multiplexing, the value of this object is 0.

1.3.6.1.2.1.2.2.1.15

ifOutOctets

This object indicates the total bytes of the outgoing packets, including subframe data, in bytes.

1.3.6.1.2.1.2.2.1.16

ifOutUcastPkts

This object indicates the number of unicast packets required by the upper-layer protocol, including the number of unicast packets that are discarded and not transmitted.

1.3.6.1.2.1.2.2.1.17

ifOutDiscards

This object indicates the number of outgoing packets that are dropped even if no error occurs. A possible cause is that the buffer is released.

1.3.6.1.2.1.2.2.1.19

ifOutErrors

This object indicates the number of packets or MTUs that fail to be transmitted.

1.3.6.1.2.1.2.2.1.20

NOTE:

The interface description configured using the description command cannot be queried using the object ifTable. If Link Layer Discovery Protocol (LLDP) is enabled, you can query the interface description based on lldpLocPortDesc (OID: 1.0.8802.1.1.2.1.3.7.1.4) in lldpLocPortTable of the LLDP MIB.

Querying Packet Statistics on an Interface

Before querying statistics about packets on an interface, obtain the index of the interface based on ifDescr. As shown in Figure 3-34, the index of GigabitEthernet0/0/2 is 5.

Figure 3-34  Obtaining the interface index

After obtaining the mapping between the interface and index, query the statistics about incoming packets and dropped incoming packets on the interface based on ifInOctets and ifInDiscards, as shown in Figure 3-35 and Figure 3-36. The interface GigabitEthernet0/0/2 with the index of 5 receives 527,217,861 bytes of packets, among which no packet is dropped.

Figure 3-35  Total bytes of incoming packets
Figure 3-36  Number of dropped incoming packets

Querying the MAC Address of an Interface

Before querying the MAC address of an interface, obtain the index of the interface based on ifDescr. As shown in Figure 3-37, the index of GigabitEthernet0/0/2 is 5.

Figure 3-37  Obtaining the interface index

After obtaining the mapping between the interface and index, query the MAC address of the interface based on ifPhysAddress. As shown in Figure 3-38, the MAC address of GigabitEthernet0/0/2 with the index of 5 is 54:89:98:74:DA:CC.

Figure 3-38  MAC address of the interface
Translation
Download
Updated: 2019-07-19

Document ID: EDOC1000174090

Views: 509075

Downloads: 49

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next