The devices in the custom NCM SSH device family requires the enable password. When it is supplied the following error occurs:
SPC-OCC-10747: Error capturing configuration for host: Failure.
Spectrum 23.3.3
This is a known issue in Spectrum 23.3.1 to 23.3.5. If the enable password is supplied the NCM capture will fail.
Symptom: After upgrading to 23.3.1 or higher, NCM Capture is not working with the commands for custom families (with Enable Password provided).
Resolution: With this fix, Spectrum resolves this issue and ensures that all captures now work properly with the commands and scripts for the custom device families. (DE589173, 33636838, 33637992, 23.3.6)
As a workaround used a modified version of the Cisco NX OS Capture_Running_Script to capture the device's configuration.
Line 115
from: if( $login_output !~ /\#\s*\z/ )
to: if( $login_output !~ /\>\s*\z/ )
Line 121
from:
if( $login_output !~ /\#\s*\z/ ) # Replace '#' is the prompt character here
{
# we don't have the '#' prompt, means we still can't exec commands
$msg = "Exec prompt not found.";
$ssh->close();
return( 249, $msg );
}
to:
$ssh->send("enable");
$ssh->waitfor('Password:\s*', 5);
my $exec_output = $ssh->send("$epass");
Added the Additional Script Parameters:
Added the Error Code Mappings: