Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Displaying the Current Junos OS Configuration

To display the current configuration for a device running Junos OS, use the show configuration mode command. This command displays the configuration at the current hierarchy level or at the specified level.

user@host# show <statement-path>

The configuration statements appear in a fixed order, interfaces appear alphabetically by type, and then in numerical order by slot number, PIC number, and port number. Note that when you configure the router, you can enter statements in any order.

You also can use the CLI operational mode show configuration command to display the last committed current configuration, which is the configuration currently running on the router:

user@host> show configuration

When you show a configuration, a timestamp at the top of the configuration indicates when the configuration was last changed:

## Last commit: 2006-07-18 11:21:58 PDT by echenversion 8.3

If you have omitted a required statement at a particular hierarchy level, when you issue the show command in configuration mode, a message indicates which statement is missing. As long as a mandatory statement is missing, the CLI continues to display this message each time you issue a show command. For example:

[edit]user@host# show
protocols {pim {interface so-0/0/0 {priority 4;version 2;# Warning: missing mandatory statement(s): 'mode'}}}

When you issue the show configuration command with the | display set pipe option to view the configuration as set commands, those portions of the configuration that you do not have permissions to view are substituted with the text ACCESS-DENIED.

Unsupported statements included in the CLI configuration are displayed with the “unsupported” text in the configuration. For example, if a statement is configured on an unsupported platform, the CLI displays a message that the statement is ignored in the configuration because it is configured on an unsupported platform. When you issue the show command with the | display xml option, you can see the unsupported="unsupported” attribute for configuration that is unsupported.

The “unsupported” attribute included in text configuration or XML configuration is provided to scripts when the unsupported="unsupported" attribute is included in the <get-configuration> RPC call.

Published: 2013-01-15