I am investigating whether it is possible to get EEM to monitor a ip sla for the http status code in a http get. See blow:
GM12060#sh ip sla monitor operational-state 5 Entry number: 5 Modification time: *13:40:50.532 UTC Mon Mar 22 2010 Number of Octets Used by this Entry: 2656 Number of operations attempted: 1 Number of operations skipped: 0 Current seconds left in Life: Forever Operational state of entry: Active Last time this entry was reset: Never Connection loss occurred: FALSE Timeout occurred: FALSE Over thresholds occurred: FALSE Latest RTT (milliseconds): 76 Latest operation start time: *13:40:50.536 UTC Mon Mar 22 2010 Latest operation return code: OK Latest DNS RTT: 35 Latest TCP Connection RTT: 17 Latest HTTP time to first byte: 41 Latest HTTP Transaction RTT: 24 Latest HTTP Status: 302 Latest HTTP Message Size: 807 Latest HTTP Entity-Body size: 218
What i would like to do is get EEM to stop the SLA when the HTTP status changes to 404.
I have looked at the ip sla EEM command and it doesnt allow you to monitor this attribute.
Since it appears EEM applets cannot parse CLI output ("event cli pattern" only handles CLI input), an EEM script sees necessary if the approach is to react to any potential "404" pattern appearing in the "sh ip sla monitor operational-state 5" output.
It is possible, but given that you need to execute "show ip sla monitor" you definitely do not have EEM 3.0 yet. Therefore, you will need to do this in an EEM Tcl policy. I can provide an example if you want.
Yes, 12.4(22)T. That includes EEM 3.0, and would open the door for a programmatic applet (i.e. without Tcl). You could still accomplish what you want now, but it would require Tcl. Would you like a Tcl example, or are you considering an upgrade?
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.