SPC-OCC-10746: SPC-NCM-20007: Use of uninitialized value $login_output in concatenation (.) or string

Document ID : KB000122704
Last Modified Date : 26/12/2018
Show Technical Document Details
Issue:
Since migrated to CA Spectrum 10.3.0, the NCM backup of custom NCM device family is failing.

Capture Error 

SPC-OCC-10746: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [252]: Loging Error: Use of uninitialized value $login_output in concatenation (.) or string at C:\Windows\TEMP\script_128 line 109. 

Host 10.130.46.52: 
Login has failed. Output: 



Troubleshooting:
Copied the Running_Config script from the OC Console and pasted in the $SPECROOT/NCM/capture_running.pl file. 

The same error occurred when manually running the $SPECROOT/NCM/capture_running.pl scrfipt file: 

$ perl capture_running.pl 10.130.46.52 spectrum "password" "enable_passw" 40 40 
Use of uninitialized value $login_output in concatenation (.) or string at capture_running.pl line 109. 

Host 10.130.46.52: 
Login has failed. Output: 
 
Environment:
CA Spectrum 10.3
Cause:
There are a few possible causes for this error in Spectrum 10.3: 

1. The $SPECROOT/NT-Tools/SRE/home/spectrum/.ssh/config file has the incorrect owner and permission. 

2. This is known Anomalie in 10.3.0, cygwin update causing this issue.

 
Resolution:
#1 Workaround:

Changed to Spectrum Install Owner account and changed the file permission.

chown $USER config 
chmod 600 config 


The issue will be fixed in CA Spectrum 10.3.1 release.

#2 Workaround:

--- Delete the folder $SPECROOT\NT-Tools\SRE\home\spectrum.
--- Do "bash -login" before running the NCM scripts.

The fix will be delivered in 10.3.1.

Documentation:
---------------

Known Anomalies: https://docops.ca.com/display/CASP1030/Known+Anomalies#KnownAnomalies-NCMcaptureusingscriptsisnotworkingafterupgradingfrom10.2.1to10.3.0
Features: https://docops.ca.com/display/CASP1030/Features+and+Enhancements#FeaturesandEnhancements-CygwinUpdate