show configuration
Syntax
show configuration <statement-path>
Description
Display the configuration that currently is running on the router or switch, which is the last committed configuration.
Options
none | Display the entire configuration. |
statement-path | (Optional) Display one of the following hierarchies
in a configuration. (Each
|
Additional Information
The portions of the configuration that
you can view depend on the user class that you belong to and the corresponding
permissions. If you do not have permission to view a portion of the
configuration, the text ACCESS-DENIED
is substituted
for that portion of the configuration. If you do not have permission
to view authentication keys and passwords in the configuration, because
the secret
permission bit is not set for your user account,
the text SECRET-DATA
is substituted for that portion
of the configuration. If an identifier in the configuration contains
a space, the identifier is displayed in quotation marks.
Likewise, 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
.
Required Privilege Level
view—To execute the command in the CLI mode. In addition to view, to display the contents under a configuration hierarchy, user should have the required privilege level to view the configuration under that configuration hierarchy.
Output Fields
This command displays information about the current running configuration.
Sample Output
show configuration
user@host> show configuration ## Last commit: 2006-10-31 14:13:00 PST by user1 version "8.2I0 [userb]"; ## last changed: 2006-10-31 14:05:53 PST system { host-name exhost; domain-name ex1.net; backup-router 198.51.100.254; time-zone America/Los_Angeles; default-address-selection; name-server { 192.0.2.254; 192.0.2.249; 192.0.2.176; } services { telnet; } tacplus-server { 10.2.3.4 { secret /* SECRET-DATA */; ... } } } interfaces { ... } protocols { isis { export "direct routes"; } } policy-options { policy-statement "direct routes" { from protocol direct; then accept; } }
show configuration policy-options
user@host> show configuration policy-options policy-options { policy-statement "direct routes" { from protocol direct; then accept; } }
Release Information
Command introduced before Junos OS Release 7.4.