CLI Guide

Using the CLI 229
Supports enabling/disabling paginated output for all show CLI
commands. When disabled, output is displayed in its entirety. When
enabled, output is displayed page-by-page such that content does not
scroll off the terminal screen until the user presses a key to continue. -
-More-- or (q)uit is displayed at the end of each page.
When pagination is enabled, press the return key to advance a single
line, press q or Q to stop pagination, or press any other key to advance
a whole page. These keys are not configurable.
NOTE: Although some show commands already support pagination, the
implementation is unique per command and not generic to all commands.
Output Filtering
“Grep”-like control for modifying the displayed output to only show
the user-desired content.
Filter displayed output to only include lines containing a specified
string match.
Filter displayed output to exclude lines containing a specified
string match.
Filter displayed output to only include lines including and
following a specified string match.
Filter displayed output to only include a specified section of the
content (e.g. “interface 0/1”) with a configurable end-of-section
delimiter.
String matching should be case insensitive.
Pagination, when enabled, also applies to filtered output.
Example: The following shows an example of the extensions made to the CLI
show commands for the Output Filtering feature.
(Routing) #show running-config ?
<cr> Press enter to execute the command.
| Output filter options.
<scriptname> Script file name for writing active configuration.
all Show all the running configuration on the switch.
interfaceDisplay the running configuration for specified interface on the
switch.
(Routing) #show running-config | ?
begin Begin with the line that matches
exclude Exclude lines that matches
include Include lines that matches