NCM SSH-based Perl Scripts failed with SPC-OCC-10746 error on Linux

Document ID : KB000006823
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

My custom Network Configuration Manager (NCM) SSH-based Perl Scripts that work on Spectrum which is running on Windows, fail with the following error when Spectrum is migrated to Linux (RHEL) platform.

SPC-OCC-1074: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [2]: Can't locate Net/SSH/Expect.pm in @INC ... 

SPC-OCC-10746_CaptureError.PNG

Although I have confirmed Perl exists in the RHEL platform, I have installed Net::SSH Perl module and I have enabled Use Custom Perl and set up Custom Perl Directory correctly in the Configuration Manager -> Information tab -> Perl Configuration subview.

Environment:
SpectroSERVER running on RHEL 7
Cause:

Net:SSH:Expect Perl Module hasn't been installed.

Resolution:

Login to the SpectroSERVER machine and run 'instmodsh' command and type 'l' to list Perl modules that have been installed and check if you have Net:SSH:Expect module.

 

instmodsh.png

 

If you don't have Net::SSH::Expect module then run 'cpan' utility and on the cpan prompt run 'install Net::SSH::Expect' to install the required Perl Module.

 

InstallNetSSHExpect.png

Additional Information:

Configuring CA Spectrum to Use a Custom Perl Install