5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
141
5-7
show xxx | include “string” exclude “string2”
With this filtering command, the command
xxx
is executed, but the output is filtered so that only the lines
containing a match for the
“string”
match and not containing a match for the
“string2”
are shown, while
all the other non-matching lines in the output are also not shown.
Example
The following provides an example of the CLI command.
(Routing)#show running-config | include “spanning-tree” e
xclude “configuration”
spanning-tree bpduguard
spanning-tree bpdufilter default
5-8
show xxx | exclude “string”
With this filtering command, the command
xxx
is executed, but the output is filtered so that only those
lines not containing a match for the
“string”
are shown.
Example
The following provides an example of the CLI command.
(Routing)#show interface 0/1
Packets Received Without Error................... 0
Packets Received With Error...................... 0
Broadcast Packets Received....................... 0
Packets Transmitted Without Errors............... 0
Transmit Packet Errors........................... 0
Collision Frames................................. 0
Time Since Counters Last Cleared................. 20 day 21 hr 30 min 9 sec
(Routing)#show interface 0/1 | exclude “Packets”
Transmit Packet Errors........................... 0
Collision Frames................................. 0
Time Since Counters Last Cleared................. 20 day 21 hr 30 min 9 sec
5-9
show xxx | begin “string”
With this filtering command, the command
xxx
is executed, but the output is filtered so that only those
lines beginning with and following the first line containing a match for the
"string"
are shown, while all the
preceding lines are not shown.
Example
The following provides an example of the CLI command.
(Routing)#show port all | begin “1/1”
1/1
Enable
Down
Disable
N/A
N/A
Содержание 5000 Series
Страница 1: ...Draft 1 2 1 ...
Страница 141: ...5000 Series Layer 2 3 Managed Data Center Switch CLI Reference Guide 135 ...