swPortSecTrapState

PORT-SECURITY-MIB · .1.3.6.1.4.1.171.12.63.1.3

Object

scalar r/w Enumeration
When enabled(1), whenever there's a new MAC address that violates
the pre-defined port security configuration, trap will be sent out.

Context

MIB
PORT-SECURITY-MIB
OID
.1.3.6.1.4.1.171.12.63.1.3
Type
scalar
Access
readwrite
Status
current
Parent
swPortSecCtrl

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'PORT-SECURITY-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PORT-SECURITY-MIB::swPortSecTrapState.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PORT-SECURITY-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PORT-SECURITY-MIB::swPortSecTrapState'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1enabled
2disabled