How to overwrite a file in flash ??
I am running a script for every 10 minutes by running below command
show dial-peer voice summary | append flash:file.txt
Everytime after running the script the output is getting saved in the same file without overwriting earlier output.
I want to overwrite old file with the new one for every 10 minutes when the script runs.
Instead of using "append" try "redirect".
Redirect is working..
But, i want to use this command while running an eem script..Below is the config
action 1.0 cli command "show dial-peer voice summary | redirect flash:file.txt"
After running this command since it is asking to confirm for overwriting existing file...I used the below script to simply enter..
action 1.5 cli command " "
But its not working, eem status is showing as aborted.
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: