Information About show Command Output Redirection
This feature enhances the show commands in the Cisco IOS 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 following keywords:
Output redirection keywords:
Keyword |
Usage |
---|---|
append |
Append redirected output to URL (URLs supporting append operation only) |
begin |
Begin with the line that matches |
count |
Count number of lines which match regexp |
exclude |
Exclude lines that match |
format |
Format the output using the specified spec file |
include |
Include lines that match |
redirect |
Redirect output to URL |
tee |
Copy output to URL |
These extenstions can also be added to more commands.