hit counter script

Regular Expressions In Configuration Groups - Cisco NCS 5000 Series Manual

System management configuration guide for cisco ncs 5000 series routers
Hide thumbs Also See for NCS 5000 Series:
Table of Contents

Advertisement

Configuring Flexible Command Line Interface

Regular Expressions in Configuration Groups

Regular expressions are used in configuration groups to make them widely applicable. Portable Operating
System Interface for UNIX (POSIX) 1003.2 regular expressions are supported in the names of configuration
statements. Single quotes must be used to delimit a regular expression.
Not all POSIX regular expressions are supported.
Note
Regular Expressions for Interface Identifiers
Configuration groups do not accept exact interface identifiers. You must use a regular expression to identify
a group of interfaces that are applicable to the configuration group. The regular expression '.*' is not allowed.
You must begin the regular expression for an interface identifier with an unambiguous word, followed by the
regular expression. For example, to configure Gigabit Ethernet interfaces, use the regular expression
'GigabitEthernet.*'.
To display a list of available interface types for your router configuration, enter interface ? at the configuration
group prompt:
RP/0/RP0/CPU0:router(config-GRP)# interface ?
ATM
BVI
Bundle-Ether
GigabitEthernet
IMA
Loopback
MgmtEth
Multilink
Null
PW-Ether
PW-IW
Serial
tunnel-ip
tunnel-mte
tunnel-te
tunnel-tp
Although you are required to enter only enough characters for the interface type to be unique, it is
Note
recommended that you enter the entire phrase. All interface types used in regular expressions are
case-sensitive.
To specify a subinterface, prefix the expression with the characters \. (backslash period). For example, use
interface 'GigabitEthernet.*\..*'
You can specify Layer 2 transport interfaces or point-to-point interfaces as shown in these examples:
group g-l2t
interface 'Gi.*\..*' l2transport
.
.
'RegExp': ATM Network Interface(s)
'RegExp': Bridge-Group Virtual Interface
'RegExp': Aggregated Ethernet interface(s)
'RegExp': GigabitEthernet/IEEE 802.3 interface(s)
'RegExp': ATM Network Interface(s)
'RegExp': Loopback interface(s)
'RegExp': Ethernet/IEEE 802.3 interface(s)
'RegExp': Multilink network interface(s)
'RegExp': Null interface
'RegExp': PWHE Ethernet Interface
'RegExp': PWHE VC11 IP Interworking Interface
'RegExp': Serial network interface(s)
'RegExp': GRE/IPinIP Tunnel Interface(s)
'RegExp': MPLS Traffic Engineering P2MP Tunnel interface(s)
'RegExp': MPLS Traffic Engineering Tunnel interface(s)
'RegExp': MPLS Transport Protocol Tunnel interface
to configure all Gigabit Ethernet subinterfaces.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x

Regular Expressions in Configuration Groups

83

Advertisement

Table of Contents
loading

Table of Contents