12-08-2008 02:21 PM - edited 03-06-2019 02:52 AM
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.
12-08-2008 02:26 PM
Jeremy
I don't know of a way to do it directly from the router CLI but it is relatively easy with hyperterm. See this post for details -
Jon
12-08-2008 02:42 PM
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
12-19-2022 07:35 AM
Hi Folks,
This is an old thread but was never resolved.
I'm trying the exact same thing and it doesn't work
show run | include hostname | redirect tftp://192.168.0.1/output.txt
Any clue how I can display the hostname of the device with a simple show command ?
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: