Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show configuration

    Syntax

    show configuration <statement-path>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Description

    Display the configuration that currently is running on the router or switch, which is the last committed configuration.

    Options

    noneDisplay the entire configuration.
    statement-path(Optional) Display one of the following hierarchies in a configuration. (Each statement-path option has additional suboptions not described here. See the appropriate feature guide or EX Series switch documentation for more information.)
    • access—Network access configuration.
    • access-profile—Access profile configuration.
    • accounting-options—Accounting data configuration.
    • applications—Applications defined by protocol characteristics.
    • apply-groups—Groups from which configuration data is inherited.
    • chassis—Chassis configuration.
    • chassis network-services—Current running mode.
    • class-of-service—Class-of-service configuration.
    • diameter—Diameter base protocol layer configuration.
    • ethernet-switching-options—(EX Series switch only) Ethernet switching configuration.
    • event-options—Event processing configuration.
    • firewall—Firewall configuration.
    • forwarding-options—Options that control packet sampling.
    • groups—Configuration groups.
    • interfaces—Interface configuration.
    • jsrc—JSRC partition configuration.
    • jsrc-partition—JSRC partition configuration.
    • logical-systems—Logical system configuration.
    • poe—(EX Series switch only) Power over Ethernet configuration.
    • policy-options—Routing policy option configuration.
    • protocols—Routing protocol configuration.
    • routing-instances—Routing instance configuration.
    • routing-options—Protocol-independent routing option configuration.
    • security—Security configuration.
    • services—Service PIC applications configuration.
    • snmp—Simple Network Management Protocol configuration.
    • system—System parameters configuration.
    • virtual-chassis—(EX Series switch only) Virtual Chassis configuration.
    • vlans—(EX Series switch only) VLAN configuration.

    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

    List of Sample Output

    show configuration
    show configuration policy-options

    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;
        }
    }
    

    Modified: 2017-04-19