Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Redirect show command output

Is it possible to use "show <command> | include example" and then output (tee) the results to file? I've tried multiple variations with no luck so far, just wondering if there is some special way you have to enter the command to combine the two options.

2 REPLIES
Hall of Fame Super Blue

Re: Redirect show command output

Re: Redirect show command output

Jeremy,

I don't think a "| tee" can be used in conjunction with another pipe.

- With one tee it works just fine

Router#sh log | tee tftp://10.10.1.105/logtest.txt

- When I question mark after an exclusion it does not display the tee option.

Router#sh run | exc una ?

LINE

- This shows the running config but does not tee to the TFTP server

Router#sh run | exc una | tee tftp://10.10.1.105/test123.txt

HTH,

Mark

227
Views
0
Helpful
2
Replies
CreatePlease to create content