HSRP EEM Script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2013 05:33 PM
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"
- Labels:
-
Network Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2013 01:53 PM
I don't understand the ask. It looks like those two EEM applets will do what you want. What problem are you facing?
