HUAWEI-VLAN-MIB :: hwVlanPorts

MIB Reference — IPNetwork Monitor

All MIBsHUAWEI-VLAN-MIBhwVlanPorts

hwVlanPorts

Module: HUAWEI-VLAN-MIB

OID (symbolic): HUAWEI-VLAN-MIB::hwVlanPorts

OID (numeric): 1.3.6.1.4.1.2011.5.6.1.1.1.3

Node type: OBJECT-TYPE

Type: PortList

Access: read-write

Description:

Indicates the list of the standard ports in the VLAN. If the VLAN contains a port, the corresponding bit of the port is set to 1. The value of hwVlanPorts is an octet string. One bit in each octet indicates one port, so the octet string can indicate eight ports. When a bit is set to 0, it indicates that the corresponding port does not belong to this VLAN. When a bit is set to 1, it indicates that the corresponding port belongs to this VLAN. The order is as follows: The maximum number of ports in a slot is 64, so the ports need to occupy eight octets. The order, from left to right, is presented as eight groups, 0-7, 8-15, 16-23, 24-31, 32-39, 40-47, 48-55, and 56-63. In each octet, the port IDs in ascending order are presented from low bit to high bit. For example, ports 0/11/2 and 0/11/3 need to added to VLAN 2. The values of hwVlanPorts of the upstream ports (ports 0/11/2 and 0/11/3) to be added is calculated as follows: For ports 0-7 in slot 11, their corresponding character string positions are 76543210, and after ports 0/11/2 and 0/11/3 are added, the bitmap is 00001100 00000000 00000000 00000000, and the string is 0c 00 00 00 00 00 00 00. Assuming that the other slots do not have any port that is added to the VLAN, the character string of each of these slots is 0x0000000000000000. According to the ascending order of slot from left to right, the character strings of ports 0/11/2 and 0/11/3 are as follows: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0c00000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.2011.5.6.1.1.1.3
snmpwalk -v2c -c public <target> HUAWEI-VLAN-MIB::hwVlanPorts

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.2011.5.6.1.1.1.3.1
snmpget -v2c -c public <target> HUAWEI-VLAN-MIB::hwVlanPorts.1

Set instance 1 (SNMPv2c):

snmpset -v2c -c private <target> 1.3.6.1.4.1.2011.5.6.1.1.1.3.1 s <value>

OID Breakdown

Numeric OIDNameModule
1isoLANART-AGENT
1.3orgBIANCA-BRICK-PPP-MIB
1.3.6dodBIANCA-BRICK-PPP-MIB
1.3.6.1internetBIANCA-BRICK-PPP-MIB
1.3.6.1.4privateBIANCA-BRICK-PPP-MIB
1.3.6.1.4.1enterprisesANIROOT-MIB
1.3.6.1.4.1.2011huaweiHUAWEI-3COM-OID-MIB
1.3.6.1.4.1.2011.5huaweiMgmtHUAWEI-3COM-OID-MIB
1.3.6.1.4.1.2011.5.6hwVlanHUAWEI-MIB
1.3.6.1.4.1.2011.5.6.1hwVlanMngObjectHUAWEI-VLAN-IF-MIB
1.3.6.1.4.1.2011.5.6.1.1hwVlanMIBTableHUAWEI-VLAN-MIB
1.3.6.1.4.1.2011.5.6.1.1.1hwVlanMIBEntryHUAWEI-VLAN-MIB
1.3.6.1.4.1.2011.5.6.1.1.1.3hwVlanPortsHUAWEI-VLAN-MIB