Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

<copy-config>

 

Usage

Description

Replace the entire existing candidate configuration or open configuration database with the configuration data contained in a file.

If a client application issues the Junos XML protocol <open-configuration> operation to open a specific configuration database before executing a <copy-config> operation on the target <candidate/>, Junos OS performs the operation on the open configuration database. Otherwise, the operation is performed on the candidate configuration.

<source>Enclose the <url> tag element, which specifies the source of the configuration data.
<url>Specify the file that contains the new configuration data to substitute for the data in the existing candidate configuration or open configuration database.

When the configuration data is formatted as Junos XML tag elements, set the <url> format attribute to "xml" or omit the attribute. When the configuration data is formatted as CLI configuration statements, set the <url> format attribute to "text". For more information, see Uploading and Formatting Configuration Data in a NETCONF Session.

The <target> tag element and its contents are explained separately.