Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show | display set

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show | display set <explicit> <relative>

Description

Display the configuration as a series of configuration mode commands required to re-create the configuration from the top level of the hierarchy as set commands.

Options

explicit

Display explicitly, as a series of set commands, all the configuration statements that the system internally creates when you configure certain statements from the top level of the hierarchy.

For example, assume you issue the set interfaces ge-0/0/0.0 family inet configuration mode command. You then show the resulting configuration with the show interfaces ge-0/0/0 | display set command. The output displays the same set command you entered. If you include the explicit argument, the output also shows the configuration statements needed to create the hierarchy where the family inet statement is specified. Specifically for this example, the output therefore includes the set interfaces ge-0/0/0 unit 0 statement in addition to the set interfaces ge-0/0/0.0 family inet statement.

relative

Display a series of set commands relative to the current edit path.

For example, assume you issue the set interfaces ge-0/0/0.0 family inet configuration mode command. If you include the relative argument with the show interfaces ge-0/0/0 | display set command, the output shows the configuration statements relative to the interfaces path. Specifically for this example, the output displays the set unit 0 family inet statement and set unit 0 family inet address 10.0.1.254/24 statement in the output.

Required Privilege Level

view

Sample Output

Sample output for the show | display set and show | display set <explicit> commands:

content_copy zoom_out_map
[edit interfaces ge-0/0/0]
user@host# show | display set 
set interfaces ge-0/0/0 unit 0 family inet address 10.0.1.254/24

[edit interfaces ge-0/0/0]
user@host# show | display set explicit
set interfaces ge-0/0/0 unit 0 family inet address 10.0.1.254/24
set interfaces ge-0/0/0 unit 0 family inet
set interfaces ge-0/0/0 unit 0

[edit interfaces ge-0/0/0]
user@host# show | display set relative
set unit 0 family inet address 10.0.1.254/24
set unit 0 family inet

Release Information

Command introduced before Junos OS Release 7.4.

Option explicit command introduced in Junos OS Release 20.1R1.

footer-navigation