cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
524
Views
0
Helpful
4
Replies

event manager fails when the router has a power failure

I have the following configured on my gateway isr4321; 

 

track 666 ip sla 1 reachability
delay down 180 up 180

 

ip sla 1
icmp-echo 10.1.1.1
frequency 30

 

event manager applet Track_MGCP_DOWN authorization bypass
event track 666 state down
action 1.0 syslog msg "Se ha perdido conectividad contra el callmanager"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "no mgcp"
action 5.1 cli command "end"
action 5.2 syslog msg "mgcp is down"
event manager applet Track_MGCP_up authorization bypass
event track 666 state up
action 1.0 syslog msg "Se ha recuperado conectividad contra el callmanager"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "mgcp"
action 4.1 cli command "no mgcp"
action 4.2 cli command "mgcp"
action 5.1 cli command "end"
action 5.2 syslog msg "mgcp is up"

 

It works when I lose communication with IP 10.1.1.1, however it does not work when the router has a power failure.

Since losing communication with my callmanager and recovering it, I need to restart the mgcp service so it can work

can someone please help me with a solution to my problem?
 
thanks ;)
4 Replies 4

pieterh
VIP
VIP

look at this thread where eem script  is run on boot (after some delay).

is that an option for you?

thanks, I'm going to try it on a test router
Let me tell you

Hello,

 

I ran you script with slightly different timer values and it seems to work. Also, what if you take actions 4.1 amd 4.2 out ?

 

Try and make the changes marked in bold:

 

track 666 ip sla 1 reachability
delay down 30 up 30

 

ip sla 1
icmp-echo 10.1.1.1 source-interface interface-name
frequency 10

 

event manager applet Track_MGCP_DOWN authorization bypass
event track 666 state down
action 1.0 syslog msg "Se ha perdido conectividad contra el callmanager"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "no mgcp"
action 5.1 cli command "end"
action 5.2 syslog msg "mgcp is down"
event manager applet Track_MGCP_up authorization bypass
event track 666 state up
action 1.0 syslog msg "Se ha recuperado conectividad contra el callmanager"
action 2.0 cli command "enable"
action 3.0 cli command "config t"
action 4.0 cli command "mgcp"
--> no action 4.1 cli command "no mgcp"
--> no action 4.2 cli command "mgcp"
action 5.1 cli command "end"
action 5.2 syslog msg "mgcp is up"

!

ip sla schedule 1 life forever start-time now

hello 

 

have you tried restarting the router?
when I restart the router or it has a power failure, when recovering the event manager does not act and the MGCP on the router is not set

thanks for your help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card