Unanswered Question
Jan 3rd, 2008


I need the explanation for the below command

# sh interface s2/4 | i pro

what it means and why we use pipeline there



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jon Marshall Thu, 01/03/2008 - 00:39


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.


ankbhasi Thu, 01/03/2008 - 00:42

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.



*Pls rate all helpfull post

bvsnarayana03 Thu, 01/03/2008 - 00:42

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.

shrikar.dange Thu, 01/03/2008 - 00:47

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.


shri :)


This Discussion