04-03-2013 01:40 AM - edited 03-04-2019 07:28 PM
Hello All,
I have
Active/Active, multi homed BGP, dual router , HSRP config on LAN, Now I want to change the HSRP priority to avoid one extra hop in case one ISP fails, I want to use the EEM feature instead of IP SLA which I am currently using But It’s the first time I am trying to use this,
Can you guys help me to find whether my EEM config is good enough to achieve what I am trying to achieve or I need to make some changes to this config
ISP1
event manager applet track-bgp-down
event syslog pattern "%BGP-5-ADJCHANGE: neighbor 10.10.10.17 Down BGP Notification sent"
action 1.0 syslog priority critical msg "EBGP Session to peer is down"
action 2.0 cli command "enable"
action 3.0 cli command "conifg t"
action 4.0 cli command "FastEthernet0/1.90"
action 5.0 cli command " standby 12 priority 85 "
action 6.0 cli command "end"
event manager applet track-bgp-up
event syslog pattern "%BGP-5-ADJCHANGE: neighbor 10.10.10.17 Up"
action 1.0 syslog priority critical msg "EBGP Session to peer is up"
action 2.0 cli command "enable"
action 3.0 cli command "conifg t"
action 4.0 cli command "FastEthernet0/1.90"
action 5.0 cli command " standby 12 priority 110 "
action 6.0 cli command "end"
ISP2
event manager applet track-bgp-down
event syslog pattern "%BGP-5-ADJCHANGE: neighbor 20.20.20.41 Down BGP Notification sent"
action 1.0 syslog priority critical msg "EBGP Session to peer is down"
action 2.0 cli command "enable"
action 3.0 cli command "conifg t"
action 4.0 cli command "FastEthernet0/1.90"
action 5.0 cli command " standby 11 priority 85 "
action 6.0 cli command "end"
event manager applet track-bgp-up
event syslog pattern "%BGP-5-ADJCHANGE: neighbor 20.20.20.41 Up"
action 1.0 syslog priority critical msg "EBGP Session to peer is up"
action 2.0 cli command "enable"
action 3.0 cli command "conifg t"
action 4.0 cli command "interface FastEthernet0/1.90"
action 5.0 cli command " standby 11 priority 110 "
action 6.0 cli command "end"
Thanks
Jagdev
Solved! Go to Solution.
04-03-2013 05:43 AM
You would probably get a better response to this one in the EEM scripting forum.
04-03-2013 05:43 AM
You would probably get a better response to this one in the EEM scripting forum.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide