Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

netconf

date_range 27-Nov-24

Syntax

content_copy zoom_out_map
netconf {
    flatten-commit-results;
    hello-message {
        yang-module-capabilities {
            advertise-native-yang-modules;
            advertise-custom-yang-modules;
            advertise-standard-yang-modules;
        }
    }
    netconf-monitoring {
        netconf-state-schemas {
            retrieve-custom-yang-modules;
            retrieve-standard-yang-modules;
        }
    }
    notification {
        interleave;
    }
    rfc-compliant;
    ssh {
        client-alive-count-max number;
        client-alive-interval seconds;
        connection-limit limit;
        port port;
        rate-limit limit;
    }
    tls {
        client-identity client-id {
            fingerprint fingerprint;  
            map-type (san-dirname-cn | specified);
            username username;
        }
        default-client-identity {
            map-type (san-dirname-cn | specified);
            username username;
        }
        local-certificate local-certificate;   
        traceoptions {
            file <filename> <files files> <match match> <size size> <(world-readable | no-world-readable)>;
            flag name;
            level (all | error | info | notice | verbose | warning);
            no-remote-trace;
        }
    }
    traceoptions {
        file <filename> <files number> <match regular-expression> <size size> <world-readable | no-world-readable>;
        flag flag;
        no-remote-trace;
        on-demand;
    }
    version-1.1;
    yang-compliant;
    yang-modules {
        device-specific;
        emit-anyxml-in-rpc-output;
        emit-extensions;
        emit-family-ns-and-module-name;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit system services]

Description

Configure the NETCONF XML management protocol.

Default

If you do not include the netconf statement, NETCONF connections are not permitted.

Options

flatten-commit-results Suppress the <commit-results> XML subtree in the NETCONF server's response for <commit> operations. This statement must be configured in conjunction with the rfc-compliant statement.
Note:

You should configure the flatten-commit-results statement outside of a NETCONF session, for example, in the CLI. If you configure the statement in a NETCONF session and commit and synchronize the configuration, the RPC reply might return unclosed or mismatched XML tags.

version-1.1

Make NETCONF sessions compliant to RFC 6242, Using the NETCONF Protocol over Secure Shell (SSH). This statement must be configured in conjunction with the rfc-compliant statement.

When you enable RFC 6242-compliant NETCONF sessions and both peers advertise the :base:1.1 capability, the NETCONF session uses chunked framing instead of the end-of-message character sequence (]]>]]>) to define message boundaries.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 7.5.

flatten-commit-results option added in Junos OS Release 21.2R1.

version-1.1 statement added in Junos OS Release 24.4R1 and Junos OS Evolved Release 24.4R1.

footer-navigation