Pipe character in IOS

By | June 8, 2020

IOS supports the use of the pipe character (represented with the | character) to filter the output of the show and more commands. The pipe function takes the output of the command and sends it to another function, such as begin or include. This way, you can filter the output to find the section of the output that interests you. Here are a couple of examples:

begin function

In the picture above you can see that we’ve entered the show running-config | begin interface command. This command starts the output from the first occurence of the word interface.

Another example, this time with include:

include function

As you can see from the example above, the include function displays only lines that include the word password.

To display only the section of the output about a certain feature, use the section function:

section function

You can see in the example above that the command displayed only the vty section of the running configuration.

NOTE
Cisco Packet Tracer doesn’t support the pipe function. The examples above were created in GNS3.

Prerequisites for 200-301

200-301 is a single exam, consisting of about 120 questions. It covers a wide range of topics, such as routing and switching, security, wireless networking, and even some programming concepts. As with other Cisco certifications, you can take it at any of the Pearson VUE certification centers.

The recommended training program that can be taken at a Cisco academy is called Implementing and Administering Cisco Solutions (CCNA). The successful completion of a training course will get you a training badge.

Full Version 200-301 Dumps

Try 200-301 Dumps Demo