[Contents] [Prev] [Next] [Index] [Report an Error]

## Preparing a File to Be Loaded into the Current SRC Configuration

When you save your current configuration to a file, the file contains the configuration in its current form, including any uncommitted changes. If more than one user is modifying the configuration, all changes made by all users are saved.

When you save a configuration to a file, the contents of the current level of the statement hierarchy (and below) are saved, along with the statement hierarchy containing it. When you save a file to XML format, the software inserts a line in the saved file to indicate the level at which the file was saved. For example:

`

<configuration>
<system>
<services sdx:current="true">
<ssh>
<root-login>deny</root-login>
</ssh>
<editor>
<password-encryption>sha</password-encryption>
</editor>
</services>
</system>
</configuration>

`

The file is saved in the current working directory. When you load a file that was saved at a specific hierarchy level, use the relative option for a load command. If you do not use the relative option, the command disregards the sdx:current="true" text in XML files.

If you plan to copy a configuration file from the C Series Controller to another system and back, make sure that you have SSH or Telnet enabled on the C Series Controller.

The examples in the following procedure show how to prepare a file in XML format; the procedure is the same for files in text format.

To prepare a configuration file for loading into the SRC configuration:

1. In configuration mode, navigate to the level at or below which you want to save the configuration.
2. Run the save command.

   For example:

   `
   [edit system]
   user@host# save systemcfg.xml
   172 lines written to systemcfg.xml
   [edit system]
   `
3. Edit the file.

   On a C Series Controller:

   1. Copy the file to a remote system, and then edit it. For example:
      `
      user@host> file copy /root/systemcfg.xml ftp://user@myserver/systemcfg.xml
      Password:
      user@host>
      `

      For information about specifying the filename, see Specifying Filenames and URLs.

   2. Edit the file in the editor of your choice.
   3. Copy the edited file back to the C Series Controller. For example:
      `
      user@host> file copy ftp://user@myserver/systemcfg.xml /root/systemcfg2.xml
      Password:
      user@host>
      `
      `
      `

#### Related Topics

- Before You Load a Configuration
- About SRC Configuration Files in XML Format
- About SRC Configuration Files in Text Format
- Commands to Load a Configuration
- For information about enabling SSH and Telnet on the C Series Controller, see Enabling Remote Users to Access the C-Web Interface.

[Contents] [Prev] [Next] [Index] [Report an Error]