05-29-2012 02:21 AM - edited 03-11-2019 04:12 PM
Hi,
I nice easy one for you guys.
How do you save the command output from the CLI to a file on flash?
With IOS, I would normally use a pipe command to redirect to tftp, but the ASA doesn't support this as far as I can tell. As a work around I was thinking I could save the output to flash and then tftp that file off the ASA.
Thanks,
Paul
Solved! Go to Solution.
05-29-2012 04:41 AM
Easier solution for you - just use the telnet/ssh client logging feature to save the output of ASA command to a text file.
05-29-2012 06:46 AM
you can change the setting so there is no break in the output on the ASA:
pager 0
Setting it to 0 means no break line.
If you want to run long output for example: show tech, or show run, then quickly change the pager to 0, and change it back to number of lines you want before break (by default it's 24 lines).
05-29-2012 04:41 AM
Easier solution for you - just use the telnet/ssh client logging feature to save the output of ASA command to a text file.
05-29-2012 06:36 AM
Hi Jennifer,
Thanks for your help. I do use this feature at the moment, but I find every break in the output (where you need to hit space to see more) gets recorded which leaves the file quite messy. I usually have to edit the file afterwards so it reads clearly.
I wondered if there is a way for the asa to write the output directly?
Thanks,
Paul
05-29-2012 06:46 AM
you can change the setting so there is no break in the output on the ASA:
pager 0
Setting it to 0 means no break line.
If you want to run long output for example: show tech, or show run, then quickly change the pager to 0, and change it back to number of lines you want before break (by default it's 24 lines).
05-29-2012 06:48 AM
Ah magic!
Thanks Jennifer, i'll give this a go.
05-29-2012 07:03 AM
Just tried this and it worked great.
Thanks for your help Jennifer
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