cpsIfViolationAction
CISCO-PORT-SECURITY-MIB ·
.1.3.6.1.4.1.9.9.315.1.2.1.1.8
Object
column r/w
Enumeration
Determines the action that the device will
take if the traffic matches the port security
violation.
shutdown(1) - the interface will be forced to
shut down.
dropNotify(2) - the matched traffic will be
dropped and
cpsSecureMacAddrViolation
notification will be generated.
drop(3) - the matched traffic will be
dropped.
Context
- MIB
- CISCO-PORT-SECURITY-MIB
- OID
.1.3.6.1.4.1.9.9.315.1.2.1.1.8- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- cpsIfConfigEntry
- Groups
- 3
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 'CISCO-PORT-SECURITY-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CISCO-PORT-SECURITY-MIB::cpsIfViolationAction'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CISCO-PORT-SECURITY-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CISCO-PORT-SECURITY-MIB::cpsIfViolationAction.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CISCO-PORT-SECURITY-MIB' -M '/opt/observium/mibs/cisco:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CISCO-PORT-SECURITY-MIB::cpsIfViolationAction'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | shutdown |
2 | dropNotify |
3 | drop |
Conformance
Compliance refinements
ciscoPortSecurityMIBCompliance
Enumeration
Values:
shutdown(1)
The support of the values 'dropNotify' and/or 'drop'
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
ciscoPortSecurityMIBCompliance1
Enumeration
Values:
shutdown(1)
The support of the values 'dropNotify' and/or 'drop'
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
ciscoPortSecurityMIBCompliance2
Enumeration
Values:
shutdown(1)
The support of the values 'dropNotify' and/or 'drop'
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
ciscoPortSecurityMIBCompliance3
Enumeration
Values:
shutdown(1)
The support of the values 'dropNotify' and/or 'drop'
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
ciscoPortSecurityMIBCompliance4
Enumeration
Values:
shutdown(1)
The support of the values 'dropNotify' and/or 'drop'
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.
is not required if the device does not support the
configuration of 'dropNotify' and/or 'drop'.