CLI Usage
40
7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System
Configuration Guide
3HE 16132 AAAB TQZZA Edition: 01
CLI Syntax: match pattern context {parents | children | all} [ignore-
case] [max-count lines-count] [expression]
match pattern [ignore-case] [invert-match] [pre-lines
pre-lines] [post-lines lines-count] [max-count lines-
count] [expression]
where:
pattern string or regular expression
context keyword: display context associated with the matching line
parents keyword: display parent context information
children keyword: display child context information
all keyword: display both parent and child context information
ignore-case keyword
max-count keyword: display only a specific number of instances of matching lines
lines-count 1 — 2147483647
expression keyword: pattern is interpreted as a regular expression
invert-match keyword
pre-lines keyword: display some lines prior to the matching line
pre-lines 0 — 100
post-lines keyword: display some lines after the matching line
lines-count 1 — 2147483647
For example:
*A:Dut-G# show log log-id 99 | match ignore-case sap
"Processing of an access port state change event is finished and the status of all
affected SAPs on port 1/1/21 has been updated."
"Service Id 4001, SAP Id 1/1/21:0.* configuration modified"
A:Dut-C# show log log-id 98 | match max-count 1 "service 1001"
"Status of service 1001 (customer 1) changed to administrative state: up, operationa
l state: up"
*A:Dut-G# admin display-config | match post-lines 4 max-count 2 expression "vpls"
#--------------------------------------------------
...
vpls 1 customer 1 svc-sap-type null-star create
description "Default tls description for service id 1"
stp
shutdown
exit
vpls 2 customer 1 svc-sap-type null-star create
description "Default tls description for service id 2"
stp
shutdown
exit
...
#--------------------------------------------------
Table 13 describes regular expression symbols and interpretation (similar to what is
used for route policy regexp matching). Table 14 describes special characters.