Users Guide

Switch Management Commands 1942
CLI Output Filtering Commands
show xxx|include “string”
The command xxx is executed and the output is filtered to only show lines
containing the "string" match. All other non-matching lines in the output
are suppressed.
Syntax
show xxx|include “string”
Default Configuration
This command has no default configuration.
User Guidelines
This command has no user guidelines.
Command History
Command introduced in version 6.6.0 firmware.
Example
The following shows an example of the CLI command.
(Routing) #show running-config | include “spanning-tree”
spanning-tree configuration name "00-02-BC-42-F9-33"
spanning-tree bpduguard
spanning-tree bpdufilter default
show xxx|include “string” exclude “string2”
The command xxx is executed and the output is filtered to only show lines
containing the "string" match and not containing the "string2"
match. All other non-matching lines in the output are suppressed. If a line of
output contains both the include and exclude strings then the line is not
displayed.