124
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-28417-02
Chapter CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
Wildcards, Templates, and Aliases
This section contains the following topics:
• Using Wildcards to Identify Interfaces in show Commands, page 124
• Creating Configuration Templates, page 125
• Aliases, page 128
• Keystrokes Used as Command Aliases, page 129
Using Wildcards to Identify Interfaces in show Commands
Wildcards (*) identify a group of interfaces in show commands. Table 26 provides examples of wildcard
usage to identify a group of interfaces.
Note The wildcard (*) must be the last character in the interface name.
Examples
The following example shows how the configuration for all interfaces in rack 0, slot 1 is displayed.
RP/0//CPU0:router:router# show running-config interface /1/*
interface /1/0/0
ipv4 address 10.2.3.4 255.255.255.0
crc 32
!
keepalive disable
interface /1/0/1
ipv4 address 10.2.3.5 255.255.255.0
crc 32
!
keepalive disable
interface /1/0/2
ipv4 address 10.2.3.6 255.255.255.0
crc 32
!
keepalive disable
interface /1/0/3
ipv4 address 10.2.3.7 255.255.255.0
Ta b l e 26 Examples of Wildcard Usage
Wildcard Syntax Description
* Specifies all interfaces
* Specifies all interfaces in the system
/1/* Specifies all interfaces in rack 0, slot 1
/3/4* Specifies all subinterfaces for /3/4