cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1909
Views
0
Helpful
1
Replies

HSRP EEM Script

Vinayaka Raman
Level 1
Level 1

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
1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I don't understand the ask.  It looks like those two EEM applets will do what you want.  What problem are you facing?