cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1263
Views
0
Helpful
2
Replies

EEM Applet PUTS Action BUG?

baldy
Level 1
Level 1

I have made a very simple eem applet to monitor some IP SLA entries in near real time -

 

!
event manager applet AUTO_SLA
 event timer watchdog time 3
 action 1.0 cli command "en"
 action 2.0 cli command "term len 500"
 action 3.0 cli command "show ip sla sum | i icmp"
 action 4.0 puts "\n$_cli_result\n"
 exit
!

 

The output from this as seen on the console looks like this -

IOU1#
*Aug 19 14:13:09.081: %HA_EM-6-LOG: AUTO_SLA:
*1           icmp-echo   11.1.1.1          RTT=4       OK          2 seconds ago
*2           icmp-echo   12.1.1.1          RTT=1       OK          2 seconds ago
*3           icmp-echo   13.1.1.1          RTT=1       OK          2 seconds ago
*4           icmp-echo   14.1.1.1          RTT=1       OK          2 seconds ago
*5           icmp-echo   15.1.1.1          RTT=1       OK          2 seconds ago
*6           icmp-echo   16.1.1.1          RTT=5       OK          2 seconds ago
*7           icmp-echo   17.1.1.1          RTT=1       OK          2 seconds ago

IOU1#*8           icmp-echo   18.1.1.1          RTT=1       OK          2 seconds ago
IOU1#

i.e. the output has a prompt injected into the middle of it.

 

 

The output that appears in the log looks like this

IOU1#
*Aug 19 14:14:18.153: %HA_EM-6-LOG: AUTO_SLA:
*1           icmp-echo   11.1.1.1          RTT=5       OK          2 seconds ago
*2           icmp-echo   12.1.1.1          RTT=1       OK          2 seconds ago
*3           icmp-echo   13.1.1.1          RTT=1       OK          2 seconds ago
*4           icmp-echo   14.1.1.1          RTT=1       OK          2 seconds ago
*5           icmp-echo   15.1.1.1          RTT=1       OK          2 seconds ago
*6           icmp-echo   16.1.1.1          RTT=5       OK          2 seconds ago
*7           icmp-echo   17.1.1.1          RTT=1       OK          2 seconds ago
*8           icmp-echo   18.1.1.1          RTT=1       OK          2 seconds ago
IOU1#

I have tried this on IOS 15.0, 15.2 and 15.4 and on IOU 15, all produce the same error on the output.

 

Any ideas?

2 Replies 2

Hi, can you try 

action 4.0 puts "\n$_cli_result"

 

or

action 4.0 puts "\n"

action 4.1 puts "$_cli_result"

action 4.2 puts "\n"

 

or

test \r option instead of \n

 

Let me know.

Regards.

I'm running this on IOU and I have exactly the same problem. Output from a single puts action is broken after line 8 by the system prompt, after approximately half a second the remaining output is completed.