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 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.326 | fore | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2 | systems | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20 | ethernet | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20.1 | edge | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20.1.2 | golf | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2 | golfcommon | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2 | fore_mgmt | COMMON-GOLF-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28 | es2000Mgmt | SW-COMMON-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2 | swL2Mgmt | SW-COMMON-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4 | swL2PortMgmt | SW-LAYER2-PORT-MANAGEMENT-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2 | swL2PortCtrlTable | SW-LAYER2-PORT-MANAGEMENT-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1 | swL2PortCtrlEntry | SW-LAYER2-PORT-MANAGEMENT-MIB |
| 1.3.6.1.4.1.326.2.20.1.2.2.2.28.2.4.2.1.9 | swL2PortCtrlLockState | SW-LAYER2-PORT-MANAGEMENT-MIB |