rcPortSecViolationStatus
SWITCH-PORTSECURITY-MIB ·
.1.3.6.1.4.1.8886.6.1.49.2.1.12
Object
column mandatory
Integer32
This object represents the operational status of the port security feature on an interface. secureup(1) - This indicates port security is operational. shutdown(2) - This indicates that the port is shutdown due to port security violation when the object rcPortSecMacViolationAction is of type 'shutdown'.
Context
- MIB
- SWITCH-PORTSECURITY-MIB
- OID
.1.3.6.1.4.1.8886.6.1.49.2.1.12- Type
- column
- Access
- readonly
- Status
- mandatory
- Parent
- rcPortSecEntry
Net-SNMP examples
How SNMP and these commands workWalk 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 'SWITCH-PORTSECURITY-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-PORTSECURITY-MIB::rcPortSecViolationStatus'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCH-PORTSECURITY-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-PORTSECURITY-MIB::rcPortSecViolationStatus.<rcPortSecIndx>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCH-PORTSECURITY-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCH-PORTSECURITY-MIB::rcPortSecViolationStatus'
Syntax
Integer32
Values & Constraints
Object Constraints
range: 1-2