Related Documentation
| (pipe)
Syntax
Release Information
Command introduced before Junos OS Release 7.4.
display commit-scripts option added in Junos OS Release 7.4.
Description
Filter the output of an operational mode or a configuration mode command.
Options
compare (filename | rollback n )—(Configuration mode only, and only with the show command) Compare configuration changes with another configuration file.
count—Display the number of lines in the output.
display—Display additional information about the configuration contents.
- changed—Tag changes with junos:changed attribute (XML only).
- commit-scripts—(Configuration mode only) Display all statements that are in a configuration, including statements that were generated by transient changes. For more information, see the Junos OS Configuration and Operations Automation Guide.
- detail—(Configuration mode only) Display configuration data detail.
- inheritance <brief | default | no-comments |groups | terse>—(Configuration mode only) Display inherited configuration data and source group.
- omit—(Configuration mode only) Display configuration statements omitted by the apply-flags omit configuration statement.
- set—Display the configuration as a series of configuration mode commands required to re-create the configuration.
- xml—(Operational mode only) Display the command output as Junos XML protocol (Extensible Markup Language [XML]) tags.
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 (" ").
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. For more information on using the last lines option, see Pipe ( | ) Filter Functions in the Junos OS command-line interface.
hold—Hold text without exiting the --More-- prompt.
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 full-names is specified. To prevent the names from being truncated, use the full-names option.
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. For information about specifying the filename, see Viewing Files and Directories on a Device Running Junos OS.
trim columns—Trim specified number of columns from the start line.
Required Privilege Level
view