Cisco Systems A9KMOD80TR Network Router User Manual


 
FINAL DRAFT —Cisco Confidential
5-9
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-17502-01
Chapter 5 CLI Tips, Techniques, and Shortcuts
Viewing System Information with show Commands
crc 32
!
shutdown
keepalive disable
!
interface Gi0/1/0/1
ipv4 address 10.2.3.5 255.255.255.0
gi
crc 32
!
shutdown
keepalive disable
!
interface Gi0/1/0/2
ipv4 address 10.2.3.6 255.255.255.0
gi
crc 32
!
shutdown
keepalive disable
!
interface Gi0/1/0/3
ipv4 address 10.2.3.7 255.255.255.0
gi
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, type the Pipe character (|) followed by a keyword (begin, include, exclude, or file) and a
regular expression.
Table 5-3 shows the filtering options for the show command.
In the following example, the show interface command includes only lines in which the expression
“protocol” appears:
RP/0/RSP0/CPU0:router# show interface | include protocol
Null0 is up, line protocol is up
0 drops for unrecognized upper-level protocol
Ta ble 5-3 show Command Filter Options
Command Description
show command | begin regular-expression
Begins unfiltered output of the show command with the first line that
contains the regular expression.
show command | exclude regular-expression
Displays output lines that do not contain the regular expression.
show command | include regular-expression
Displays output lines that contain the regular expression.
show command | file device0:path/file
Writes the output lines that contain the regular expression to the specified
file on the specified device.