01-03-2008 12:32 AM - edited 03-03-2019 08:06 PM
Hi,
I need the explanation for the below command
# sh interface s2/4 | i pro
what it means and why we use pipeline there
Regards,
Vinoth
01-03-2008 12:39 AM
Vinoth
It's just a way of restricting the output to show only what you want to see. In the case of the above it will show just the following line
R3#sh int s0/1 | i pro
Serial0/1 is administratively down, line protocol is down
rather than the entire output of the sh interface s2/4 command.
Jon
01-03-2008 12:42 AM
Hi Vinoth,
Pipeline is used to filter the outputs in show commands.
For an example if you just issue a command sh interface s2/4 you will get the complete output from interface which will show you everything related but if you issue a pipeline and then keyword "in" which is "i" in your case this means only include the output where it sees keyword "pro" so you will see something like this
Switch#sh int gig1/0/1 | i pro
GigabitEthernet1/0/1 is up, line protocol is up (connected)
If you see pro is a short name of protocols so whereever in that output it will find pro it will display in the output rather than displaying everything.
HTH
Ankur
*Pls rate all helpfull post
01-03-2008 12:42 AM
Generally " | include " is used with any command to view the desired output only. After the include, you need to specify the paramaeter for which you want to see the output.
01-03-2008 12:47 AM
hi vinodh,
the above command is used to minimise the output of the sh int commnad.
The pipeline is used to ask the router for the specific information.If you put the questionmark after the pipeline it will show you verious options such as begin,exclude,include etc.
In your case the output will show only the protocol status of the interface.
Instead of include you have typed begin statement :
sh int s2/4 b pro
it will show the output begining from word protocol.
The pipeline and the words after it are used to filter the output of the command anf to see the specific information.
You can use this pipeline with other commands also such as sh run etc.
Hope this clarifies you.
regards,
shri :)
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: