01-Fundamentals Configuration Guide

HomeSupportRoutersCR16000-F SeriesConfigure & DeployConfiguration GuidesH3C CR16000-F Routers Configuration Guides-R838x-6W10101-Fundamentals Configuration Guide
10-Target configuration management configuration

Managing target configuration

About target configuration

Target configuration enables you to configure and verify intended settings before merging them into the running configuration.

You can configure target configuration command lines in the following views:

·     Private-mode system view and its lower-level views.

·     Exclusive-mode system view and its lower-level views.

Commands available for real-time configuration are all available for target configuration.

Private-mode views and exclusive-mode views have an extra tilde sign (~) in their prompts as compared to their counterpart real-time-mode views. For more information about views, see "Using the CLI."

Committing the target configuration command lines

About this task

A commit operation commits all target configuration command lines. After a successful commit operation, the system creates a configuration rollback point.

Restrictions and guidelines

As a best practice, do not execute the commit command frequently. The system creates a configuration rollback point after each successful commit operation. Executing the command frequently increases device load and might cause commit failures.

To save the running configuration while committing the target configuration command lines, you can use one of the following methods:

·     Specify the save-running filename option when you use the commit command to commit the target configuration command lines. The system saves the running configuration to the specified file while committing the target configuration command lines.

·     Use the configuration commit auto-save path command to enable automatic saving for the target configuration command lines. This command enables the device to automatically save the running configuration to a configuration file in the specified directory each time the commit command is executed. The directory is specified by using the directory argument. The prefix for the configuration file is specified by using the filename-prefix filename-prefix option.

The automatic saving feature takes effect if you do not specify the save-running filename option when executing the commit command. If you specify this option when executing the commit command, the automatic saving feature cannot take effect. The target configuration command lines are saved to the file specified by using this option.

Procedure

1.     (Optional.) Specify the maximum number of rollback points:

a.     Enter real-time-mode system view.

system-view

b.     Set the maximum number of rollback points.

configuration commit max-number max-number

By default, the maximum number of rollback points is 100.

To create a new rollback point when the number of rollback points reaches the maximum, the system deletes the oldest rollback point.

c.     Return to user view.

quit

2.     (Optional.) Enable automatic saving for the target configuration command lines and configure the related parameters:

a.     Enter real-time-mode system view.

system-view

b.     Enable automatic saving for the target configuration command lines and configure the related parameters.

configuration commit auto-save path directory filename-prefix filename-prefix [ user user-name [ password { cipher | simple } string ] | vpn-instance vpn-instance-name ] *

By default, automatic saving is disabled for the target configuration command lines.

c.     Return to user view.

abort

3.     Enter private-mode system view or exclusive-mode system view.

system-view { exclusive | private }

4.     Configure features as required.

For more information about configuring features, see the configuration guides.

5.     (Optional.) Display target configuration command lines.

display target-configuration

Incorrect target configuration command lines will affect the operation of the network. Use this command to verify that all target configuration command lines are correct.

6.     Commit the target configuration command lines.

commit [ best-effort ] [ force ] [ label labelname ] [ save-running filename ] [ confirmed [ seconds ] | [ minutes minutes ] ] [ show-error ] [ clear-error ] [ description text ]

7.     (Optional.) Roll back the running configuration.

configuration replace { file filename | last number | commit-id commit-id | label labelname }

 

CAUTION

CAUTION:

This operation will cause settings not at the rollback point to be lost, which might cause service interruption. When you perform configuration rollback, make sure you fully understand its impact on your network.

 

To reclaim target configuration command lines that have been committed, use this command to roll back the running configuration as required.

Display and maintenance commands for target configuration

CAUTION

CAUTION:

·     Use the reset configuration commit command with caution. You cannot restore the rollback points cleared by using this command.

·     Use the reset target-configuration command with caution. You cannot restore the target configuration command lines cleared by using this command. To use these command lines, you must reconfigure them.

 

Execute the following commands in private-mode system view, exclusive-mode system view, or their lower-level views:

·     display target-configuration

·     reset target-configuration

Execute the following commands in any view:

·     display configuration commit diff

·     display configuration commit list

·     display configuration sessions

Execute the reset configuration commit command in user view.

 

Task

Command

Display the configuration differences between a rollback point and the running configuration or between two rollback points.

display configuration commit diff [ at commit-id | last number | since commit-id ]

Display rollback point information.

display configuration commit list [ number | label ] [ verbose ]

Display device configuration sessions.

display configuration sessions

Display the target configuration command lines.

display target-configuration [ diff | failure [ brief ] | merge | success ]

Clear old rollback points.

reset configuration commit number

Clear the target configuration command lines.

reset target-configuration [ command [ text ] ]

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网