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


Preparing an XML File to Be Loaded into the Current SRC Configuration

When you save your current configuration to an XML 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. 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.

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

For information about enabling SSH and Telnet on the C-series platform, see SRC-PE Getting Started Guide, Chapter 10, Managing Configurations.

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]

  1. Edit the file.

On a C-series platform:

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

For information about specifying the filename, see Chapter 5, Using CLI Operational Commands to Monitor the SRC Software.

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

On a Solaris platform:


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