06-14-2021 10:13 AM
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
Solved! Go to Solution.
06-14-2021 10:38 AM
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
06-14-2021 10:38 AM
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
06-14-2021 10:46 AM - edited 06-14-2021 10:47 AM
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
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