08-04-2015 04:27 AM
Hi guys,
I'm trying to use EEM with SLB to achieve active/passive fail-over instead of load balancing, (relevant code below) when i try to execute the event manager manually, it stops at statement 1.2 without any errors or anything:
ip slb serverfarm DIGICO
real 172.16.19.14
inservice
real 172.16.19.17
no inservice
event manager applet failover
event none
action 1.0 cli command "enable"
action 1.1 cli command "conf t"
action 1.2 cli command "ip slb serverfarm DIGICO"
action 1.3 cli command "real 172.16.19.17"
action 1.4 cli command "inservice"
action 1.5 cli command "real 172.16.19.14"
action 1.6 cli command "no inservice"
action 1.7 cli command "end"
action 1.8 cli command "exit"
below is the output of debug event manager action cli:
*Mar 1 17:08:31.423: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : CTL : cli_open called.
*Mar 1 17:08:31.423: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : IN :
*Mar 1 17:08:31.435: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT :
*Mar 1 17:08:31.435: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : R1>
*Mar 1 17:08:31.439: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : R1>
*Mar 1 17:08:31.439: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : R1>
*Mar 1 17:08:31.439: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : IN : >enable
*Mar 1 17:08:31.451: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT :
R1#
*Mar 1 17:08:31.451: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : R1#
*Mar 1 17:08:31.455: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : IN : #conf t
*Mar 1 17:08:31.471: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT :
*Mar 1 17:08:31.471: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : Enter configuration commands, one per line. End with CNTL/Z.
*Mar 1 17:08:31.471: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : OUT : R1(config)#
*Mar 1 17:08:31.475: %HA_EM-6-LOG: failover : DEBUG(cli_lib) : : IN : #ip slb serverfarm DIGICO
anyone tried to achieve anything like this or faced a similar problem before ?
lab environement used:
GNS3 - router 3640 with IOS (C3640-IK9O3S-M), Version 12.4(25b)
Solved! Go to Solution.
08-06-2015 07:23 AM
You're running into an old bug with prompt matching. The version of EEM you are using, 2.1 is no longer supported. You'll need to upgrade to 12.4(11)T or higher to fix this.
08-04-2015 09:24 PM
What does the sequence look like if you execute the ip sld serverfarm DIGICO command manually? My guess is that it prompts you for something.
08-06-2015 04:10 AM
if i execute the sequence manually, the prompt changes to "Core(config-slb-sfarm)#" and i'm able to execute the remaining commands without problems or prompts.
08-06-2015 07:23 AM
You're running into an old bug with prompt matching. The version of EEM you are using, 2.1 is no longer supported. You'll need to upgrade to 12.4(11)T or higher to fix this.
08-06-2015 09:46 AM
hmm, i had a feeling it would be a bug, aren't i running the latest IOS for C3640 ? does that mean i'll have to change hardware ?
thank you so much for the replies
08-06-2015 09:55 AM
Could be. The 3640 is end of life as well.
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