All MIBs › HUAWEI-SWITCH-L2MAM-EXT-MIB › hwMacTrapPortCfgLearn
hwMacTrapPortCfgLearn
Module: HUAWEI-SWITCH-L2MAM-EXT-MIB
OID (symbolic): HUAWEI-SWITCH-L2MAM-EXT-MIB::hwMacTrapPortCfgLearn
OID (numeric): 1.3.6.1.4.1.2011.5.25.315.1.1.1.2
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: The alarm switch of the new mac. The meanings of the values are: enable(1),disanle(2).
What is hwMacTrapPortCfgLearn?
This setting controls whether the switch sends an alarm or trap notification whenever a new MAC address is learned on a specific port. Administrators enable it on ports where unexpected new devices should trigger immediate alerting, such as ports that are supposed to have only one fixed device connected. For example, enabling this on a server-room port would alert the admin if an unauthorized device's MAC address suddenly appears on that port.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.2011.5.25.315.1.1.1.2 snmpwalk -v2c -c public <target> HUAWEI-SWITCH-L2MAM-EXT-MIB::hwMacTrapPortCfgLearn
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.2011.5.25.315.1.1.1.2.1 snmpget -v2c -c public <target> HUAWEI-SWITCH-L2MAM-EXT-MIB::hwMacTrapPortCfgLearn.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.2011.5.25.315.1.1.1.2.1 i <value>
Start monitoring Huawei Layer 2/Layer 3 switch (per-VLAN multicast MAC filtering) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the HUAWEI-SWITCH-L2MAM-EXT-MIB::hwMacTrapPortCfgLearn OID value, configure state conditions and alerts, and monitor any Huawei Layer 2/Layer 3 switch (per-VLAN multicast MAC filtering) from a single console.
OID Breakdown
Upper-level ancestors (9 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.2011 | huawei | EXPERTV2-MIB |
| 1.3.6.1.4.1.2011.5 | huaweiMgmt | HUAWEI-3COM-OID-MIB |
| 1.3.6.1.4.1.2011.5.25 | huaweiDatacomm | HUAWEI-3COM-OID-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.2011.5.25.315 | hwSWITCH_L2MAM_EXT | HUAWEI-SWITCH-L2MAM-EXT-MIB |
| 1.3.6.1.4.1.2011.5.25.315.1 | hwSwitchL2MamExtObjects | HUAWEI-SWITCH-L2MAM-EXT-MIB |
| 1.3.6.1.4.1.2011.5.25.315.1.1 | hwMacTrapPortCfgTable | HUAWEI-SWITCH-L2MAM-EXT-MIB |
| 1.3.6.1.4.1.2011.5.25.315.1.1.1 | hwMacTrapPortCfgEntry | HUAWEI-SWITCH-L2MAM-EXT-MIB |
| 1.3.6.1.4.1.2011.5.25.315.1.1.1.2 | hwMacTrapPortCfgLearn | HUAWEI-SWITCH-L2MAM-EXT-MIB |