Cisco Systems ASR 9000 Using Wildcards to Identify Interfaces in show Commands, Example, gi0/1

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 114
Image 114
Using Wildcards to Identify Interfaces in show Commands

Chapter 5 CLI Tips, Techniques, and Shortcuts

Wildcards, Templates, and Aliases

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

Using Wildcards to Identify Interfaces in show Commands

Wildcards (*) identify a group of interfaces in show commands. Table 5-4provides examples of wildcard usage to identify a group of interfaces.

Table 5-4 Examples of Wildcard Usage

Wildcard Syntax

Description

 

 

*

Specifies all interfaces

 

 

gi*

Specifies all Gigabit-Ethernet interfaces in the

 

system

 

 

gi0/1/*

Specifies all Gigabit-Ethernet interfaces in rack 0,

 

slot 1

 

 

gi0/3/4.*

Specifies all subinterfaces for Gi0/3/4

 

 

Note The wildcard (*) must be the last character in the interface name.

Example

In the following example, the configuration for all Gigabit-Ethernet interfaces in rack 0, slot 1 appears:

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

interface Gi0/1/0/0

ipv4 address 10.2.3.4 255.255.255.0 gi

crc 32

!

keepalive disable

interface Gi0/1/0/1

ipv4 address 10.2.3.5 255.255.255.0 gi

crc 32

!

keepalive disable

interface Gi0/1/0/2

ipv4 address 10.2.3.6 255.255.255.0 gi

crc 32

!

keepalive disable

interface Gi0/1/0/3

ipv4 address 10.2.3.7 255.255.255.0 gi

crc 32

!

keepalive disable

--More--

In the following example, the state of all Gigabit-Ethernet interfaces appears:

RP/0/RSP1/CPU0:router# show interfaces gi* brief

 

 

 

Intf

Intf

LineP

Encap MTU

BW

 

 

 

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5-12

 

 

 

 

 

OL-17502-01

 

 

 

 

 

 

 

 

Page 114
Image 114
Cisco Systems ASR 9000, A9KMOD80TR Using Wildcards to Identify Interfaces in show Commands, Example, gi0/1, gi0/3/4, 5-12