Configuration Fundamentals Configuration Guide Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
Show Command Output Redirection
Downloads: This chapterpdf (PDF - 98.0KB) The complete bookPDF (PDF - 2.86MB) | The complete bookePub (ePub - 850.0KB) | Feedback

Show Command Output Redirection

Show Command Output Redirection

Last Updated: January 13, 2013

This feature adds the capability to redirect output from Cisco IOS XE command-line interface (CLI) show commands and more commands to a file.

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

Information About Show Command Output Redirection

This feature enhances the show commands in the Cisco IOS XE CLI to allow large amounts of data output to be written directly to a file for later reference. This file can be saved on local or remote storage devices such as Flash, a SAN Disk, or an external memory device.

For each show command issued, a new file can be created, or the output can be appended to an existing file. Command output can optionally be displayed on-screen while being redirected to a file by using the tee keyword. Redirection is available using a pipe (|) character after any show command, combined with the redirect, append, or tee keywords.

These extensions can also be added to more commands.

Configuration Examples for Show Command Output Redirection

Redirecting a showinterface output to a device attached to a USB port Example

This task will show how to redirect a show platform software configuration access policy output to a device attached to a temp1.txt file in the bootflash of an ASR1000 series router.

router#show platform software configuration access policy | redirect bootflash:temp1.txt
router#more bootflash:temp1.txt 
The current access-policies 
Method : telnet 
Rule : wait 
Shell banner: 
Wait banner : 
Method : ssh 
Rule : wait 
Shell banner: 
Wait banner : 
Method : console 
Rule : wait with interrupt 
Shell banner: 
Wait banner : 
===

Additional References

No standards, MIBs, or RFCs are applicable to this feature.

Technical Assistance

Description

Link

The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.

http://www.cisco.com/techsupport

Feature Information for Show Command Output Redirection

The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.

Table 1 Feature Information for Show Command Output Redirection

Feature Name

Releases

Feature Information

Show Command Output Redirection

Cisco IOS XE Release 2.1

This feature was introduced.

Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R)

Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.

© 2013 Cisco Systems, Inc. All rights reserved.