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

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

book

Article ID: 122704

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Spectrum NCM backup of custom NCM device family is failing with the following Error:

SPC-OCC-10746: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [252]: Logging 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: 

Environment

DX NetOps Spectrum all releases

Cause

The same error occurrs when manually running the $SPECROOT/NCM/capture_running.pl script file on the command line after copying the Running_Config script from the OneClick Console and pasting it in the $SPECROOT/NCM/capture_running.pl file. 

$ perl capture_running.pl <IP ADDRESS> 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: 

There can be caused by the following issues: 

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

2. The SSH keys on the device is not matching.

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 issue has been addressed in Spectrum 10.3.1 and greater.

Additional Information

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

Known Anomalies: https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/spectrum/10-3/release-information/known-anomalies.html#concept.dita_18ac53e4a457e6f871e7fd2680a39369fb87d9d0_NCMcaptureusingscriptsisnotworkingafterupgradingfrom1021to1030


Features: https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/spectrum/10-3/release-information/features-and-enhancements.html#concept.dita_f7d7ad48472ee5d8745e123164315af850e56ffc_CygwinUpdate