08-24-2010 10:38 AM
I'm trying to use an EEM applet to perform a "dir flash:" and then look to see if a specific file name resides in it with a regexp for for the file name but I can't seem to get th dir flash: to work.
event none
action 1.0 cli command "dir flash:"
action 2.0 puts "$_cli_result"
Then I manually run it using
event manager run appletname
I get a return of "Invalid input detected at '^' marker." where the ^ is pointing to the 2nd e in the word event. This output is usually what happens when improper syntax is used but I don't believe I've made a mistake and in the past when an applet didn't run properly, it gave no indication to the monitor/console. It just died.
Solved! Go to Solution.
08-24-2010 02:58 PM
You need to be enabled to look at file system details. Try:
event none
action 1.0 cli command "enable"
action 2.0 cli command "dir flash:"
action 3.0 puts "$_cli_result"
08-24-2010 02:58 PM
You need to be enabled to look at file system details. Try:
event none
action 1.0 cli command "enable"
action 2.0 cli command "dir flash:"
action 3.0 puts "$_cli_result"
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