All MIBs › DGS3120-24TC-L2MGMT-MIB › swL2PortCtrlLearningState
swL2PortCtrlLearningState
Module: DGS3120-24TC-L2MGMT-MIB
OID (symbolic): DGS3120-24TC-L2MGMT-MIB::swL2PortCtrlLearningState
OID (numeric): 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1.7
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: This object decides if the port is locked or not.
What is swL2PortCtrlLearningState?
Controls whether the switch learns MAC addresses on this port at all; disabling it effectively locks the port so no new source MAC address gets added to the forwarding table. Admins disable it on ports where they want to prevent any new device from being learned, as a basic port-security measure.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1.7 snmpwalk -v2c -c public <target> DGS3120-24TC-L2MGMT-MIB::swL2PortCtrlLearningState
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1.7.1 snmpget -v2c -c public <target> DGS3120-24TC-L2MGMT-MIB::swL2PortCtrlLearningState.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1.7.1 i <value>
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> swL2PortCtrlLearningState.1
Start monitoring D-Link DGS-3120-24TC 24-port Gigabit combo switch with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the DGS3120-24TC-L2MGMT-MIB::swL2PortCtrlLearningState OID value, configure state conditions and alerts, and monitor any D-Link DGS-3120-24TC 24-port Gigabit combo switch from a single console.
OID Breakdown
Upper-level ancestors (11 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.171 | d_link | DE1500-MIB |
| 1.3.6.1.4.1.171.11 | dlink_mgmt | DES2218-MIB |
| 1.3.6.1.4.1.171.11.117 | dlink_Dgs3120Proj | SWDGS3120PRIMGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1 | dlink_Dgs3120ProjModel | SWDGS3120PRIMGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1.1 | dlink_Dgs3120Proj_Dgs3120_24TC | SWDGS3120PRIMGMT-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.11.117.1.1.2 | swL2MgmtMIB | DGS3120-24TC-L2MGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1.1.2.3 | swL2PortMgmt | DGS3120-24TC-L2MGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1.1.2.3.2 | swL2PortCtrlTable | DGS3120-24TC-L2MGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1 | swL2PortCtrlEntry | DGS3120-24TC-L2MGMT-MIB |
| 1.3.6.1.4.1.171.11.117.1.1.2.3.2.1.7 | swL2PortCtrlLearningState | DGS3120-24TC-L2MGMT-MIB |