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

    Related Documentation

    • <configuration> in the Junos XML API Configuration Reference
    • <data>
     

    <get-config>

    Usage

    <rpc><get-config><source><( candidate | running )/> </source> </get-config> <get-config><source><( candidate | running )/> </source> <filter type="subtree"><configuration> <!-- tag elements for each configuration element to return --></configuration></filter></get-config></rpc>
    ]]>]]>

    Description

    Request configuration data from the NETCONF server. The child tag elements <source> and <filter> specify the source and scope of data to display:

    • To display the entire active configuration, enclose the <source> tag element and <running/> tag in the <get-config> tag element.
    • To display the entire candidate configuration, enclose the <source> tag element and <candidate/> tag in the <get-config> tag element.
    • To display one or more sections of the configuration hierarchy (hierarchy levels or configuration objects), enclose the appropriate child tag elements in the <source> and <filter> tag elements.
    <candidate/>
    —

    Specifies the candidate configuration.

    <configuration>
    —

    Encloses tag elements that specify which configuration elements to return.

    <filter>
    —

    Encloses the <configuration> tag element. The mandatory type attribute indicates the kind of syntax used to represent the requested configuration elements; the only acceptable value is subtree.

    To specify the configuration elements to return, include within the <filter> tag element the Junos XML tag elements that represent all levels of the configuration hierarchy from the root (represented by the <configuration> tag element) down to each element to display. For information about the configuration elements available in the current version of the Junos OS, see the Junos XML API Configuration Reference.

    <running/>
    —

    Represents the active (mostly recently committed) configuration.

    <source>
    —

    Encloses the tag that specifies the source of the configuration data. To specify the candidate configuration, include the <candidate/> tag. To specify the active configuration, include the <running/> tag.

    Usage Guidelines

    See Requesting Configuration Information Using NETCONF.

     

    Related Documentation

    • <configuration> in the Junos XML API Configuration Reference
    • <data>
     

    Published: 2013-07-26