compare configuration
Function
The compare configuration compares whether the current configurations are identical with the next startup configuration file.
Parameters
Parameter | Description | Value |
---|---|---|
configuration-file | Specifies the name of the configuration file to be compared with the current configurations. | The value is a string of 5 to 64 case-sensitive characters without spaces. |
current-line-number | Specifies the line number for comparison in the current configuration. | The value is an integer that ranges from 0 to 65535. |
save-line-number | Specifies the line number for comparison in the saved configuration. | The value is an integer that ranges from 0 to 65535. |
Usage Guidelines
Usage Scenario
If current-line-number and save-line-number are not specified, the configuration files are compared from the first lines. The two parameters can be specified to skip the differences that are found and continue the comparison.
When the difference is found using the compare configuration command, the different content in the current and saved configuration files is displayed. By default, 120 characters are displayed. If the different content from the start line to the end line contains less than 120 characters, only these characters are displayed.
Precautions
The configuration file name extension must be .cfg or .zip.
If configuration-file is not specified, the system compares whether the current configurations are identical with the next startup configuration file.
If configuration-file is specified, the system compares whether the current configurations are identical with the specified startup configuration file.
Example
# Compare whether the current configurations are identical with the next startup configuration file.
<AC6605> compare configuration
The current configuration is not the same as the next startup configuration file. ====== configuration line 14 ====== undo http server enable # drop illegal-mac alarm # vlan batch 10 to 11 # dot1x enable # set transceiver-monitoring disable ====== Configuration file line 14 ====== http server enable # drop illegal-mac alarm # vlan batch 10 to 11 # dot1x enable # set transceiver-monitoring disable