Host x.x.x.x:
Login has failed. Output:
at com.aprisma.spectrum.scmd.RunScript.captureRunning(RunScript.java:221)
at com.aprisma.spectrum.scmd.ScmServiceImpl.captureConfigScriptImpl(ScmServiceImpl.java:768)
at com.aprisma.spectrum.scmd.ScmServiceImpl.captureRunningConfigRun(ScmServiceImpl.java:308)
at com.aprisma.spectrum.scmd.ScmServiceImpl.access$000(ScmServiceImpl.java:27)
at com.aprisma.spectrum.scmd.ScmServiceImpl$1.run(ScmServiceImpl.java:3169)
at java.lang.Thread.run(Thread.java:748)
java.lang.Exception: 8523794
252
Use of uninitialized value $login_output in concatenation (.) or string at d:/win32app/Spectrum/NCM/cache/script_0x704fe05_0x7077df6_cap_run line 113.
-----------
Spectrum release : 22.2.x
Windows Server 2016
Cygwin home directory for the spectrum user did not exist and therefore SSH was unable to create/populate/read the known_hosts file.
The Cygwin home directory for the spectrum account did not exist ($SPECROOT/NT-Tools/SRE/home/spectrum/)
This was causing SSH not to be able to create and update the known_hosts file in the user's directory. In turn, this was caused the SSH connection to fail and thus the NCM capture to fail.
Recreated the Cygwin home directory for the spectrum user on each landscape
- as the spectrum user
- launch cmd prompt
- ran: bash -login
This created the spectrum folder with some basic config files
The next time the NCM capture ran and ssh was triggered the known_hosts file was created, updated with the target devices key, and the capture was then successful