Hi,
Just a little confused here..... I can do the exact commands in the EEM script directly and it does what I need it to do. However, the script, when triggered, with the "EXACT" same commands sometimes works / sometimes not. Arrrgghhh! So, here is the script:
event manager applet Virtual-PPP1_Ping
event syslog pattern "TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down"
action 010 cli command "enable"
action 011 cli command "clear vpdn tunnel l2tp all" pattern "[confirm]"
action 012 cli command "confirm"
action 020 cli command "conf t"
action 030 cli command "int Virtual-PPP1"
action 040 cli command "shut"
action 045 wait 3
action 050 cli command "no shut"
action 060 cli command "end"
Basically what happens is that the Virtual-PPP1 interface sometimes loses it's ip address through IPCP. So, the L2TP tunnel is still up, BUT, the Virtual-PPP1 interface loses it's assigned IP when I check the interface as it shows "unassigned".
Ideas?
Thanks for the help.
Jason
Try this instead:
event manager applet Virtual-PPP1_Ping
event syslog pattern "TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down" maxrun 30
action 010 cli command "enable"
action 011 cli command "clear vpdn tunnel l2tp all" pattern "confirm"
action 012 cli command "confirm"
action 020 cli command "conf t"
action 030 cli command "int Virtual-PPP1"
action 040 cli command "shut"
action 045 wait 3
action 050 cli command "no shut"
action 060 cli command "end"