Basic Command-Line Interface Commands Page 28

ADVERTISEMENT

Basic Command-Line Interface Commands
show begin
Once you specify a filter for a show command, you cannot specify another filter at the next --More--
Note
prompt. The first specified filter remains until the more command output finishes or until you
interrupt the output. The use of the keyword begin does not constitute a filter.
Because prior output is not saved, you cannot search or filter backward through prior output.
Note
A few show commands that have long output requirements do not require user input at the --More--
prompt to jump to the next table of output; these types of output require you to enter the same number
of Ctrl-^ or Ctrl-Z combinations as there are --More-- prompts to completely abort output.
Examples
The following is partial sample output of the show interface | begin command that begins unfiltered
output with the first line that contains the regular expression “Ethernet.” At the --More-- prompt, the user
specifies a filter to show only the lines in the remaining output that contain the regular expression
“Serial.”
router# show interface | begin Ethernet
Ethernet0 is up, line protocol is up
Hardware is Lance, address is 0060.837c.6399 (bia 0060.837c.6399)
Description: ip address is 172.1.2.14 255.255.255.0
Internet address is 172.1.2.14/24
.
.
.
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
--More--
+Serial
filtering...
Serial1 is up, line protocol is up
Serial2 is up, line protocol is up
Serial3 is up, line protocol is down
Serial4 is down, line protocol is down
Serial5 is up, line protocol is up
Serial6 is up, line protocol is up
Serial7 is up, line protocol is up
Related Commands
Command
Description
more begin
Begins unfiltered output of the more command with the first line that
contains the regular expression you specify.
more exclude
Filters more command output so that it excludes lines that contain a
particular regular expression.
more include
Filters more command output so that it displays only lines that contain a
particular regular expression.
show exclude
Filters show command output so that it excludes lines that contain a
particular regular expression.
show include
Filters show command output so that it displays only lines that contain a
particular regular expression.
Cisco IOS Configuration Fundamentals Command Reference
FR-30
78-11740-02

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education