Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

    Replacing the Configuration

    You can replace a configuration from files in XML or text format. The examples in this section use files in XML format.

    Note: You cannot use the file saved by using the save filename format set command to replace the CLI configurations.

    To replace all of the active configuration with a full configuration in a specified file:

    • In configuration mode, specify the load override command. For example:
      [edit]user@host# load override complete-newcfg.xml format xml

      When you use the load override command and commit the configuration, all system processes reparse the configuration.

    The following example shows part of an existing configuration, the configuration in the file to be loaded, and the resulting configuration. In the resulting configuration, bold text indicates the configuration that changed.

    Existing configuration:

    <configuration>. . .<system>. . .<host-name>myhost</host-name><name-server>192.2.2.10</name-server><name-server>192.2.2.20</name-server><domain-search>mydomain.juniper.net</domain-search><domain-search>juniper.net</domain -search>. . .</system>. . .</configuration>

    Configuration in the file to be loaded:

    <configuration>. . .<system>. . .<host-name>myhost</host-name><name-server>192.2.2.30</name-server><name-server>192.2.2.40</name-server><domain-search>newdomain.juniper.net</domain-search>. . .</system>. . .</configuration>

    Resulting configuration:

    <configuration>. . .<system>. . .<host-name>myhost</host-name><name-server>192.2.2.30</name-server><name-server>192.2.2.40</name-server><domain-search>newdomain.juniper.net</domain-search>. . .</system>. . .</configuration>

    Published: 2014-06-12