[Contents] [Prev] [Next] [Index] [Report an Error]


Placing Command Output in a File

When the output is very long, when you need to store or analyze the output, or when you need to send the output in e-mail, you can redirect the output to a file. Doing this is useful when the output scrolls off the screen, making it difficult to cut the output from a window and paste it into another.

To save the output to a file, specify the save command after the pipe:

user@host> command | save filename 

By default, the file is placed in your home directory on the router. For information about how you can specify the filename, see Specifying Filenames and URLs.

This example stores the output of the request support information command in a file:

user@host> request support information | save filename 
Wrote 1143 lines of output to `filename'
user@host>

[Contents] [Prev] [Next] [Index] [Report an Error]