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

EEM - puts action fails in EEM applet/script when called via HTTP

asadovnikov
Level 1
Level 1

I have an EEM script which produces some diagnostic output.  The script is written to be initiated by "event manager run" and is running in sync mode.  Script uses "puts" into stdout to produce the output.  Everything is working fine, except when script is initiated via HTTP/HTTPS I get no output.

To reproduce the issue I have created the following applet:

event manager applet TEST1
event none sync yes
action 1 puts nonewline "SOMETEXT"
!

Here is output from command line (tested from console and telnet):

router#event manager run TEST1
SOMETEXT
router#

When applet is called via HTTP using http://router/level/15/exec/-/event/manager/run/TEST1/CR URL the output is empty.  The test message goes to the console versus to HTTP reply.

So it looks like the stdout is not redirected to HTTP session successfully.

Any advice on why it is happening, or better yet how to fix it would be apprecaited.

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

This was probably never tested.  I can confirm this is not working in 15.0(1)M, so it is probably a new bug.

Thank you.  This is also what I was thinking.  As you probably already know I have opened a TAC case on the matter.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: