JunosE 11.3.x System Basics Configuration Guide
38
no shutdown
no atm atm1483 shutdown
no atm atm1483 snmp trap link-status
ip route 0.0.0.0 0.0.0.0 10.13.5.1
ip debounce-time 0
ip source-route
Redirection of show Command Output
You can redirect the output of show commands to network files or local files (in NVS
memory) using the redirection operators described in Table 4 on page 38 .
Table 4: Redirect Operators
Redirect Operator
Use
>
Redirects output to the specified file, overwriting the file if it
already exists, creating the file if it does not.
>>
Appends output to the end of the specified file, creating the
file if it does not exist.
&>
Redirects output to the specified file, overwriting the file if it
already exists, and displays the output on the screen. The
redirection is synchronized with the screen display; for
example, if a --More-- prompt appears, the redirection halts
until you take further action.
&>>
Appends output to the end of the specified file and displays
the output to the screen. The redirection is synchronized with
the screen display; for example, if a --More-- prompt appears,
the redirection halts until you take further action.
For example, you can redirect the output of the show config command to a script file
and later run that script:
host1#show config > showconfig.scr
The following command writes the output to a text file, version.txt, on a remote router:
host1#show hardware > pc:/erxfiles/version.txt
The following command appends the output to version.txt:
host1#show hardware >> version.txt
Only one instance of a file can be open for file redirection. An error message is generated
if you attempt to redirect output to a file that is already open. You cannot redirect output
to a file that includes a local path in the filename.
You can use redirection with output filtering. The general syntax is:
show options [ { > | >> | &> | &>> } filename ]
[ | { begin | include | exclude } filterstring ]
Copyright © 2010, Juniper Networks, Inc.
Need help?
Do you have a question about the JUNOSE SOFTWARE FOR E SERIES 11.3.X - SYSTEM BASICS CONFIGURATION GUIDE 2010-10-04 and is the answer not in the manual?
Questions and answers