| (pipe)
Syntax
| (compare | count | display (changed | commit-scripts | detail | genstate (subscription-paths | yang-module-name) | inheritance | json | merge | omit | set | translation-scripts <configured-delta | translated-config | translated-delta> | xml (<genstate-path> | <groups> <interface-ranges> <no-export-path> | <rpc <response-paths>> | <xpath>)) | except pattern | find pattern | hold | last lines | match pattern | no-more | refresh interval | request message (all | account@terminal) resolve <full-names> | save filename | append filename | tee | trim columns )
Description
Filter the output of an operational mode or a configuration mode command.
Options
| append filename |
Append the output to a file. |
||||||||||||||||||||||
| compare (filename | rollback n ) |
Compare configuration changes with another configuration file. In
operational mode, use the |
||||||||||||||||||||||
| compare | display xml |
Compare configuration changes with the active configuration and display
them in XML format. In operational mode, use the |
||||||||||||||||||||||
| count |
Display the number of lines in the output. |
||||||||||||||||||||||
| display |
Display additional information about the configuration contents.
|
||||||||||||||||||||||
| except pattern |
Ignore text matching a regular expression when searching the output. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks. |
||||||||||||||||||||||
| find pattern |
Display the output starting at the first occurrence of text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks (" "). |
||||||||||||||||||||||
| hold |
Hold text without exiting the |
||||||||||||||||||||||
| last lines |
Display the last number of lines you want to view from the end of the configuration. However, when the number of lines requested is less than the number of lines that the screen length setting permits you to display, Junos returns as many lines as permitted by the screen length setting. |
||||||||||||||||||||||
| match pattern |
Search for text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks. |
||||||||||||||||||||||
| no-more |
Display output all at once rather than one screen at a time. |
||||||||||||||||||||||
resolve |
(Operational mode only) Convert IP addresses into Domain Name System
(DNS) names. Truncates to fit original size unless |
||||||||||||||||||||||
| refresh interval |
Refresh the display of the command according to the interval specified.
The screen gets refreshed periodically to show you the current output of
the command until you quit the command. The default refresh interval is
one second. However, you can also explicitly specify a value from
|
||||||||||||||||||||||
| request message (all | account@terminal ) |
Display command output on the terminal of a specific user logged in to your router, or on the terminals of all users logged in to your router. |
||||||||||||||||||||||
| save filename |
Save the output to a file or URL. |
||||||||||||||||||||||
| tee |
Allows you to both display the command output on screen and write it to a
file. Unlike the UNIX |
||||||||||||||||||||||
| trim columns |
Trim specified number of columns from the start line. Only positive values are accepted. An error message appears if a negative value is given. |
Required Privilege Level
view
Release Information
Command introduced before Junos OS Release 7.4.
display commit-scripts option added in Junos OS Release 7.4.
tee option added in Junos OS Release 14.1.
display json option added in Junos OS Release 14.2.
compare | display
xml option added in Junos OS Release 15.1.
display translation-scripts option added in Junos OS Release
16.1.
display merge option added in Junos OS Release 16.2R2.
display merge option deprecated in Junos OS Release 18.2R1.
display genstate (subscription-paths | yang-module-name) option
added in Junos OS Release 26.2R1 and Junos OS Evolved Release 26.2R1.
display xml genstate-path option added in Junos OS Release 26.2R1
and Junos OS Evolved Release 26.2R1.
display xml rpc response-paths option added in Junos OS Release
26.2R1 and Junos OS Evolved Release 26.2R1.
display xml xpath option added in Junos OS Release 26.2R1 and Junos
OS Evolved Release 26.2R1.