EasyManua.ls Logo

Nokia 7210 SAS-Mxp - Page 40

Nokia 7210 SAS-Mxp
736 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7210 SAS-MXP, R6, R12, S, SX, T BASIC SYSTEM
CONFIGURATION GUIDE RELEASE 22.9.R1
CLI usage
Limitation Description
The range cannot cause a change in
contexts.
Commands should be formed in such a way that there is no context
change upon command completion. For example, configure port
1/1/[1..10] will attempt to change ten different contexts.
When a range is specified in the CLI, the commands are executed in a
loop. On the first loop execution, the command changes contexts, but
the new context is no longer valid for the second iteration of the range
loop. A ‟Bad Command” error is reported and the command aborts.
Command completion may cease to
work when entering a range.
After entering a range in a CLI command, command and key
completion, which occurs by pressing the Tab or spacebar, may cease
to work. If the command line entered is correct and unambiguous, the
command works correctly; otherwise, an error is returned.
2.7.7 Pipe/match
The 7210 SAS devices support the pipe feature to search one or more files for a specific character string or
pattern.
Note:
When using the pipe/match command the variables and attributes must be spelled correctly. The
attributes following the command and must come before the expression/pattern. The following are
examples of the pipe/match command to complete different tasks:
Task - Capture all the lines that include ‟echo” and redirect the output to a file on the compact flash:
admin display-config | match ‟echo” > cf3 cf1:\echo_list.txt
Task - Display all the lines that do not include ‟echo”:
admin display-config | match invert-match ‟echo”
Task - Display the first match of ‟vpls” in the configuration file:
admin display-config | match max-count 1 ‟vpls”
Task - Display everything in the configuration after finding the first instance of ‟interface”:
admin display-config | match post-lines 999999 interface
Command 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
3HE 18197 AAAB TQZZA
© 2022 Nokia.
Use subject to Terms available at: www.nokia.com/terms/.
40
SPACER TEXT

Table of Contents

Related product manuals