09-30-2019 07:15 AM
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
10-01-2019 05:47 AM
look at this thread where eem script is run on boot (after some delay).
is that an option for you?
10-02-2019 12:56 AM
thanks, I'm going to try it on a test router
Let me tell you
10-01-2019 08:47 AM
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
10-02-2019 02:55 AM
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
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: