All MIBs › DLINK-PORT-SECURITY-MIB › swPortSecPortViolationAction
swPortSecPortViolationAction
Module: DLINK-PORT-SECURITY-MIB
OID (symbolic): DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction
OID (numeric): 1.3.6.1.4.1.171.12.63.3.1.1.1.6
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: Used to indicates the action when violation occurs. When the number of secure MAC address reaches the maximum learning number on the port, for drop action, new entry will be dropped and for shutdown action, the port will be shut down and enter error-disabled state immediately.
What is swPortSecPortViolationAction?
This read-write enumeration determines what the switch does when a port's learned-address limit is reached and an unrecognized source MAC appears: drop(1) the frame or shutdown(2) the port. Choosing shutdown puts the port into an error-disabled state immediately, halting all traffic on it until manually re-enabled, while drop only discards the offending frames and keeps the port up. An admin who wants a compromised or misused port forcibly taken offline rather than just filtered would set swPortSecPortViolationAction to shutdown(2).
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.12.63.3.1.1.1.6 snmpwalk -v2c -c public <target> DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.12.63.3.1.1.1.6.1 snmpget -v2c -c public <target> DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.12.63.3.1.1.1.6.1 i <value>
Start monitoring D-Link managed switch (MAC-based port security) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction OID value, configure state conditions and alerts, and monitor any D-Link managed switch (MAC-based port security) from a single console.
OID Breakdown
Upper-level ancestors (8 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.12 | dlink_common_mgmt | DLINK-ID-REC-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.12.63 | swPortSecMIB | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.3 | swPortSecMgmt | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.3.1 | swPortSecMgmtByPort | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.3.1.1 | swPortSecPortTable | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.3.1.1.1 | swPortSecPortEntry | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.3.1.1.1.6 | swPortSecPortViolationAction | DLINK-PORT-SECURITY-MIB |