hwL2IfMacAddressLearn

HUAWEI-L2IF-MIB · .1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.7

Object

column r/w Enumeration
Status indicates if the interface is allowed to learn mac 
address, enable(1) can be set, (enabled(1) means that 
the interface can learn mac address), otherwise disabled(2) 
can be set. discard(3) means the interface will drop packets.

Context

MIB
HUAWEI-L2IF-MIB
OID
.1.3.6.1.4.1.2011.5.25.42.1.1.1.3.1.7
Type
column
Access
readwrite
Status
current
Parent
hwL2IfEntry
Groups
1

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-L2IF-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-L2IF-MIB::hwL2IfMacAddressLearn'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HUAWEI-L2IF-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HUAWEI-L2IF-MIB::hwL2IfMacAddressLearn.<hwL2IfPortNum>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HUAWEI-L2IF-MIB' -M '/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HUAWEI-L2IF-MIB::hwL2IfMacAddressLearn'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1enabled
2disabled
3discard
4invalid

Conformance