7210 SAS-MXP, R6, R12, S, SX, T BASIC SYSTEM
CONFIGURATION GUIDE RELEASE 22.9.R1
CLI usage
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
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
...
#--------------------------------------------------
The following table describes regular expression symbols and interpretation (similar to what is used for
route policy regexp matching). Table 13: Special characters describes special characters.
Table 12: Regular expression symbols
String Description
. Matches any single character.
[ ] Matches a single character that is contained within the brackets.
[abc] matches ‟a”, ‟b”, or ‟c”. [a-z] matches any lowercase letter.
[A-Z] matches any uppercase letter.
[0-9] matches any number.
[^ ] Matches a single character that is not contained within the brackets.
[^abc] matches any character other than ‟a”, ‟b”, or ‟c”.
[^a-z] matches any single character that is not a lowercase letter.
3HE 18197 AAAB TQZZA
© 2022 Nokia.
Use subject to Terms available at: www.nokia.com/terms/.
41
SPACER TEXT