EasyManua.ls Logo

Nokia 7210 - PipeMatch

Nokia 7210
750 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-M, T, R6, R12, Mxp, Sx, S Basic System
Configuration Guide
CLI Usage
3HE 17358 AAAB TQZZA © 2021 Nokia.
Use subject to Terms available at: www.nokia.com
39
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” > cf3cf1:\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
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.
Table 12 CLI Range Use Limitations (Continued)
Limitation Description

Table of Contents

Other manuals for Nokia 7210

Related product manuals