Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

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

Specify the Scope of Configuration Information to Return in a NETCONF Response

date_range 15-Jul-21

In a NETCONF session with a device running Junos OS, a client application can request the entire configuration or specific portions of the configuration by including the appropriate child tag elements in the <filter> tag element within the <rpc> and <get-config> tag elements.

content_copy zoom_out_map
<rpc>
    <get-config>
        <source>
            ( <candidate/> | <running/> )
        </source>
        <filter type="subtree">
            <!-- tag elements representing the configuration elements to return -->
        </filter>
    </get-config>
</rpc>
]]>]]>

The type="subtree" attribute in the opening <filter> tag indicates that the client application is using Junos XML tag elements to represent the configuration elements about which it is requesting information.

For information about requesting different amounts of configuration information, see the following topics:

footer-navigation