Filtering show Commands
To find specific information, display certain information only or begin the command output at the first
instance of a regular expression or phrase, you can filter the display output of a
show
command.
When you execute a
show
command, and then enter a pipe ( | ), one of the following parameters, and a
regular expression, the resulting output either excludes or includes those parameters.
NOTE:
Dell Networking OS accepts a space before or after the pipe, no space before or after the pipe, or
any combination. For example:
Dell#command | grep gigabit |except regular-expression |
find regular-expression
display
displays additional configuration information
except
displays only the text that does not match the pattern (or regular expression)
find
searches for the first occurrence of a pattern
grep
displays text that matches a pattern.
The
grep
command option has an ignore-case suboption that makes the search case-
insensitive. For example, the commands:
show run |
grep Ethernet
returns a search result with instances containing a capitalized
“Ethernet,” such as
interface fortyGigE 0/0
show run |
grep ethernet
does not return the previous search result because it only
searches for instances containing a noncapitalized “ethernet”
show run |
grep Ethernet
ignore-case
returns instances containing both “Ethernet” and “ethernet”
no-more
does not paginate the display output
save
copies the output to a file for future use
Displaying All Output
To display the output all at once (not one screen at a time), use the
no-more
option after the pipe. This
operation is similar to the
terminal length screen-length
command except that the
no-more
option
affects the output of just the specified command. For example:
Dell#show running-config|no-more
.
Filtering the Command Output Multiple Times
You can filter a single command output multiple times. To filter a command output multiple times, place the
save
option as the last filter. For example:
Dell# command | grep regular-expression | except
CLI Basics
55
Содержание C9000 series
Страница 1: ...Dell Networking Command Line Reference Guide for the C9000 Series Version 9 10 0 0 ...
Страница 394: ...deny 14551 666 Dell Access Control Lists ACL 394 ...
Страница 877: ...algorithm FIPS Cryptography 877 ...
Страница 1297: ...Total 5 0 Total 5 active route s using 952 bytes IPv6 Basics 1297 ...
Страница 1711: ...Vl 200 Dell Policy based Routing PBR 1711 ...
Страница 2277: ...Example Dell show run vrf test3 ip vrf test3 description IT Department Virtual Routing and Forwarding VRF 2277 ...