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

eem script not working

Hi guy 

I would like to use EEM script on router cisco for clear subscriber session on ASR router function ISG.

but not work. something wrong.

 

event manager applet clear@05
event timer cron name clear@05 cron-entry "0 0 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "clear subscriber session all"
exit

 

thank you

1 Accepted Solution

Accepted Solutions

event manager applet clear@0
event none
event timer cron name clear@0 cron-entry "35 0 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "clear subscriber session all" pattern "\[confirm\]"
action 3.0 cli command "y"
exit

 

 

I got it thank you

View solution in original post

2 Replies 2

event manager applet clear@0
event none
event timer cron name clear@0 cron-entry "35 0 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "clear subscriber session all" pattern "\[confirm\]"
action 3.0 cli command "y"
exit

 

 

I got it thank you

balaji.bandi
Hall of Fame
Hall of Fame

clear subscriber session all  - was not sure it will ask you yes or no action user input - try to run manually see if the command works.

 

if that working debug EEM see what is wrong ?

 

Hope you like to run this every night at 00:00 time (0 0 * * *)

 

debug event manager action cli

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help