EasyManua.ls Logo

Cisco ASR 9000 User Manual

Cisco ASR 9000
188 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
Page #160 background imageLoading...
Page #160 background image
A-156
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-28417-02
Chapter Understanding Regular Expressions, Special Characters, and Patterns
Pattern Alternation
The order for matches using multipliers (*, +, and ?) is to put the longest construct first. Nested
constructs are matched from outside to inside. Concatenated constructs are matched beginning at the left
side of the construct. Thus, the regular expression matches A9b3, but not 9Ab3 because the letters are
specified before the numbers.
Pattern Alternation
Alternation can be used to specify alternative patterns to match against a string. Separate the alternative
patterns with a vertical bar (
|). Only one of the alternatives can match the string. For example, the regular
expression codex
|telebit matches the string codex or the string telebit, but not both codex and telebit.
Anchor Characters
Anchoring can be used to match a regular expression pattern against the beginning or end of the string.
Table 39 shows that regular expressions can be anchored to a portion of the string using the special
characters.
For example, the regular expression ^con matches any string that starts with con, and sole$ matches any
string that ends with sole.
In addition to indicating the beginning of a string, the ^ can be used to indicate the logical function “not”
when used in a bracketed range. For example, the expression [^abcd] indicates a range that matches any
single letter, as long as it is not the letters a, b, c, and d.
Underscore Wildcard
Use the underscore to match the beginning of a string (^), the end of a string ($), space ( ), braces ({}),
comma (,), and underscore (_). With the underscore character, you can specify that a pattern exists
anywhere in the input string. For example, _1300_ matches any string that has 1300 somewhere in the
string and is preceded by or followed by a space, brace, comma, or underscore. Although _1300_
matches the regular expression {1300_, it does not match the regular expressions 21300 and 13000.
The underscore can replace long regular expression lists. For example, instead of specifying
^1300$ {1300, ,1300, {1300}, simply specify _1300_.
Ta b l e 39 Special Characters Used for Anchoring
Character Description
^ Matches the beginning of the string.
$ Matches the end of the string.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Cisco ASR 9000 and is the answer not in the manual?

Cisco ASR 9000 Specifications

General IconGeneral
Operating SystemCisco IOS XR
ManagementCLI, SNMP, NETCONF, RESTCONF
TypeEdge Router
Interface Support10G, 40G, 100G, 400G
Power SupplyAC and DC options available
Routing ProtocolBGP, IS-IS, OSPF, EIGRP
StorageSSD
Operating Temperature0 to 40°C (32 to 104°F)
Humidity5 to 95% (noncondensing)
RedundancyYes (Power, Fabric, Route Processor)
MTBFVaries by model (typically > 200, 000 hours)

Summary

Introduction to the Cisco ASR 9000 Series Aggregation Services Router

Initial Router Configuration

Explains the initial router configuration process upon booting.

Selecting and Identifying the Active RSP/DSC

Guides on selecting and identifying the active RSP/DSC for router operation.

Connecting to the Router via Console Port

Provides steps for connecting to the router using the console port for initial setup.

Bringing Up Cisco IOS XR Software on the Router

Bringing Up and Configuring a Standalone Router

Guides on connecting and configuring username/password for a standalone router.

Verifying System After Initial Boot

Provides procedures to verify the router's status after the initial boot.

Configuring General Router Features

Connecting and Communicating with the Router

Explains how to establish communication with the router via CLI.

Logging In to a Router or SDR

Details the process of logging into the router using username and password.

Managing Configuration Sessions

Details the two-stage process for making and committing configuration changes.

Configuring Additional Router Features

Managing Configuration History and Rollback

Explains how to manage committed configuration changes and perform rollbacks.

CLI Tips, Techniques, and Shortcuts

Displaying System Information with show Commands

Explains how to use show commands to display system status and configuration.

Troubleshooting the Cisco IOS XR Software

Basic Troubleshooting Commands

Introduces basic commands for diagnosing connectivity and router operation.

Configuration Error Messages

Explains how to display and interpret configuration error messages.

Memory Warnings in Configuration Sessions

Covers low-memory warnings and how to resolve them.

Troubleshooting Interfaces Not Coming Up

Provides steps to verify and troubleshoot interface status issues.

Related product manuals