cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1679
Views
0
Helpful
8
Replies

Event manager for QoS class load

icale1234
Level 1
Level 1

Does any one know is it possible to configure event manager to send SNMP trap when one QoS class match the thresholds.

We have best effort and priority traffic on the same link, configured by CBQoS.

We would like to have alarm when priority traffic reach 90 % of available traffic for that class.And the second one when traffic fall below 80 %.

Do you have configuration example?

thanks,

Ivica

1 Accepted Solution

Accepted Solutions

Sorry, I missed your reply.

Yes, this is what I meant.  Assuming you want to use the cbQosPoliceConformedBitRate object as your trigger, you could build an EEM policy such as:

event manager applet check-cbr

event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.7.18.13991939 get-type exact entry-op ge entry-val 100000 poll-interval 10

action 1.0 syslog msg "Current CBR is $_snmp_oid_val"

In this example, the 100000 value is the trigger CBR.  Adjust this as needed.  This applet will poll the cbQosPoliceConformedBitRate value every 10 seconds, and fire when the CBR is at or above the specified value.

View solution in original post

8 Replies 8

Joe Clarke
Cisco Employee
Cisco Employee

Yes, this is possible.  Provide CLI output that would indicate when the QoS class crosses the desired threshold.  For what IOS version(s) will you need support?

Do you have a configuration example?

IOS version is

c1841-adventerprisek9-mz.124-1a.bin

Do I need to configure something like this "event snmp oid "1.3.6.1.4.1.9.9.166.1.17.1.1.7"?


That's a relatively old release of IOS.  You may see problems with EEM.  You can use SNMP for this, but you'll need to know the instance IDs for the specific object you want.  Provide an SNMP Walk of the CISCO-CLASS-BASED-QOS-MIB from this device.

I found this OID in CLASS-BASED-QOS-MIB,

1.3.6.1.4.1.9.9.166.1.17.1.1.7 - cbQosPoliceConformedBitRate

but I dont know how to know what should I add for speciffically service-policy (.1 or .2, etc.)

What configuration you propose? Can you share a example?

Thanks,

Ivica

I need more details before I can create a script.  I need to see an SNMP Walk of the

CISCO-CLASS-BASED-QOS-MIB to understand how your particular device is configured.

you mean this

~]$ snmpwalk -v 1 -c "string"  A.B.C.D   1.3.6.1.4.1.9.9.166.1.17.1.1.7

SNMPv2-SMI::enterprises.9.9.166.1.17.1.1.7.18.13991939 = Gauge32: 1000
SNMPv2-SMI::enterprises.9.9.166.1.17.1.1.7.18.14053667 = Gauge32: 0

ivica

Sorry, I missed your reply.

Yes, this is what I meant.  Assuming you want to use the cbQosPoliceConformedBitRate object as your trigger, you could build an EEM policy such as:

event manager applet check-cbr

event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.7.18.13991939 get-type exact entry-op ge entry-val 100000 poll-interval 10

action 1.0 syslog msg "Current CBR is $_snmp_oid_val"

In this example, the 100000 value is the trigger CBR.  Adjust this as needed.  This applet will poll the cbQosPoliceConformedBitRate value every 10 seconds, and fire when the CBR is at or above the specified value.

Thank you for answer.

In try it and it works perfectly.

Also, I have used a mr. Pepelnjak script for linking OID number and QoS class.

  "http://wiki.nil.com/Class-based_QoS_MIB_indexes"

Ivica

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: