CLI Usage
7210 SAS M, T, X, R6 Basic System Configuration Guide Page 41
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, operational
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 9 describes regular expression symbols and interpretation (similar to what is used for route
policy regexp matching). Table 10 describes special characters.
Table 9: 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.
^
Matches the start of the line (or any line, when applied in multiline mode)
$
Matches the end of the line (or any line, when applied in multiline mode)
()
Define a “marked subexpression”.
Every matched instance will be available to the next command as a variable.
*
A single character expression followed by “*” matches zero or more copies of the
expression.