Using SSH to backup configurations in Network Configuration Manager fails with the following errors:
"SPC-OCC-10750: Unknown failure"
SPC-NCM-20007: Capture Running Script Returned Error : "make_path" is not exported by the File::Path module "remove_tree" is not exported by the File::Path module
In the NCMServ.out we can see "java.io.EOFException: SSHSCP1: premature EOF"
By default, NCM uses mindterm libraries for SSH and SCP. Some devices have an issue with this API causing these errors.
Make a backup of the $SPECROOT/NCM/config.xml file.
Edit the $SPECROOT/NCM/config.xml file and change the following line:
Change it to read as follows:
Save the change.
Kill the current running ncmservice process. processd will start a new one.
NOTE. The default value is mindterm. You may have to redo these changes after an upgrade.
OpenSSH is not supported in Windows OS environments. Due to Windows socket architecture, file descriptors used by secure shell are not stable. Therefore be aware of any out of box scripts or custom scripts being used for SSH communication through NCM Device Families. The scripts cannot use OpenSSH perl modules.
Instead, look for scripts that "USE Net::SSH::Expect" modules, such as the OOB Cisco NX OS scripts.