Chapter 6 CLI Tips, Techniques, and Shortcuts

Displaying System Information with show Commands

Using Wildcards to Display All Instances of an Interface

To display the configuration for all instances, enter the asterisk (*) wildcard character.

Note See the “Using Wildcards to Identify Interfaces in show Commands” section on page 6-11for more information.

In the following example, a configuration for all Packet-over-SONET/SDH (POS) interfaces is displayed:

RP/0/RP1/CPU0:router# show running-config interface pos *

interface POS0/1/0/0

ipv4 address 10.2.3.4 255.255.255.0 pos

crc 32

!

shutdown keepalive disable

!

interface POS0/1/0/1

ipv4 address 10.2.3.5 255.255.255.0 pos

crc 32

!

shutdown keepalive disable

!

interface POS0/1/0/2

ipv4 address 10.2.3.6 255.255.255.0 pos

crc 32

!

shutdown keepalive disable

!

interface POS0/1/0/3

ipv4 address 10.2.3.7 255.255.255.0 pos

crc 32

!

shutdown keepalive disable

!

--More--

Filtering show Command Output

Output from the show commands can generate a large amount of data. To display only a subset of information, enter the “pipe” character () followed by a keyword (begin, include, exclude, or file) and a regular expression. Table 6-3shows the filtering options for the show command.

Cisco IOS XR Getting Started Guide

 

OL-10957-02

6-9

 

 

 

Page 165
Image 165
Cisco Systems Cisco IOS XR manual Filtering show Command Output, Using Wildcards to Display All Instances of an Interface