CA Spectrum - Unable to execute capture script for Cisco ASA family on SpectroServer

book

Article ID: 188274

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl usr/lib64/perl5 /usr/share/perl5 .) at /usr/Spectrum/NCM/cache/scrip3rg0b8 line 18. BEGIN failed--compilation aborted at /usr/Spectrum/NCM/cache/scrip3rg0b8 line 18.
 

I checked as per https://knowledge.broadcom.com/external/article/6823/ncm-sshbased-perl-scripts-failed-with-sp.html

Cause

The /usr/local/share/perl5 & /usr/local/lib64/perl5 directory contents were all owned by root but did not have x-r for group or users only xwr for owner.

Environment

Release : 10.4.1

Component : Spectrum Core / SpectroSERVER

OS : RHEL

Resolution

The CLI test worked as root user but the Spectrum execution service account could not read the perl libraries!

So Change the file mode bits of each given file according to mode

chmod -R ugo+rx /usr/local/share/perl5

chmod -R ugo+rx /usr/local/lib64/perl5

Additional Information

Can also refer the below KB's

https://knowledge.broadcom.com/external/article?articleId=6823

&

https://knowledge.broadcom.com/external/article?articleId=122704