Redirecting Output To A File; Narrowing Output From Large Configurations - Cisco CRS-1 - Carrier Routing System Router Getting Started Manual

Carrier routing system
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Displaying System Information with show Commands

Redirecting Output to a File

By default, CLI command output is displayed on screen. CLI command output can be redirected to a
user-specified file by entering a filename and location after the show command syntax. The following
command syntax is used to redirect output to a file:
show-command
This feature enables you to save any show command output in a file for further analysis and reference.
When you choose to redirect command output, consider the following guidelines:
In the following example, a target configuration file is saved to the default user directory:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# show configure | file disk0:myconfig.cfg
RP/0/RP0/CPU0:router(config)# abort
RP/0/RP0/CPU0:router#

Narrowing Output from Large Configurations

Displaying 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, enter an additional argument at the end of the
show running-config command. You can also use a wildcard to display all instances for a feature.
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 IP route configuration is displayed:
RP/0/RP0/CPU0:router# show running-config route ipv4
route ipv4 0.0.0.0/0 10.21.0.1
route ipv4 0.0.0.0/0 pos0/1/0/1 10.21.0.1
In the following example, the configuration for a specific interface is displayed:
RP/0/RP0/CPU0:router# show running-config interface POS 0/1/0/1
interface pos0/1/0/1
ipv4 address 10.21.54.31 255.255.0.0
ip proxy-arp disable!
Cisco CRS-1 Series Carrier Routing System Getting Started Guide
3-8
filename
| file
If the full path of the file is not specified, the default directory for your account is used. You should
always save your target configuration files to this location.
If the saved output is to be used as a configuration file, the filename should end with the
for easy identification. This suffix is not required, but can help locate target configuration files.
Example:
myconfig.cfg
Chapter 3
CLI Tips, Techniques, and Shortcuts
suffix
.cfg

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Crs-1 series

Table of Contents