08-27-2018 04:55 AM - edited 03-05-2019 10:52 AM
Hi everyone,
there is a eem configuration which is using in my new job. I try to slove what does it do but i am confused. could anyone please light me about the configuration below. i don't understand the condition of the conf. because of that i only add just condition side.
event manager applet SIM_Slot_Switch authorization bypass
event tag one track 3 state down maxrun 2000
event tag two track 3 state up
trigger occurs 5 period 600
correlate event one or event two
attribute tag one occurs 1
attribute tag two occurs 1
08-27-2018 02:20 PM
Hello,
post the full configuration of the router...
08-27-2018 11:27 PM
Here it is;
track 1 ip sla 1 reachability
!
track 3 list boolean or
object 4
object 5
!
track 4 ip sla 4 reachability
!
track 5 ip sla 5 reachability
----
ip sla auto discovery
ip sla 1
icmp-echo 10.z.z.z source-interface BVI1
ip sla schedule 1 life forever start-time now
ip sla 4
icmp-echo 10.x.x.x source-interface Cellular0
ip sla schedule 4 life forever start-time now
ip sla 5
icmp-echo 10.y.y.y source-interface Cellular0
ip sla schedule 5 life forever start-time now
-----
event manager applet SIM_Slot_Switch authorization bypass
event tag one track 3 state down maxrun 2000
event tag two track 3 state up
trigger occurs 5 period 600
correlate event one or event two
attribute tag one occurs 1
attribute tag two occurs 1
action 01 cli command "en"
action 02 while 1 eq 1
action 03 cli command "show cell 0 all | inc Active SIM"
action 04 regexp "Active SIM = ([0-9])" "$_cli_result" match slot
action 05 if $slot eq "0"
action 06 cli command "cellular 0 gsm sim activate slot 1"
action 07 cli command "cellular 0 lte sim activate slot 1"
action 08 else
action 09 cli command "cellular 0 gsm sim activate slot 0"
action 10 cli command "cellular 0 lte sim activate slot 0"
action 11 end
action 12 syslog msg "SIM_SLOT_SWITCHED"
action 13 wait 450
action 14 cli command "show track 3 | i B"
action 15 regexp "Boolean OR is ([A-Za-z]+)" "$_cli_result" match state
action 16 if $state eq "Up"
action 17 syslog msg "SIM_Success"
action 18 break
action 19 else
action 20 syslog msg "SIM_Fail"
action 21 end
action 22 end
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