09-02-2011 02:17 AM
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
Solved! Go to Solution.
09-11-2011 09:25 PM
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.
09-03-2011 07:51 PM
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?
09-04-2011 11:28 PM
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"?
09-04-2011 11:34 PM
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.
09-04-2011 11:46 PM
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
09-04-2011 11:54 PM
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.
09-05-2011 05:00 AM
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
09-11-2011 09:25 PM
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.
09-12-2011 12:28 AM
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
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: