Siemens RUGGEDCOM ROX II User Manual page 78

Hide thumbs Also See for RUGGEDCOM ROX II:
Table of Contents

Advertisement

Chapter 2
Using RUGGEDCOM ROX II
Section 2.5.7
Using Regular Expressions
RUGGEDCOM ROX II command line regular expressions are a subset of the regular expressions found in egrep and
in the AWK programming language. Regular expressions can be used along with several of the output redirects.
For more information about using output redirects, refer to
Character
Description
.
Matches any single character (e.g. .100, 100., .100.)
*
Matches zero (0) or more occurrences of a pattern
+
Matches 1 or more occurrences of a pattern
?
Match 0 or 1 occurrences of a pattern
^
Matches the beginning of the line
$
Matches the end of the line
()
Matches only the characters specified
[]
Matches any character other than those specified
_ (underscore)
The underscore character has special meanings in an autonomous system path.
It matches to:
• Each space ( ) and comma (,)
• Each AS set delimiter (e.g. { and })
• Each AS confederation delimiter (e.g. ( and ))
• The beginning and end of the line
Therefore, the underscore can be used to match AS values.
For example, to show all the IP interfaces that are in the up state:
ruggedcom# show interfaces ip | include up
admin state up
state
up
admin state up
state
up
admin state up
state
up
admin state up
admin state up
admin state up
admin state up
admin state up
Section 2.5.8
Using CLI Utilities
The Operational mode provides a set of standard utility applications, similar to those on a typical Linux-based
operating system.
32
Section 2.5.6, "Using Output
Example
.100
100.
.100.
100*
100+
100?
^100
100$
(38a)
[^abc]
_100,100_, _100_
RUGGEDCOM ROX II
CLI User Guide
Redirects".
Using Regular Expressions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents