Hi Fellows,
I'm trying to shutdown an interface in case of high packet loss.
I'm using IPSLA UDP jitter (PacketLossDS - PacketLossSD) to detect the losses and EEM to shutdown the interface.
the IPSLA is working fine, I can see there are losses through it, but the interface doesn't goes down.
Here is what I did:
ip sla 20110
udp-jitter 192.168.80.201 20000 num-packets 1000
request-data-size 1500
frequency 1800
ip sla schedule 20110 life forever start-time now
ip sla 20140
udp-jitter 192.168.80.197 20000 num-packets 1000
request-data-size 1500
frequency 1800
ip sla schedule 20140 life forever start-time now
ip sla reaction-configuration 20140 react packetLossDS threshold-value 10 1 threshold-type immediate action-type triggerOnly
ip sla reaction-configuration 20140 react packetLossSD threshold-value 10 1 threshold-type immediate action-type triggerOnly
event manager applet shutdown_tunnel
event tag packetLossDS_20140 ipsla operation-id 20140 reaction-type packetLossDS
event tag packetLossSD_20140 ipsla operation-id 20140 reaction-type packetLossSD
trigger
correlate event packetLossSD_20140 or event packetLossDS_20140
action 0 cli command "enable"
action 1 cli command "configure terminal"
action 2 cli command "interface tunnel20140"
action 3 cli command "shutdown"
action 4 cli command "end"
Am I missing something?
Thanks in advance!!!