[Contents] [Prev] [Next] [Index] [Report an Error]

Configuration Information Requests

Requests for configuration information are requests for information about the current configuration, either candidate or committed (the one currently in active use on the routing platform). The candidate and committed configurations diverge when there are uncommitted changes to the candidate configuration.

The NETCONF API defines the <get-config> tag element for retrieving configuration information. The JUNOS XML API defines a tag element for every CLI configuration statement described in the JUNOS software configuration guides.

The following example shows how to request information from the [edit system login] hierarchy level of the candidate configuration:

<rpc>
    <get-config>
        <source>
            <candidate/>
        </source>
        <filter type="subtree">
            <configuration>
                <system>
                    <login/>
                </system>
            </configuration>
        </filter>
    </get-config>
</rpc>
]]>]]>

For more information, see Requesting Configuration Information. For a summary of the available configuration tag elements, see the JUNOS XML API Configuration Reference.


[Contents] [Prev] [Next] [Index] [Report an Error]