07-26-2013 11:48 AM
I have a basic script that when triggered it issues "show log | append flash:LOG". What can I do so the file doesn't grow so large that it fills the flash:? I know I could FTP the file, but is there some way to limit the file size itself?
Solved! Go to Solution.
07-26-2013 02:56 PM
Not sure what your script is exactly, but you can check the size of the file using the Tcl proc:
file size flash:LOG
If the file is bigger than your threshold, either zero it out or copy it (archive it off) then zero out the contents. Then run your command to do the append operation.
07-26-2013 02:56 PM
Not sure what your script is exactly, but you can check the size of the file using the Tcl proc:
file size flash:LOG
If the file is bigger than your threshold, either zero it out or copy it (archive it off) then zero out the contents. Then run your command to do the append operation.
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