Spectrum NCM Perl capture running script failing with login error but works fine when run from bash shell on same Spectroserver.
I followed a tech article to make a copy of script and run it directly from bash shell and it captures the config just fine. But trying it from the capture button on host configuration tab the error is produced right away.
I have some Nexus devices where we are getting the following error message every time we hit the capture config button which runs the perl script. I haven't found anything in the config on the device but do not exactly understand the error message. Has anyone had success in resolving this? Attaching screenshot.
Error message:
==================
SPC-OCC-10746: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [252]:Login Error:
Use of uninitialized value in concatenation (.) or string at C:/Windows\Temp\script_5 line 110.
================
Line 110 is the statement in red.
my $login_output;
eval { $login_output = $ssh->login(); };
if( $@ )
{
$msg = "Login has failed. Output: $login_output"; <--- This is line 110 in perl script
return( 252, $msg );
}