Network administrators working on Cisco devices have to search through a lot of detailed information when they run IOS commands. This is when the “PIPE” function of Cisco IOS comes as a pretty helpful utility.
Let’s see what are the options we get after inputting PIPE “|” function.
R1#sh run | ?
We will use above options under PIPE to have more understanding on their usage
In below scenario , the command using PIPE will provide output of interfaces which are down –
Switch#show ip interface brief | include down
Below is output after issuing “show running-config | section bgp” command which displays only BGP section of the running configuration –
Router#show running-config | section bgp
Next, with command “show run | begin interface” ,the output starts from the first occurence of the word “interface”.
Router#show run | begin interface
Further , below are some more examples where PIPE function is used –
Hope you would have understood this cisco pipe commands cheat sheet.
Read some other related articles –