
MNL-0641-01 Rev A3
ECO-4823
Effective: 04 Oct 16
Page 77 of 107
F
ILTERING
O
UTPUT
The output from commands can in most cases be filtered to limit the output to only those lines that
match/trigger a specific string. The available filtering is:
Begin
– display the first line that begins with the matching string and all subsequent lines
Include
– display only those lines that match
Exclude
– display only those lines that do not match
The filter is added at the end of the command and its parameters; the | character marks the beginning of
the filter. The <
string
> parameter is case-sensitive and can specify any item in the output line. The
syntax is:
<command> | { begin | include | exclude } <string>
! Execute a command that generates some output; no filtering initially:
SWI2210-XXXX# show users
Line is con 0.
* You are at this line now.
Connection is from Console.
User name is admin.
Privilege is 15.
Elapsed time is 0 day 21 hour 52 min 50 sec.
Idle time is 0 day 0 hour 0 min 0 sec.
! Filter to include specific word:
SWI2210-XXXX# show users | include User
User name is admin.
! Exclude all lines that contain ‘0’ (zero)
SWI2210-XXXX# show users | exclude 0
* You are at this line now.
Connection is from Console.
User name is admin.
Privilege is 15.
! Begin output when specific word is matched:
SWI2210-XXXX# show users | begin Elapsed
Elapsed time is 0 day 21 hour 53 min 29 sec.
Idle time is 0 day 0 hour 0 min 0 sec.
Содержание Parvus SWI-22-10-01
Страница 8: ...Parvus SWI 22 10 Curtiss Wright Page 8 of 107 MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 ...
Страница 25: ...MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 Page 25 of 107 7 end 8 copy running config startup config ...
Страница 107: ...MNL 0641 01 Rev A3 ECO 4823 Effective 04 Oct 16 Page 107 of 107 ...