EEM Unable to execute scripts.

Unanswered Question
Aug 13th, 2010
User Badges:

Hi,


Need support here to understand the Problems for getting EEM script executed. The Script and debug output is as follows. The script is now getting executed. IOS :c2800nm-spservicesk9-mz.124-12a.bin"


Can Plese help here!. Thanks..


Script:
event manager applet ISR_CISCO
event syslog pattern "Interface Serial0/0/1:0, changed state to down"
action 1.0 cli command "enable"
action 1.1 cli command "configure terminal"
action 1.2 cli command "router bgp 64555"
action 1.3 cli command "neighbor X.X.X.X. shut"
action 1.4 cli command "end"
!
Debug Output:
.Aug 14 05:02:24.640 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : CTL : cli_open called.
.Aug 14 05:02:24.740 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : OUT :
.Aug 14 05:02:24.740 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : OUT : aa-gecis-illi1-chi-am>
.Aug 14 05:02:24.740 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : IN  : aa-gecis-illi1-chi-am>enable
.Aug 14 05:02:24.752 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : OUT :
.Aug 14 05:02:24.752 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : OUT : aa-gecis-illi1-chi-am#
.Aug 14 05:02:24.752 GMT: %HA_EM-6-LOG: ISR_CISCO : DEBUG(cli_lib) : : IN  : aa-gecis-illi1-chi-am#configure terminal  <<< no response after this.......;
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Sat, 08/14/2010 - 12:24
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This is a known bug with your version of EEM.  Essentially, the prompt is too long when EEM enters config t mode.  The fix is only available in EEM 2.3 and higher (12.4(11)T and higher).  The workaround is to reduce the length of the hostname so it is less than 18 characters.

Actions

This Discussion