cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
934
Views
0
Helpful
2
Replies

EEM to detect ping loss

deilert
Frequent Contributor
Frequent Contributor

I am looking to use EEM to generate a syslog message if a certain number of pings or % of pings fail

For example

ping ip dest 10.1.1.2 source 10.0.0.1 size 1500 rep 500 data 0x4040

if less than 450 or 90 % of these pings are successful then generate a syslog message

I do not think IPSLA will work because you can not use a data pattern and you have to use udp-jitter probe have a trigger

I want to use this to detect a degraded circuit.

Thanks

2 Replies 2

deilert
Frequent Contributor
Frequent Contributor

I forgot yo mention the code is 124-15.T

Joe Clarke
Hall of Fame Cisco Employee Hall of Fame Cisco Employee
Hall of Fame Cisco Employee

This script should do what you want.  You will need to configure some environment variables before you get started.

event manager environment ping_sweep_repeat 500

event manager environment ping_sweep_pattern 0x4040

event manager environment ping_sweep_src 10.0.0.1

event manager environment ping_sweep_dest 10.1.1.2

event manager environment ping_sweep_size 1500

event manager environment ping_sweep_perc 90

The script is written using the none event detector, so you will need to run it manually:

event manager run no_ping_test.tcl
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: