Users Guide

Using the CLI 229
“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
section Display portion of lines
For new commands for the feature, see
CLI Output Filtering Commands
.
Command Completion
CLI can complete partially entered commands when the user presses the
<tab> or <space> key. If a command entered is not complete, is not valid,
or if some parameters of the command are not valid or missing, an error
message is displayed to assist in entering the correct command. By pressing
the <tab> key, an incomplete command is changed into a complete
command. If the characters already entered are not enough for the system to
identify a single matching command, the <?>key displays the available
commands matching the characters already entered.