cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1395
Views
0
Helpful
5
Replies

CLI to change IP SLB serverfarm config

m.bannout
Level 1
Level 1

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)

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

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.

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.

 

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.

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

Could be.  The 3640 is end of life as well.