Got it

How do I query existing VLANs on a switch through SNMP

Created: Jun 24, 2019 07:29:53Latest reply: Jun 24, 2019 07:31:52 311 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

How do I query existing VLANs on a switch through SNMP

  • x
  • convention:

Featured Answers
All_About_Switch
Official Created Jun 24, 2019 07:31:52 Helpful(0) Helpful(0)

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.

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 1, 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 1 Querying VLAN information 
fig_dc_mib_vlan_example_000401.png
View more
  • x
  • convention:

All Answers
All_About_Switch
All_About_Switch Official Created Jun 24, 2019 07:31:52 Helpful(0) Helpful(0)

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.

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 1, 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 1 Querying VLAN information 
fig_dc_mib_vlan_example_000401.png
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community
Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.