07-19-2011 10:53 AM
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
07-19-2011 11:04 AM
I forgot yo mention the code is 124-15.T
07-20-2011 12:56 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide