cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3465
Views
5
Helpful
2
Replies

EEM - event timer cron problem

b.petronio
Level 3
Level 3

Hi,

I have a eem script that verifies if SIM 1 is active in my Dual-Sim router.

The event is activated every 5 mints with a time cron "trigger" .

 

event manager applet Fallback
 event timer cron cron-entry "*/5 * * * *"
 action 0.1 cli command "enable"
 action 0.2 cli command "show cellular 0 security | inc Active SIM ="
 action 0.3 regexp "Active SIM = ([0-9])" "$_cli_result" match sim
 action 0.4 if $sim eq "1"
 action 0.5  cli command "show clock | append flash:cron_log.txt"
 action 0.6  cli command "cellular 0 gsm sim activate slot 0 "
 action 0.7 else
 action 0.8  syslog msg "Allready on SIM0"

 

This was working fine, but then it just started to work like i was 2 applets running at the same time.

Instead 5 to 5 mints, i have 5 to 5 twice... 

 

Already delete and recreate the applet. reload de router, and nothing work :(

 

Demo-SIBS#show event manager history events 
No.  Job Id Proc Status   Time of Event            Event Type        Name
1    10     Actv success  Fri Apr17 17:15:59 2015  timer cron        applet: Fallback
2    11     Actv success  Fri Apr17 17:20:00 2015  timer cron        applet: Fallback
3    12     Actv success  Fri Apr17 17:20:59 2015  timer cron        applet: Fallback
4    13     Actv success  Fri Apr17 17:25:00 2015  timer cron        applet: Fallback 
5    14     Actv success  Fri Apr17 17:25:59 2015  timer cron        applet: Fallback 
6    15     Actv success  Fri Apr17 17:30:00 2015  timer cron        applet: Fallback 
7    16     Actv success  Fri Apr17 17:30:59 2015  timer cron        applet: Fallback 
8    17     Actv success  Fri Apr17 17:35:00 2015  timer cron        applet: Fallback 
9    18     Actv success  Fri Apr17 17:35:59 2015  timer cron        applet: Fallback 
10   19     Actv success  Fri Apr17 17:40:00 2015  timer cron        applet: Fallback 

## Degub ##
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_event_type value:24
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_event_type_string value:timer cron
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_event_severity value:severity-normal
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_type value:cron
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_name value:{}
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_time value:3638278200.002
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_time_sec value:3638278200
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_time_msec value:2
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_remain value:0.000
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_remain_sec value:0
Apr 17 17:50:00: EEM: policy_dir xml builtin: name:_timer_remain_msec value:0
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_event_type value:24
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_event_type_string value:timer cron
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_event_severity value:severity-normal
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_type value:cron
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_name value:{}
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_time value:3638278259.999
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_time_sec value:3638278259
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_time_msec value:999
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_remain value:0.000
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_remain_sec value:0
Apr 17 17:51:00: EEM: policy_dir xml builtin: name:_timer_remain_msec value:0

 

EEM v4.00

Any ideas ?

 

 

 

 

 

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Depending on the IOS version, this could be CSCum88606.  It's fixed in 15.4(2)T1 and higher.

Thank you Joseph,

 

Im on a 15.2(4)M6, so i suppose, we could have more images affected.

 

I'll upgrade to that 15.4(2)T1, and feedback you later.

 

Thanks in advance,

Bruno Petrónio

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: