All MIBs › TN-MGMT-MIB › tnSysPortMacLearningState
tnSysPortMacLearningState
Module: TN-MGMT-MIB
OID (symbolic): TN-MGMT-MIB::tnSysPortMacLearningState
OID (numeric): 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1.1
Node type: OBJECT-TYPE
Type: PortList
Access: read-write
Description:
This indicates the port's state on MAC learning. If the bit corresponding to the port is set, then learning is enabled else it is disabled.
What is tnSysPortMacLearningState?
This is a bitmask that shows which switch ports are learning MAC addresses from incoming frames. When learning is on, the switch notes which devices are on which ports; when off, the port is blocked or read-only. A network admin would enable learning on trunk ports but disable it on secure edge ports to prevent spoofing.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1.1 snmpwalk -v2c -c public <target> TN-MGMT-MIB::tnSysPortMacLearningState
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1.1.1 snmpget -v2c -c public <target> TN-MGMT-MIB::tnSysPortMacLearningState.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1.1.1 s <value>
OID Breakdown
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | BIANCA-BRICK-PPP-MIB |
| 1.3.6 | dod | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1 | internet | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4 | private | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4.1 | enterprises | ANIROOT-MIB |
| 1.3.6.1.4.1.868 | transition | TRANSITION-SMI |
| 1.3.6.1.4.1.868.2 | products | TRANSITION-SMI |
| 1.3.6.1.4.1.868.2.5 | tnProducts | TRANSITION-SMI |
| 1.3.6.1.4.1.868.2.5.3 | tnMgmtMIB | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1 | tnMgmtObjects | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1.1 | tnDevMgmt | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1.1.4 | tnDevSysMACLearning | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1.1.4.1 | tnDevSysMacLearningTable | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1 | tnDevSysMacLearningEntry | TN-MGMT-MIB |
| 1.3.6.1.4.1.868.2.5.3.1.1.4.1.1.1 | tnSysPortMacLearningState | TN-MGMT-MIB |