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

S12700 V200R010C00

This document provides the function overview, relationships between tables, description of single objects, description of MIB tables, and description of alarm objects.
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. 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, 40GE, 100GE, Eth-Trunk, loopback, and VLANIF interfaces.

Table 2-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 bytes.

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.1x 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

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.

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 unicast packets that are discarded and not forwarded.

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 Interface Status

This topic describes how to query whether an interface is Up or Down after obtaining the index of the interface based on ifDescr. Figure 2-58 is used as an example.

  • The index of GE9/0/2 is 351.
  • The index of GE9/0/3 is 352.
  • The index of GE9/0/4 is 353.
Figure 2-58  Mapping between the interface and index

After obtaining the mapping between the interface and index, query interface status based on ifAdminStatus and ifOperStatus, as shown in Figure 2-59 and Figure 2-60.

  • GE9/0/2 with the index of 351: The expected physical status is Down, and its configuration status is Down, indicating that the shutdown command has been configured on the interface.
  • GE9/0/3 with the index of 352: The expected physical status is Up, and its configuration status is Down, indicating that the shutdown command has not been configured on the interface. The actual physical status is Down due to some reasons. For example, no network cable is connected to the interface.
  • GE9/0/4 with the index of 353: The expected physical status is Up, its configuration status is Up, and the shutdown command has not been configured on the interface. Therefore, the actual physical status is Up.
Figure 2-59  Expected physical status of the interface
Figure 2-60  Current configuration status of the interface
NOTE:
ifOperStatus specifies the physical status of a Layer 2 or Layer 3 physical interface. When you want to query the protocol status of an interface, note the following:
  • The protocol status of a Layer 2 physical interface is the same as the current configuration status of the interface.
  • To query the protocol status of a Layer 3 physical interface, see the ipv4InterfaceEnableStatus information in ipv4InterfaceTable.

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 2-61, the index of GE9/0/1 is 350.

Figure 2-61  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 2-62 and Figure 2-63. The interface GE9/0/1 with the index of 350 receives 304,635,051 bytes of packets, among which no packet is dropped.

Figure 2-62  Total bytes of incoming packets
Figure 2-63  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 2-64, the index of GE9/0/1 is 350.

Figure 2-64  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 2-65, the MAC address of GE9/0/1 with the index of 350 is 00:E0:09:87:78:95.

Figure 2-65  MAC address of the interface

You can obtain the MAC address of a VLANIF interface in a similar way, as shown in Figure 2-66. The index of VLANIF 100 is 70, and its MAC address is 00:E0:09:87:78:95.

Figure 2-66  MAC address of the VLANIF interface

Querying the Rate of an Interface

Before querying the rate of an interface, obtain the index of the interface based on ifDescr. Figure 2-67 is used as an example, and the index of GE9/0/4 is 353.

Figure 2-67  Mapping between the interface and index

After obtaining the mapping between the interface and index, query the estimated rate of the interface based on ifSpeed. As shown in Figure 2-68, the rate of GE9/0/4 with the index of 353 is 100 Mbit/s. After the query using command lines, the interface is configured with the rate of 100 Mbit/s.

Figure 2-68  Querying the rate based on ifSpeed
Figure 2-69  Configuration for querying the interface rate using command lines

As shown in Figure 2-70, the ifSpeed value of XGE6/0/1 with the index of 6 is 4294967295, which exceeds the threshold. In this case, query the interface rate based on ifHighSpeed (OID: 1.3.6.1.2.1.31.1.1.1.15; unit: Mbit/s) in ifXTable. As shown in Figure 2-71, the rate of XGE6/0/1 with the index of 6 is 10,000 Mbit/s.

Figure 2-70  The ifSpeed value is 4294967295
Figure 2-71  Querying the interface rate based on ifHighSpeed

Querying the Minimum Number of Interfaces in Up State of a Trunk

hwTrunkIfTable describes some attributes of a trunk, including the index, ID, type, and minimum number of interfaces in Up state of a trunk. You can obtain the minimum number of interfaces in Up state of all trunks using hwTrunkIfMinLinkNum of hwTrunkIfTable, and query the minimum number of interfaces in Up state of a trunk using hwTrunkIfType, hwTrunkIfID, and hwTrunkIndex.

Object

OID

hwTrunkIndex

1.3.6.1.4.1.2011.5.25.41.1.3.3.1.1

hwTrunkIfID

1.3.6.1.4.1.2011.5.25.41.1.3.3.1.2

hwTrunkIfType

1.3.6.1.4.1.2011.5.25.41.1.3.3.1.3

hwTrunkIfMinLinkNum

1.3.6.1.4.1.2011.5.25.41.1.3.3.1.7

  1. Query hwTrunkIndex based on hwTrunkIfType and hwTrunkIfID. As shown in Figure 2-72, the hwTrunkIndex of Eth-Trunk 10 is 1.
    Figure 2-72  Querying Trunk information

  2. Query the minimum number of interfaces in Up state of a trunk in hwTrunkIfMinLinkNum based on hwTrunkIndex. As shown in Figure 2-73, the minimum number of interfaces in Up state of the trunk with the hwTrunkIndex being 1 is 1.
    Figure 2-73  Querying the minimum number of interfaces in Up state of a trunk

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1000142096

Views: 128400

Downloads: 75

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