swPortSecPortViolationAction

DLINK-PORT-SECURITY-MIB · .1.3.6.1.4.1.171.12.63.3.1.1.1.6

Object

column r/w Enumeration
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.

Context

MIB
DLINK-PORT-SECURITY-MIB
OID
.1.3.6.1.4.1.171.12.63.3.1.1.1.6
Type
column
Access
readwrite
Status
current
Parent
swPortSecPortEntry

Walk the column to discover its indexed instances, or supply every index to read one instance.

Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'DLINK-PORT-SECURITY-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DLINK-PORT-SECURITY-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction.<swPortSecPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DLINK-PORT-SECURITY-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DLINK-PORT-SECURITY-MIB::swPortSecPortViolationAction'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1drop
2shutdown