hwVlanPortsExtendFrame

HUAWEI-VLAN-MIB · .1.3.6.1.4.1.2011.5.6.1.1.1.26

Object

column r/w OctetString
Indicates the list of the extend frame standard ports in the VLAN. If 
the VLAN contains a port, the corresponding bit of the port is set to 1. 
The value of hwVlanPortsExtendFrame is mixed encoding of the index 
and octet string. Encoding area, which specifies the index of the FrameId 
and SlotId, consisting of 4 characters and 2 characters respectively. 
Port area, which is represented in octet string format and occupies 16 characters. 
One bit in each octet indicates one port, so 8 octet means 64 ports in a slot. 
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:
If a extend frame has a port that belongs to a VLAN, the port in the 
corresponding frame and slot are represented by octet strings.  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 PortId 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 the same VLAN.
The values of hwVlanPortsExtendFrame of the upstream ports
(ports 1/02/2 and 1/02/3 and 1/03/1) to be added is calculated as follows:
For ports 0-7 in slot 02 in frame 1, their corresponding character string
positions are 76543210, and after ports 1/02/2 and 1/02/3 are added, the bitmap is 
	        00001100 00000000 00000000 00000000 00000000 00000000 00000000 00000000,
and the string is (HEX) 0C 00 00 00 00 00 00 00.
After the FrameId (2 Octet) and SoltId (1 Octet) are added at the front, 
	        the string is 0001 02 0c 00 00 00 00 00 00 00.
In the same way, 1 / 03 / 1 is encoded as 0001 03 02 00 00 00 00 00 00 00.
Assuming that the other slots do not have any port that is added to the VLAN,
The slot information is not filled in. 
Therefore, the length of the code is variable, but usually is an integer multiple 
	        of 22 characters.finally, the string is
00 01 02 0C 00 00 00 00 00 00 00
00 01 03 02 00 00 00 00 00 00 00
	        Under special circumstances, none port in VLAN is described by '0',which is 
	        just one character.

Context

MIB
HUAWEI-VLAN-MIB
OID
.1.3.6.1.4.1.2011.5.6.1.1.1.26
Type
column
Access
readwrite
Status
current
Parent
hwVlanMIBEntry

Walk the column to discover its indexed instances, or supply every index to read one instance.

Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanPortsExtendFrame'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-VLAN-MIB::hwVlanPortsExtendFrame.<hwVlanIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-VLAN-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-VLAN-MIB::hwVlanPortsExtendFrame'

Syntax

OctetString

Values & Constraints

Object Constraints
range: 0-2048