cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
0
Helpful
2
Replies

Event manager not working when track status change to Up.

CiscoBuddy1
Level 1
Level 1

Hello Everyone,

i am not sure, if i am missing something but below configuration is that we have two links to different OSPF area 17 and 55 and this router is not ABR, what we are trying to do that if link goes down to area 17, i want loopback address added to area 15 once link goes down and once link added back to area 55.

it only working when link goes down but not when it goes up, only thing i found in history it showing "connect router ospf xxx" and "connect passive-interface Gi0/0/1" is history CMD. I highlighted below.

 

ip sla responder
ip sla 1
icmp-echo 192.168.0.2 source-ip 192.168.0.1
frequency 5
ip sla schedule 1 life forever start-time now
track 1 ip sla 1 reachability

 

event manager applet TRACK_OSPF_AREA_17
event track 1 state down
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "router ospf xxx"
action 1.3 cli command "no passive-interface GigabitEthernet0/0/1"
action 1.4 cli command "network xxx 0.0.0.0 area 55"
action 1.5 cli command "exit"
action 1.6 cli command "end"
action 1.7 syslog msg "ROUTER IS UP ON OSPF AREA 55"
event manager applet TRACK_ROUTE_BACK_TO_OSPF_AREA_17
event track 1 state up
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "router ospf xxx"
action 1.3 cli command "passive-interface GigabitEthernet0/0/1"
action 1.4 cli command "network xxx 0.0.0.0 area 17"
action 1.5 cli command "exit"
action 1.6 cli command "end"
action 1.7 syslog msg "ROUTER IS UP AND RETURN BACK ON OSPF AREA 17"
!
end

 

History:


Jan 27 11:13:52.649: %TRACK-6-STATE: 1 ip sla 1 reachability Up -> Down
CMD: 'enable' 11:13:53 CST Mon Jan 27 2025
CMD: 'config t' 11:13:54 CST Mon Jan 27 2025
CMD: 'router ospf xxxx' 11:13:56 CST Mon Jan 27 2025
CMD: 'no passive-interface GigabitEthernet0/0/1' 11:14:03 CST Mon Jan 27 2025
Jan 27 11:14:06.309: %OSPF-5-ADJCHG: Process xxx, Nbr xxxx on GigabitEthernet0/0/1 from LOADING to FULL, Loading Done

CMD: 'network xxxx 0.0.0.0 area 17' 11:14:07 CST Mon Jan 27 2025
CMD: 'exit' 11:14:08 CST Mon Jan 27 2025
CMD: 'end' 11:14:08 CST Mon Jan 27 2025
Jan 27 11:14:08.516: %SYS-5-CONFIG_I: Configured from console by on vty2 (EEM:TRACK_OSPF_AREA_17)
Jan 27 11:14:08.708: %HA_EM-6-LOG: TRACK_OSPF_AREA_17: ROUTER IS UP ON OSPF AREA 55
Jan 27 11:14:09.156: %OSPF-6-AREACHG: xxxx/32 changed from area 17 to area 55

Jan 27 11:15:28.351: %TRACK-6-STATE: 1 ip sla 1 reachability Down -> Up
CMD: 'enable' 11:15:28 CST Mon Jan 27 2025
CMD: 'config t' 11:15:28 CST Mon Jan 27 2025
CMD: 'router ospf 65525' 11:15:28 CST Mon Jan 27 2025
CMD: 'connect router ospf xxxx' 11:15:28 CST Mon Jan 27 2025
CMD: 'passive-interface GigabitEthernet0/0/1' 11:15:28 CST Mon Jan 27 2025
CMD: 'connect passive-interface GigabitEthernet0/0/1' 11:15:28 CST Mon Jan 27 2025
CMD: 'network xxx 0.0.0.0 area 17' 11:15:29 CST Mon Jan 27 2025
CMD: 'exit' 11:15:29 CST Mon Jan 27 2025
CMD: 'end' 11:15:29 CST Mon Jan 27 2025
CMD: 'connect end' 11:15:29 CST Mon Jan 27 2025
Jan 27 11:15:29.463: %HA_EM-6-LOG: TRACK_ROUTE_BACK_TO_OSPF_AREA_17: ROUTER IS UP AND RETURN BACK ON OSPF AREA 17

 

Please let me know if you guys face this kind of issue.

thank you

2 Replies 2

event manager applet <> authorization bypass

Hello
A first glance change the action numbering so its not conflicting with either applet

event manager applet TRACK_ROUTE_BACK_TO_OSPF_AREA_17
event track 1 state up
action 2.0 cli command "enable"
action 2.1 cli command "config t"
action 2.2 cli command "router ospf xxx"
action 2.3 cli command "passive-interface GigabitEthernet0/0/1"
action 2.4 cli command "network xxx 0.0.0.0 area 17"
action 2.5 cli command "exit"
action 2.6 cli command "end"
action 2.7 syslog msg "ROUTER IS UP AND RETURN BACK ON OSPF AREA 17" 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul