SW-LAYER2-PORT-MANAGEMENT-MIB :: swL2PortCtrlLockState

MIB Reference — IPNetwork Monitor · Updated October 06, 2026

All MIBs › SW-LAYER2-PORT-MANAGEMENT-MIB › swL2PortCtrlLockState

swL2PortCtrlLockState

Module: SW-LAYER2-PORT-MANAGEMENT-MIB

OID (symbolic): SW-LAYER2-PORT-MANAGEMENT-MIB::swL2PortCtrlLockState

OID (numeric): 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9

Node type: OBJECT-TYPE

Type: INTEGER

Access: read-write

Description: The state of this entry. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Port lock funtion disable. enable(3) - Locking a port provides the CPU with the ability to decide which address are permitted to reside on such port, who knows about these address, and unknown packet forwarding to/from such ports. This is a way to prevent undesired traffic from being received or transmmited on the port.

What is swL2PortCtrlLockState?

Enables port locking on this port, which restricts which MAC addresses are permitted to send traffic through it and blocks forwarding to or from unknown addresses - an admin uses this as a basic port-security measure against unauthorized devices.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9
snmpwalk -v2c -c public <target> SW-LAYER2-PORT-MANAGEMENT-MIB::swL2PortCtrlLockState

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9.1
snmpget -v2c -c public <target> SW-LAYER2-PORT-MANAGEMENT-MIB::swL2PortCtrlLockState.1

Set instance 1 (SNMPv2c):

snmpset -v2c -c private <target> 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9.1 i <value>

Start monitoring D-Link/Marconi ES2000-series Layer 2 switch (per-port link/control/statistics) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the SW-LAYER2-PORT-MANAGEMENT-MIB::swL2PortCtrlLockState OID value, configure state conditions and alerts, and monitor any D-Link/Marconi ES2000-series Layer 2 switch (per-port link/control/statistics) from a single console.

OID Breakdown

Upper-level ancestors (15 from the standard OID tree / other modules)
Numeric OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.4privateAirPair-MIB
1.3.6.1.4.1enterprisesAirPair-MIB
1.3.6.1.4.1.326foreCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2systemsCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20ethernetCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20.1edgeCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20.1.2golfCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20.1.2.2golfcommonCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2fore_mgmtCOMMON-GOLF-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2.28es2000MgmtSW-COMMON-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2.28.2swL2MgmtSW-COMMON-MIB
Numeric OIDNameModule
1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4swL2PortMgmtSW-LAYER2-PORT-MANAGEMENT-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2swL2PortCtrlTableSW-LAYER2-PORT-MANAGEMENT-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1swL2PortCtrlEntrySW-LAYER2-PORT-MANAGEMENT-MIB
1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9swL2PortCtrlLockStateSW-LAYER2-PORT-MANAGEMENT-MIB