Network Management
Running and Startup config comparisons show a difference where there are none
Comparison of startup and running configuration highlights differences yet configurations are identical.
First published date
Last published date
Overview
Product section
Cause
Some of the possibilities are:
- startup-config is in a different format than running-config, for example, XML vs TXT
- the comparison process is not ignoring hexadecimal data even after enabling "Ignoring hex data" criteria (the startup-config does not display the hex data but the running-config does), for example:
- Standard hex keys are in blocks of 8 per line:
^[ \t\r\n\v\f]*[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]
- Config file comparisons may not ignore the hex data, if you use shorter blocks, like the sample given below:
^[ \t\r\n\v\f]*[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]
- The word quit at the end of the Hex data is not at the beginning of the line in the config. It can be random on the line but generally close.
- Standard hex keys are in blocks of 8 per line:
Resolution
In the first case (CAUSE 1) there is no possible solution as the "files" are essentially different and there is no viable method to compare them. Generally, you shall always compare configs of the same type: startup vs startup, running vs running.
In the second case (CAUSE 2), if hex keys are not in blocks of 8, you need to modify the 'Ignore quit word line' criteria:
from: ^[ \t\r\n\v\f]*quit[ \t\r\n\v\f]*
to: [ \t\r\n\v\f]*quit[ \t\r\n\v\f]*
- Log in to the Orion Web console
- Click Settings > NCM Settings > Comparison Criteria
- Select "Ignoring quit word line" and click Edit.
- Edit RegEx pattern screen appears as shown in the example below:
- Edit the RegEx pattern as highlighted in the above screen and click OK.
- Verify by comparing two configs being displayed as different previously.
- If the above comparison is corrected, Download a new set of configs to NCM regardless of whether a change is detected or not. This will update the charts on the web page. They will not be automatically reconciled by simply correcting the Comparison Criteria.