The display configuration candidate changes command displays the difference between the candidate configuration and current running configuration.
The display configuration candidate merge command displays all configurations, including uncommitted and committed ones.
Usage Scenario
Before committing a set of configuration, run the display configuration candidate changes command to view the difference between the candidate configuration and current running configuration.
The display configuration candidate merge command displays the difference between the configuration in the candidate configuration database and that in the running configuration database. If a configuration difference exists, the command output is displayed as follows:
To check whether the configuration to be committed is correct and whether it conflicts with the existing configurations, you can run the display configuration candidate merge command.
Precautions
This command applies only to the two-phase validation mode.
Before you run the commit command to commit a configuration, a configuration conflict occurs if the current running configuration is changed. In this case, run the refresh configuration candidate command to resolve the configuration conflict, and then run the display configuration candidate changes command to view the configuration difference.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> system-view [~HUAWEI] ftp server enable [*HUAWEI] display configuration candidate merge # sysname HUAWEI # interface GigabitEthernet0/1/0 # ftp server enable # user-interface con 0 set authentication password cipher $1c$a3XtEok2LJ$;&(SUt9vy0`JlWP6-z0<=01'5B+8NT8n9'<PL3oM$ history-command max-size 30 user-interface vty 0 4
<HUAWEI> system-view [~HUAWEI] display configuration candidate changes Building configuration # interface Tunnel1 - mtu 1400 + mtu 1300 # + interface Tunnel3 #
Item | Description |
---|---|
Building configuration | Generation of differential configuration. |
- | Deleted configuration. |
+ | Added configuration. |