The below error message is being received in OneClick console when attempting to run a capture of Host Configuration on Cisco NX-OS device.
SPC-OCC-10746: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [-1]:.
Release : 10.4.1
Component : Spectrum Core / SpectroSERVER
1. Export the script from NCM and verify it can be run manually with the Spectrum install user account:
2. Run "which perl" and verify the path returned
[root@host bin]# which perl
/usr/bin/perl
3. Specify the perl binary root path within Spectrum > Configuration Manager > Perl Configuration > Use Custom Perl
For debugging purposes, you can add a log redirect to the script and run the script manually.
If the log redirect works when running the script manually, but not when the script is run from within NCM then that shows the script is not being called (most likely perl cannot be located).