02-19-2024 02:56 AM
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 ?
Solved! Go to Solution.
02-20-2024 05:29 AM
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
02-20-2024 05:29 AM
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
02-20-2024 12:45 PM
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)...
06-19-2024 08:55 AM
I'm sorry to interrupt this,but Georg i tried reaching out you in private messages can you check it out.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide