Command Reference Guide
CLI Output Filtering Commands
CLI Command Reference
September 2014 Page 144
HP Moonshot Switch Module CLI Command Reference
show xxx|section “string”
The command xxx is executed and the output is filtered to show only lines included within the section(s)
identified by lines containing the “string” match and ending with the first line containing the default end-of-
section identifier (i.e. “exit”).
Example: The following shows an example of the CLI command.
(Routing) #show running-config | section “interface 1/0/1”
interface 1/0/1
no spanning-tree port mode
exit
show xxx|section “string” “string2”
The command xxx is executed and the output is filtered to only show lines included within the section(s)
identified by lines containing the “string” match and ending with the first line containing the “string2” match.
If multiple sessions matching the specified string match criteria are part of the base output, then all instances
are displayed.
show xxx|section “string” include “string2”
The command xxx is executed and the output is filtered to only show lines included within the section(s)
identified by lines containing the “string” match and ending with the first line containing the default end-of-
section identifier (i.e. “exit”) and that include the “string2” match. This type of filter command could also
include “exclude” or user-defined end-of-section identifier parameters as well.