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

    Commands to Load a Configuration

    Use the load commands to load your configuration from a saved configuration file.

    The load merge and load replace commands include options for loading only system bootstrap or none-bootstrap configuration data from the specified configuration file. Bootstrap configuration data is part of the local configuration. It enables an SRC host to be a networked host, and includes parameters like system host-name, system domain-name, interfaces, and routing options.

    • Use the bootstrap-only option when loading the configuration on C Series Controllers that have no bootstrap configuration—for example, a new system or a system that has had the factory default configuration restored.
    • Use the except-bootstrap option when you are loading a configuration from a file and you want to retain the existing bootstrap configuration.

    You can automatically enable SRC components when the CLI starts. For example, this allows you to automatically enable the Juniper Networks database community on a system that has only the factory default configuration loaded. To configure the system to automatically enable components, add “Component.auto-enable = component-name” to the CLI backend bootstrap properties file “cli.properties.”

    You can use the following commands in configuration mode to make configuration changes:

    • load factory-default—Replaces the existing configuration with the configuration supplied with the SRC software.
    • load merge (filename | terminal) <relative>—Combines the configuration that is currently shown in the CLI and the configuration in the specified file or in the text you type at the terminal. Press Ctrl+D to end terminal input.
      • bootstrap-only—When used with this option, only system bootstrap configuration data is merged.
      • except-bootstrap—When used with this option, all configuration data except the bootstrap configuration is merged.
    • load override (filename | terminal)—Discards the entire configuration that is currently shown in the CLI, and loads the entire configuration in the specified file or in the text you type at the terminal. Press Ctrl+D to end terminal input.
    • load replace (filename | terminal) <relative>—Looks for replace attributes in the specified file, deletes the existing statements of the same name, and replaces them with the configuration in the specified file or in the text you type at the terminal. Press Ctrl+D to end terminal input.
      • bootstrap-only—When used with this option, only system bootstrap configuration data is replaced.
      • except-bootstrap—When used with this option, all configuration data except the bootstrap configuration is replaced.
    • load set (filename | terminal) <relative>—Executes configuration mode commands such as set, edit, exit, and top from a text file or from the text you type at the terminal. Press Ctrl+D to end terminal input.

    The relative option for the load merge, load replace, and load set commands lets you load the configuration at a specified hierarchy level.

    The load merge, load override, and load replace commands let you update configuration statements in the SRC configuration from a text file or an XML file. The structure of this file must conform to the structure for an SRC configuration file. For this reason, we recommend that you copy the file based on the file format you plan to use:

    • XML format—Save a configuration to an XML file and modify that file.
    • Text format—Save a configuration to a text file, or copy the output from a show command to a file, and modify that file.

      Note: For a merge, replace, or override operation, you cannot use the file created by using the save filename format set command.

    For a merge or replace operation, you can save a copy of the configuration at any level in the configuration hierarchy, then load the updated configuration at the same level.

    Use the editor of your choice to modify a saved configuration file. When you edit a file that is to be loaded into the SRC configuration, you can add specified attributes to specify actions to be taken.

    SSH Host Keys

    You can load SSH host keys into the configuration from the saved configuration file. When you execute commit, the loaded SSH host keys are used to update system key files (those in the /etc/ssh directory). The original files are backed up with the same filename with an additional “~”.

    Component State

    You can load SRC component states into the configuration from the saved configuration file. When you execute commit, the loaded component state values are used to automatically enable and disable the SRC components.

    Modified: 2014-06-10