Question:
I have
Active/Active,
multi homed BGP, WS-C3560X-24T-S Price 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"
Answer:
You would
probably get WS-C3560X-24T-S a better response to this one in the EEM scripting forum.
没有评论:
发表评论