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

EEM not matching on SLA

westj
Level 1
Level 1

I have an EEM applet that I want to trigger when sla 120 goes down, as long as sla 110 is up. But I am not able to get it to trigger properly, can you please let me know what is wrong?

 

Here is the applet:

event manager applet Wi-Fi-down-back-to-LTE
 description if LTE and Wi-Fi are up, and Wi-Fi fails move back to LTE
 event tag 5120 track 120 state down
 event tag 5220 track 110 state up
 trigger delay 500
  correlate event 5120 and event 5220
 action 1.0 syslog msg "EEM detected track change, Wifi failed, LTE Up"
 action 1.5 cli command "en"
 action 2.0 cli command "conf t"
 action 2.5 cli command "no ip nat inside source list NAT-ACL interface ethernet1/2 overload" pattern "no"
 action 2.8 cli command "yes"
 action 3.0 cli command "ip nat inside source list NAT-ACL interface ethernet1/1 overload"
 action 4.0 cli command "exit"
 action 6.0 syslog msg "Done with changes for Wi-Fi failed, moving back to LTE"

 

The activity:

*Aug 17 14:10:35: %TRACK-6-STATE: 120 ip sla 2 state Up -> Down

L2E#track
Track Type        Instance                   Parameter        State Last Change
110   ip sla      1                          state            Up    01:26:15
120   ip sla      2                          state            Down  00:04:28

120 went down, and 110 is up, but EEM did not trigger. How can I get it to trigger when 120 goes down and 110 is still up?

 

Thank you

 

2 Replies 2

westj
Level 1
Level 1

Here are the SLA and track commands:

 

!
track 110 ip sla 1
!
track 120 ip sla 2

!
ip sla 1
 icmp-echo 4.2.2.1 source-interface Ethernet1/1
 tag LTE interface via Linux NAT
 threshold 1000
 timeout 2000
 frequency 2
ip sla schedule 1 life forever start-time now
ip sla 2
 icmp-echo 4.2.2.2 source-interface Ethernet1/2
 tag Wi-Fi interface
 threshold 1000
 timeout 2000
 frequency 2
ip sla schedule 2 life forever start-time now

I figured it out, I put the intelligence on the track with a boolean command:

!
track 555 list boolean and
 object 110
 object 120 not

!

event manager applet Wi-Fi-down-back-to-LTE
 description if LTE and Wi-Fi are up, and Wi-Fi fails move back to LTE
 event track 555 state up
 action 1.0 syslog msg "EEM detected track change, Wifi failed, LTE Up"
 action 1.5 cli command "en"
 action 1.7 cli command "release dhcp ethernet 1/2"
 action 2.0 cli command "conf t"
 action 2.5 cli command "no ip nat inside source list NAT-ACL interface ethernet1/2 overload" pattern "no"
 action 2.8 cli command "yes"
 action 3.0 cli command "ip nat inside source list NAT-ACL interface ethernet1/1 overload"
 action 4.0 cli command "exit"
 action 6.0 syslog msg "Done with changes for Wi-Fi failed, moving back to LTE"

Review Cisco Networking for a $25 gift card