Using custom NCM device families, for some vendors, it is possible to specify device commands in command boxes and have them executed via NCM tasks. In the capture process, among other NCM tasks, the device prompt, following the configuration content, is incorrectly appended to a host configuration stored in Spectrum. This means that the configuration in Spectrum does not exactly match the one running on the device, which contradicts customer requirements. In addition this "prompt line", which is not part of the device configuration, is written to the device in an NCM Upload task, which destroys the configuration on the device due to invalid commands.
For NetOps Spectrum version 22.2.8 and newer.
This is a vendor issue caused by inconsistency.
We can work around this with a fix added to 22.2.8 as follows:
Symptom: Whenever users capture configuration using the NCM SSH commands for customer device families, they see the command prompt also as part of the configuration. However, users want to capture only the actual configuration.
Resolution: With this fix, Spectrum provides an XML attribute to avoid capturing the last line in the configuration. You must add the following line to the config.xml file and restart the NCM service:<skip-last-line type="java.lang.String">true</skip-last-line>If you remove the preceding line or set the flag to false, the functionality starts behaving like the way it was working previously. (DE562390, 33389154, 22.2.8)
we need to edit SPECROOT/NCM/config.xml
1) Add following line in %Spec_root%/NCM/confg.xml
<skip-last-line type="java.lang.String">true</skip-last-line>
2) Restart the NCM Service
3) Capture the configuration and customer will not see the last line in configuration.
4) Above line can be removed or that flag can made false, if customer wants old behavior.