Chapter 45: CLI Overview
STANDARD Revision 1.0
C4® CMTS Release 8.3 User Guide
© 2016 ARRIS Enterprises LLC. All Rights Reserved.
1115
CLI Filtering
The CLI filtering feature allows you to search or filter any
show
or
more
commands that display system and protocol
information. This functionality is useful when you need to sort through large amounts of command output so that you can
display only those lines you are interested in.
Note: The filtering function is not available for the command
show tech-suppor
t.
Basic Searching
A regular expression is a phrase, number, or pattern that the CLI filtering feature matches against the show or more
command output. For example, to conduct a search on a regular expression of " power " (with a space both before and
after it) then only lines containing " power " will be included in the output.
Note: Normally, regular expressions are case sensitive. The use of regular expressions for the CMTS are case insensitive
to make typical searching easier.
How to Use CLI Filtering
The CLI permits the following types of filtering:
Begin
- displays output beginning with the first line that contains the text string or regular expression
Include
- displays output lines that contain the text string or regular expression and excludes lines that do not contain
the text string or regular expression
Exclude
- displays output lines that do not contain the text string or regular expression and excludes lines that do
contain the text string or regular expression
Until
- displays all lines up to and including the first line that matches the given regular expression
Count - Counts the number of lines that would have been shown
show running-config | count
Piped line count: 1557
show running-config | count include cable-mac
Piped line count: 60
Page - Temporarily turns on paging, in case you have paging turned off but need it for a particular command.