Cisco Systems A9KMOD80TR, ASR 9000, A9K24X10GETR manual Narrowing Output from Large Configurations

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 110
Image 110
Narrowing Output from Large Configurations

Chapter 5 CLI Tips, Techniques, and Shortcuts

Viewing System Information with show Commands

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

If the saved output is to be used as a configuration file, the filename should end with the cfg suffix for easy identification. This suffix is not required, but can help locate target configuration files. Example: myconfig.cfg

In the following example, a target configuration file is saved to the default user directory:

RP/0/RSP0/CPU0:router# configure

RP/0/RSP0/CPU0:router(config)# show configure file disk0:myconfig.cfg

RP/0/RSP0/CPU0:router(config)# abort

RP/0/RSP0/CPU0:router#

Narrowing Output from Large Configurations

Viewing a large running configuration can produce thousands of lines of output. To limit the output of a show command to only the items you want to view, use the procedures in the following sections:

Limiting show Command Output to a Specific Feature or Interface, page 5-8

Using Wildcards to Display All Instances of an Interface, page 5-8

Limiting show Command Output to a Specific Feature or Interface

Entering keywords and arguments in the show command limits the show output to a specific feature or interface.

In the following example, only information about the static IP route configuration appears:

RP/0/RSP1/CPU0:router# show running-config router static

router static address-family ipv4 unicast

0.0.0.0/0 10.21.0.1

0.0.0.0/0 Gi0/1/0/1 10.21.0.1

!

!

In the following example, the configuration for a specific interface appears:

RP/0/RSP0/CPU0:router# show running-config interface Gi 0/1/0/1

interface Gi0/1/0/1

ipv4 address 10.21.54.31 255.255.0.0

!

Using Wildcards to Display All Instances of an Interface

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

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

In the following example, a configuration for all Gigabit-Ethernet interfaces appears:

RP/0/RSP1/CPU0:router# show running-config interface gi *

interface Gi0/1/0/0

ipv4 address 10.2.3.4 255.255.255.0 gi

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

5-8

OL-17502-01

 

 

Page 110
Image 110
Cisco Systems A9KMOD80TR, ASR 9000, A9K24X10GETR manual Narrowing Output from Large Configurations