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 STP Information

Querying STP Information

Checking Whether STP Is Enabled Globally or on an Interface

hwMstpStatus describes whether STP is enabled globally. When multiple processes are used, query the STP status in process 0.

hwMstpProTable describes MSTP process information, including the status, priority, and root bridge type. You can learn about the STP status of all processes using hwMstpProStpState in hwMstpProTable.

hwMstpProNewPortTable describes information about an interface, including the interface status and priority. You can learn about the STP status of an interface by using hwMstpProNewPortStpStatus in the hwMstpProNewPortTable.

Object

OID

hwMstpStatus

1.3.6.1.4.1.2011.5.25.42.4.1.1

hwMstpProStpState

1.3.6.1.4.1.2011.5.25.42.4.1.23.1.4

hwMstpProNewPortStpStatus

1.3.6.1.4.1.2011.5.25.42.4.1.29.1.22

The steps are as follows:

  1. Perform the Get operation for hwMstpStatus to query the STP status globally.

  2. Perform the Walk operation for hwMstpProStpState to query the STP status in a process.

  3. Query the STP status on an interface.
    1. You can view the relationships between interface names and indexes by using hwL2IfPortName.

    2. You can learn about the STP status of an interface by using hwMstpProNewPortStpStatus in the hwMstpProNewPortTable. Deduct 1 from an interface index to obtain the hwMstpPortId1 value. For example, the interface index of XGigabitEthernet6/0/3 is 11. Deduct 1 from 11 to obtain the hwMstpPortId1 value 10 (0.0.hwMstpPortId1=10.0.0.0.0), that is hwMstpProNewPortStpStatus.0.0.10.0.0.0.0 (integer) enabled(1). Therefore, the STP status of XGigabitEthernet6/0/3 is Enabled.



Querying the STP Type

hwMstpForceVersion describes the STP type. When multiple processes are used, query the STP type in process 0. The value 0 indicates STP; the value 2 indicates RSTP; the value 3 indicates MSTP.

hwMstpProTable describes MSTP process information, including the status, priority, and root bridge type. You can learn about STP types of all processes using hwMstpProForceVersion in hwMstpProTable. The value 0 indicates STP; the value 2 indicates RSTP; the value 3 indicates MSTP.

Object

OID

hwMstpForceVersion

1.3.6.1.4.1.2011.5.25.42.4.1.2

hwMstpProForceVersion

1.3.6.1.4.1.2011.5.25.42.4.1.23.1.7

Use either of the following methods to query the STP type:

  • Perform the Get operation for the hwMstpForceVersion object.

  • Perform the Walk operation for the hwMstpProForceVersion object.

Querying the Forwarding Status of an Interface

hwMstpProNewPortTable describes information about an interface, including the interface status and priority. You can learn about the forwarding status of an interface using hwMstpProNewPortState in hwMstpProNewPortTable.

Object

OID

hwMstpProNewPortState

1.3.6.1.4.1.2011.5.25.42.4.1.29.1.1

The steps are as follows:

  1. You can view the relationships between interface names and indexes by using hwL2IfPortName.

  2. You can learn about the forwarding status of an interface using hwMstpProNewPortState in hwMstpProNewPortTable. Deduct 1 from an interface index to obtain the hwMstpPortId1 value. For example, the interface index of XGigabitEthernet6/0/3 is 11. Deduct 1 from 11 to obtain the hwMstpPortId1 value 10 (0.0.hwMstpPortId1=10.0.0.0.0), that is hwMstpProNewPortState.0.0.10.0.0.0.0 (integer) forwarding(5). Therefore, the forwarding status of XGigabitEthernet6/0/3 is Forwarding.



Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142096

Views: 175643

Downloads: 80

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