Loading the configuration, Example for saving the configuration, Network requirements – H3C Technologies H3C MSR 5600 User Manual

Page 160: Configuration procedure

Advertising
background image

147

</rpc-reply>

Loading the configuration

After you perform the load operation, the loaded configurations are merged into the current

configuration: New configurations are directly loaded, and the configurations that already exist in the

current configuration are replaced by those loaded from the configuration file.
# Copy the following text to the client to load a configuration file for the device:

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<load>

<file>Specify the configuration file name</file>

</load>

</rpc>

The specified configuration file name must start with the storage media name and end with the extension
(.cfg).
After receiving the load request, the device returns a response in the following format if the load

operation is successful:

<?xml version="1.0" encoding="UTF-8"?>

<rpc-reply message-id="101"

xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Example for saving the configuration

Network requirements

Save the current configuration to the configuration file my_config.cfg.

Configuration procedure

# Enter XML view.

<Sysname> xml

# Exchange capabilities.

<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<capabilities>

<capability>

urn:ietf:params:netconf:base:1.0

</capability>

</capabilities>

</hello>

# Save the configuration of the device to the configuration file my_config.cfg.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<save>

<file> my_config.cfg</file>

</save>

Advertising
This manual is related to the following products: