Pipe/Match - Nokia 7210 Configuration Manual

Service access switch 7210 sas-m, t, r6, r12, mxp, sx, s basic system
Hide thumbs Also See for 7210:
Table of Contents

Advertisement

7210 SAS-M, T, R6, R12, Mxp, Sx, S Basic System
Configuration Guide
CLI Range Use Limitations (Continued)
Table 12
Limitation
The range cannot cause a change in
contexts.
Command completion may cease to
work when entering a range.

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:
3HE 17358 AAAB TQZZA
Description
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.
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.
• 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
Use subject to Terms available at: www.nokia.com
© 2021 Nokia.
CLI Usage
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

7210 sas-mxp7210 r67210 r127210 s7210 sx7210 t

Table of Contents