Saving the configuration, Rolling back the configuration, Loading the configuration – H3C Technologies H3C S6300 Series Switches User Manual

Page 255

Advertising
background image

242

Saving the configuration

# Copy the following text to the client to save the device configuration to the specified file:

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

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

<save>

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

</save>

</rpc>

The name of the specified configuration file must start with the storage media name and end with the
extension .cfg. The total length of the save path and file name must be no more than 191 characters. If
the text includes the file column, you must specify the file name and the specified file will be used as the

next-startup configuration file. If the text does not include the file column, the configuration is

automatically saved to the default main next-startup configuration file.
After receiving the save request, the device returns a response in the following format if the save

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>

Rolling back the configuration

# Copy the following text to the client to roll back the configuration:

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

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

<rollback>

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

</rollback>

</rpc>

The name of the specified configuration file must start with the storage media name and end with the

extension .cfg. The total length of the save path and file name must be no more than 191 characters.
After receiving the rollback request, the device returns a response in the following format if the rollback

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>

Loading the configuration

After you perform the load operation, the loaded configurations are merged into the current
configuration as follows:

New configurations are directly loaded.

Advertising