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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

command

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

4 REPLIES
Hall of Fame Super Blue

Re: command

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

Cisco Employee

Re: command

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

Re: command

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.

Re: command

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 :)

119
Views
0
Helpful
4
Replies
CreatePlease to create content