All MIBs › PORT-SECURITY-MIB › swPortSecTrapState
swPortSecTrapState
Module: PORT-SECURITY-MIB
OID (symbolic): PORT-SECURITY-MIB::swPortSecTrapState
OID (numeric): 1.3.6.1.4.1.171.12.63.1.3
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: When enabled(1), whenever there's a new MAC address that violates the pre-defined port security configuration, trap will be sent out.
What is swPortSecTrapState?
This setting controls whether the switch sends an SNMP trap whenever a new MAC address violates the configured port security policy, independent of logging. Admins enable it when they want real-time SNMP alerting on security violations without necessarily writing to the local log. Setting swPortSecTrapState to enabled(1) means an intrusion attempt on a locked port immediately shows up as a trap in the NMS.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.12.63.1.3 snmpwalk -v2c -c public <target> PORT-SECURITY-MIB::swPortSecTrapState
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.12.63.1.3.1 snmpget -v2c -c public <target> PORT-SECURITY-MIB::swPortSecTrapState.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.12.63.1.3.1 i <value>
Start monitoring D-Link managed switches (802.1X/MAC-based port security) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the PORT-SECURITY-MIB::swPortSecTrapState OID value, configure state conditions and alerts, and monitor any D-Link managed switches (802.1X/MAC-based port security) from a single console.
OID Breakdown
Upper-level ancestors (10 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 |
| 1.3.6.1.4.1.171.12.63 | swPortSecMIB | DLINK-PORT-SECURITY-MIB |
| 1.3.6.1.4.1.171.12.63.1 | swPortSecCtrl | DLINK-PORT-SECURITY-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.12.63.1.3 | swPortSecTrapState | PORT-SECURITY-MIB |