cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
295
Views
0
Helpful
4
Replies

command

vinoth.kumar
Level 1
Level 1

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 4

Jon Marshall
Hall of Fame
Hall of Fame

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

ankbhasi
Cisco Employee
Cisco Employee

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

bvsnarayana03
Level 5
Level 5

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
Level 1
Level 1

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

Getting Started

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:

Review Cisco Networking products for a $25 gift card