< Home

Comparing Configuration Files

You can run commands to compare the current configuration with the configuration saved on the storage device.

Procedure

  1. Compare the current configuration with the configuration saved on the storage device.

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

    If no parameter is specified, the comparison starts from the first line. You can use parameters current-line-number and save-line-number to skip the differences that are identified between the configurations during the comparison.

    When identifying the differences, the system displays a certain number of characters (150 characters by default) in the current configuration file and saved configuration file starting from the line with identified differences. If the length of the content from the line with identified differences is fewer than 150 characters, the system displays all content till the end of both files.

    In comparing the current configurations with the configuration file for next startup, if the configuration file for next startup is unavailable or its contents are null, the system prompts that reading files fails.

    The system stores passwords in ciphertext in the configuration file. To secure passwords, the system modifies the ciphertext dynamically in the configuration file. Therefore, it is normal if the ciphertext changes when the password is not changed. If you run the compare configuration command, the system warns you that the password has changed, ignore it.

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