event manager applet remove-static-routes
event syslog pattern "HSRP-1-STATECHANGE: Vlan1 Grp 1 state Standby -> Active"
action 001 cli command "enable"
action 002 cli command "config t"
action 003 cli command "no ip route x.x.x.x y.y.y.y z.z.z.z"
I wanted to readd the static route when state transition from Active - Standby..
Most of the time, the router will be standby state.
Can you please help me im merging this script?
event manager applet inject-static-routes
event syslog pattern "HSRP-1-STATECHANGE: Vlan1 Grp 1 state Active -> Standby"
action 001 cli command "enable"
action 002 cli command "config t"
action 003 cli command "ip route 100.9.254.27 255.255.255.255 10.62.80.60"
Regards
Vinayak