CISCO-PORT-SECURITY-MIB :: cpsIfViolationCount

MIB Reference — IPNetwork Monitor · Updated October 05, 2026

All MIBs › CISCO-PORT-SECURITY-MIB › cpsIfViolationCount

cpsIfViolationCount

Module: CISCO-PORT-SECURITY-MIB

OID (symbolic): CISCO-PORT-SECURITY-MIB::cpsIfViolationCount

OID (numeric): 1.3.6.1.4.1.9.9.315.1.2.1.1.9

Node type: OBJECT-TYPE

Type: Counter32

Access: read-only

Description: This object indicates the number of violations occurred on a secure interface. The counter will be initialized to zero when the port security feature is enabled on an interface. This MIB object is only instantiated if the device can provide this violation statistics on the interface.

What is cpsIfViolationCount?

Counts the number of port security violations that have occurred on a secured interface, resetting to zero when port security is enabled on that interface.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.9.9.315.1.2.1.1.9
snmpwalk -v2c -c public <target> CISCO-PORT-SECURITY-MIB::cpsIfViolationCount

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.9.9.315.1.2.1.1.9.1
snmpget -v2c -c public <target> CISCO-PORT-SECURITY-MIB::cpsIfViolationCount.1

Start monitoring Cisco Catalyst switch (Layer 2 port security) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the CISCO-PORT-SECURITY-MIB::cpsIfViolationCount OID value, configure state conditions and alerts, and monitor any Cisco Catalyst switch (Layer 2 port security) from a single console.

How to Use in IPNetwork Monitor

Select a Cisco Catalyst switch (Layer 2 port security) as the target host to create a monitor — the SNMP service should be up and running on it. Click New Monitor, then check SNMP Custom on the Favorites tab, click Next, and confirm the host. On the next page, click Select... to open the built-in SNMP MIB Browser and type cpsIfViolationCount into the Find box to locate it in the OID tree, selecting the specific row/instance you want to monitor since this is a table column, then select it and click OK. This object indicates the number of violations occurred on a secure interface. On the monitor's Main parameters page you can set the target's SNMP port (default 161), credentials, polling interval, and other settings — see the SNMP Monitor help for details. On the State conditions and Alerting tabs, configure when the monitor should change state and trigger an alert; since this is a Counter32-type OID, Value bounds is the most useful condition here — trigger an alert if the counter increases between polls, since a rising count of errors, failures, or discards often points to a real underlying problem. Click Finish to create the monitor; you can adjust any parameter later.

OID Breakdown

Upper-level ancestors (8 from the standard OID tree / other modules)
Numeric OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.4privateAirPair-MIB
1.3.6.1.4.1enterprisesAirPair-MIB
1.3.6.1.4.1.9ciscoCAT2600-MIB
1.3.6.1.4.1.9.9ciscoMgmtCISCO-SMI
Numeric OIDNameModule
1.3.6.1.4.1.9.9.315ciscoPortSecurityMIBCISCO-PORT-SECURITY-MIB
1.3.6.1.4.1.9.9.315.1ciscoPortSecurityMIBObjectsCISCO-PORT-SECURITY-MIB
1.3.6.1.4.1.9.9.315.1.2cpsInterfaceObjectsCISCO-PORT-SECURITY-MIB
1.3.6.1.4.1.9.9.315.1.2.1cpsIfConfigTableCISCO-PORT-SECURITY-MIB
1.3.6.1.4.1.9.9.315.1.2.1.1cpsIfConfigEntryCISCO-PORT-SECURITY-MIB
1.3.6.1.4.1.9.9.315.1.2.1.1.9cpsIfViolationCountCISCO-PORT-SECURITY-MIB