cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
529
Views
0
Helpful
2
Replies

Overwrite a file in flash

faizanelahi
Level 1
Level 1

Hello,

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.

Regards,

Faizan.

2 Replies 2

Leo Laohoo
Hall of Fame
Hall of Fame

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.

Please suggest.

Getting Started

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: