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

S12700 V200R011C10 MIB Reference

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

Querying VLAN Information

Querying Created VLAN Information

hwL2VlanMIBTable describes created VLAN information on the device, including the VLAN description and information about interfaces in VLANs.

You can query created VLAN information on the device through hwL2VlanDescr.

Table 3-6  Description of MIB objects

Object

Description

OID

hwL2VlanDescr

This object indicates the created VLAN on the device.

1.3.6.1.4.1.2011.5.25.42.3.1.1.1.1.2

As shown in Figure 3-74, select hwL2VlanDescr and perform the Walk operation to query created VLAN information on the device.

For example, hwL2VlanDescr.2 (octet string) VLAN 0002 indicates that VLAN 2 has been created and the description of VLAN 2 is VLAN 0002. The following query result indicates that VLAN 1, VLAN 2, VLAN 3, VLAN 4, VLAN 10, and VLAN 11 have been created.

Figure 3-74  Querying VLAN information

Querying Information About a VLAN and Interfaces in the VLAN

hwL2VlanMIBTable describes created VLAN information on the device, including the VLAN description and information about interfaces in VLANs.

You can query information about all interfaces added to a VLAN in tagged and untagged modes through hwL2VlanPortList, excluding the Eth-Trunk.

Table 3-7  Description of MIB objects

Object

Description

OID

hwL2VlanPortList

This object indicates information about the interfaces that join VLANs in tagged and untagged modes.

1.3.6.1.4.1.2011.5.25.42.3.1.1.1.1.3

To query information about the interfaces that join a VLAN, perform the following steps:

  1. As shown in Figure 3-75, select hwL2VlanPortList and perform the Walk operation to query information about all created VLANs and interfaces that join the VLANs.
    The query result in red box is used as an example:
    • In the first column, the value 2 in hwL2VlanPortList.2 (octet string) indicates information about all interfaces in VLAN 2.
    • In the second column, 00.00.C0 is a set of indexes of interfaces in VLAN 2, which is displayed in hexadecimal notation. The value is converted into 00000000 00000000 11000000 in binary notation. The index starts from 0 in ascending order. The value 1 indicates that the corresponding interface joins VLAN 2. The query result indicates that interfaces 16 and 17 join VLAN 2.
    Figure 3-75  Querying information about interfaces in the VLAN
  2. Query the mapping between interface names and interface indexes.

    hwL2IfTable describes information about Layer 2 interfaces. You can query the mapping between interface names and interface indexes through hwL2IfPortName.
    Table 3-8  Description of MIB objects

    Object

    Description

    OID

    hwL2IfPortName

    This object indicates the interface name corresponding to the Layer 2 interface index.

    1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.19

    As shown in Figure 3-76, select hwL2IfPortName and perform the Walk operation to query the interface names corresponding to all Layer 2 interface indexes on the device.

    The query result in red box is used as an example:

    hwL2IfPortName.16 (octet string) GigabitEthernet6/1/4 indicates that interface with index 16 corresponds to GigabitEthernet6/1/4, that is, GigabitEthernet6/1/4 joins VLAN 2.

    hwL2IfPortName.17 (octet string) GigabitEthernet6/1/5 indicates that interface with index 17 corresponds to GigabitEthernet6/1/5, that is, GigabitEthernet6/1/5 joins VLAN 2.

    Figure 3-76  Querying interface names
Translation
Download
Updated: 2019-03-29

Document ID: EDOC1000178122

Views: 765651

Downloads: 36

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