Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

IPSLA and EEM

Hello All,

I have a one 10Mbps link and one 2Mbps link to another router. I want to shut 2Mbps link when 10Mbps link goes down so that traffic flows to other router via IBGP. the below configuration is not working can i get any help.

ip sla 10
frequency 30
icmp-echo 20.0.0.2 source-ip 20.0.0.1
ip sla schedule 10 life forever start-time now
ip sla reaction-configuration 10 react timeout threshold-type immediate action-type trapAndTrigger

event manager applet LOSS
event tag 1.3 ipsla operation-id 10 reaction-type timeout
trigger
correlate event 1.3
attribute tag 1.3 occurs 1
action 005   if $_ipsla_condition eq "Occurred"
action 010    cli command "enable"
action 015    cli command "configure term"
action 020    cli command "interfaces serial1/0"
action 025    cli command "shut"
action 030   else
action 035    cli command "enable"
action 040    cli command "configure term"
action 045    cli command "interfaces serial1/0"
action 050    cli command "no sh"
action 085   end

Regards,

Sathvik

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

IPSLA and EEM

This applet is overcomplicated for what you want to do, plus you have a typo on your interface line.  Try this:

event manager applet LOSS

event ipsla operation-id 10 reaction-type timeout

action 005   if $_ipsla_condition eq "Occurred"

action 010    cli command "enable"

action 015    cli command "configure term"

action 020    cli command "interface serial1/0"

action 025    cli command "shut"

action 030   else

action 035    cli command "enable"

action 040    cli command "configure term"

action 045    cli command "interface serial1/0"

action 050    cli command "no sh"

action 085   end

4 REPLIES
Cisco Employee

IPSLA and EEM

This applet is overcomplicated for what you want to do, plus you have a typo on your interface line.  Try this:

event manager applet LOSS

event ipsla operation-id 10 reaction-type timeout

action 005   if $_ipsla_condition eq "Occurred"

action 010    cli command "enable"

action 015    cli command "configure term"

action 020    cli command "interface serial1/0"

action 025    cli command "shut"

action 030   else

action 035    cli command "enable"

action 040    cli command "configure term"

action 045    cli command "interface serial1/0"

action 050    cli command "no sh"

action 085   end

New Member

IPSLA and EEM

Hi Joseph,

This applet also didnt work. Enabled debug event manager detector cli but couldnt see any logs. Have a doubt in action 005, in if else block have used eq "Occured" is this predefined ?

ip sla 10

icmp-echo 20.0.0.2 source-ip 20.0.0.1

ip sla schedule 10 life forever start-time now

ip sla reaction-configuration 10 react timeout threshold-type immediate action-type trapAndTrigger

event manager applet LOSS

event ipsla operation-id 10 reaction-type timeout

action 005 if $_ipsla_condition eq Occured

action 010  cli command "enable"

action 015  cli command "configure term"

action 020  cli command "interface serial1/0"

action 025  cli command "shut"

action 030 else

action 035  cli command "enable"

action 040  cli command "configure term"

action 045  cli command "interface serial1/0"

action 050  cli command "no sh"

action 085 end

Cisco Employee

IPSLA and EEM

Yes, it's defined, but Occurred is misspelled.  You forgot the second 'r'.  If you want to see the CLI executed, you need to enable "debug event manager action cli".

New Member

IPSLA and EEM

oh!! Thank you

1242
Views
0
Helpful
4
Replies
CreatePlease to create content