< Home

Comparing Configuration Files

Context

You can compare the current configuration file (including offline configurations) with the next startup configuration file to check whether they are consistent and determine whether to set the current configuration file as the next startup configuration file.

The system displays content that differs between the two files starting from the first different character to the end of the file. By default, the system displays 150 characters. If there are fewer than 150 characters of different content, the system displays only the content from the first different character to the end of the file.

If the next startup configuration file is unavailable or empty, the system displays a message indicating that the file cannot be read.

The configuration file name extension must be .cfg or .zip.

Procedure

  • Run compare configuration [ configuration-file ] [ current-line-number save-line-number ]

    The system starts to check whether the current configurations (including offline configurations) are identical with the next startup configuration file or the specified configuration file.

    If parameters are not specified, the configuration files are compared from the first line. The parameters current-line-number and save-line-number are used to continue the comparison, neglecting the differences, after differences are found.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >