cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3046
Views
0
Helpful
5
Replies

How to Save Command Output to Flash on ASA 8.4

paulstone80
Level 3
Level 3

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

HTH Paul ****Please rate useful posts****
2 Accepted Solutions

Accepted Solutions

Jennifer Halim
Cisco Employee
Cisco Employee

Easier solution for you - just use the telnet/ssh client logging feature to save the output of ASA command to a text file.

View solution in original post

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).

View solution in original post

5 Replies 5

Jennifer Halim
Cisco Employee
Cisco Employee

Easier solution for you - just use the telnet/ssh client logging feature to save the output of ASA command to a text file.

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

HTH Paul ****Please rate useful posts****

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).

Ah magic! 

Thanks Jennifer, i'll give this a go.

HTH Paul ****Please rate useful posts****

Just tried this and it worked great.

Thanks for your help Jennifer

HTH Paul ****Please rate useful posts****
Review Cisco Networking for a $25 gift card