Page
14
of 37
HES7000 ICL
I User’s Guide A01583 Rev. A
3.5. Filtering Output
The output from commands can in most cases be
filtered
: It is possible to limit the output to
only those lines that match/trigger a specific substring. The available filtering is:
Begin – display the first line that matches and all subsequent lines
Include – display exactly those lines that match
Exclude – display exactly those lines that do not match
The syntax is:
command
‘|’ {
begin
|
include
|
exclude
}
string
“string” is case sensitive
Execute a command that generates some output; no filtering initially:
myDevice#
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 0 hour 0 min 3 sec.
Idle time is 0 day 0 hour 0 min 0 sec.
myDevice#
Add a filter to include specific word:
myDevice#
show users | include User
User name is admin.
myDevice#
Exclude all lines that contain ‘0’ (zero)
myDevice#
show users | exclude 0
* You are at this line now.
Connection is from Console.
User name is admin.
Privilege is 15.
myDevice#.
Begin output when specific word is matched:
myDevice#
show users | begin Elapsed
Elapsed time is 0 day 0 hour 5 min 57 sec.
Idle time is 0 day 0 hour 0 min 0 sec.
myDevice#
Содержание HES7000
Страница 1: ...HES7000 ICLI USER S GUIDE A01583 Rev A ...
Страница 3: ...HES7000 ICLI User s Guide A01583 Rev A ...
Страница 4: ......