ip sla 1 icmp-echo x.x.x.x source-interface Gig0/1 frequency 10 ! ip sla schedule 1 start-time now life forever ! track 1 ip sla 1 reachability default-state up delay down 30 up 60 ! event manager session cli username "username" event manager environment q " event manager applet TRACK-1-STATE-DOWN-BOUNCE-INTERFACE event track 1 state down action 001 cli command "enable" action 002 cli command "config t" action 003 cli command "event manager applet BOUNCE-INTERFACE" action 004 cli command "event track 1 state down" action 005 cli command "action 001 cli command $q enable$q" action 006 cli command "action 002 cli command $q config t$q" action 007 cli command "action 003 cli command $q interface Serial6/0$q" action 008 cli command "action 004 cli command $q shutdown$q" action 009 cli command "action 005 wait 5" action 010 cli command "action 006 cli command $q no shutdown$q" action 011 cli command "action 007 cli command $q end$q" ! event manager applet TRACK-1-STATE-DOWN-RELOAD-ROUTER event track 1 state down action 001 cli command "enable" action 002 cli command "config t" action 003 cli command "event manager applet RELOAD-ROUTER" action 004 cli command "event timer countdown time 300" action 005 cli command "action 001 cli command $q enable$q" action 006 cli command "action 002 cli command $q config t$q" action 007 cli command "action 003 cli command $q wr mem$q" action 008 cli command "action 004 wait 15" action 009 cli command "action 005 reload" ! event manager applet TRACK-1-STATE-UP event track 1 state up action 001 cli command "enable" action 002 cli command "config t" action 003 cli command "no event manager applet BOUNCE-INTERFACE" action 004 cli command "no event manager applet RELOAD-ROUTER" action 005 cli command "end" action 006 cli command "copy run start" pattern "Destination" action 007 cli command ""