EEM script - append custom text to file in flash

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2021 11:05 PM
Hi there,
Is there a way to append custom text to a file in flash using an EEM script?
For example, if I had a script that did the following:
action 001 cli command "show version" | append flash:output.txt
action 002 cli command "show logging" | append flash:output.txt
Could I insert a headers such as:
---------- SHOW VERSION ----------
---------- SHOW LOGGING ----------
in to the 'output.txt' between each of the command results?
I'd expect it to look something like this:
action 001 <some_command> ---------- SHOW VERSION ---------- | append flash:output.txt
action 002 cli command "show version" | append flash:output.txt
action 003 <some_command> ---------- SHOW LOGGING ---------- | append flash:output.txt
action 004 cli command "show logging" | append flash:output.txt
Regards,
Brett
- Labels:
-
Other Networking Topics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2021 03:07 AM
You can try
action 001 puts "---------- SHOW VERSION ----------" | append flash:output.txt
