cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
696
Views
0
Helpful
3
Replies

"More" command not executing in EEM

Hello group !

I have written a very simple EEM script:

event manager applet Z
event none
action 1.0 cli command "enable"
action 2.0 cli command "more flash:ip.txt | inc lo"

When I run the script, there is no output. When I type the 'more' command at the command prompt, the content of the file is displayed as expected. It is almost like EEM ignores 'more'. Is that a 'flaw' in EEM, or is there a workaround ?

1 Accepted Solution

Accepted Solutions

Dan Frey
Cisco Employee
Cisco Employee

Hi Georg,

Try using the file commands to read in and print the file.

event manager applet test1
 event none
 action 010 file open myfile bootflash:runningconfig r
 action 013 file read myfile var
 action 020 puts "$var"
 action 030 file close myfile

View solution in original post

3 Replies 3

Dan Frey
Cisco Employee
Cisco Employee

Hi Georg,

Try using the file commands to read in and print the file.

event manager applet test1
 event none
 action 010 file open myfile bootflash:runningconfig r
 action 013 file read myfile var
 action 020 puts "$var"
 action 030 file close myfile

Hello Dan,

that works. Thanks a lot !

I guess 'more' is somehow not supported in EEM...

I needed this actually for another EEM script that has been asked by one of the users here (I referred to your input)...

DanielBurovski
Level 1
Level 1

I'm sorry to interrupt this,but Georg i tried reaching out you in private messages can you check it out.