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

book

Article ID: 6823

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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 ... 

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.

Cause

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

Environment

SpectroSERVER running on RHEL 7

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.

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.

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.




Note that in the above example, the missing module mentioned in the error message is "Expect.pm". There may be different missing modules mentions in different error messages, so be sure to note exactly which module is missing in order to install the right one. For example, you may see an error on "OpenSSH.pm" 

SPC-OCC-1074: The operation failed. SPC-NCM-20007: Capture Running Script Returned Error [2]: Can't locate OpenSSH.pm

In which case, the command to install this module in cpan would be

cpan[1]> install Net::OpenSSH








Additional Information

If the NCM Operations still fail with "cannot locate" messages identify the offending module(s) and locate it on the system and copy it to opt/SPECTRUM/lib/Perl preserving the same directory structure as the location of the original file.


Configuring CA Spectrum to Use a Custom Perl Install

 

 

Attachments