Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

EEM Unable to execute scripts.

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.......;
3 REPLIES
Cisco Employee

Re: EEM Unable to execute scripts.

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.

New Member

Re: EEM Unable to execute scripts.

Thanks Joseph. Can u pls help me to find  cisco BUG ID

Cisco Employee

Re: EEM Unable to execute scripts.

The bug is CSCsq77043.

375
Views
0
Helpful
3
Replies
CreatePlease to create content