How to troubleshooting NCM perl script

book

Article ID: 211837

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to troubleshoot NCM perl script issue.

Environment

Release : 10.4

Component : SPECTRUM NETWORK CONFIGURATION MANAGER

Resolution

Add the -d:trace in the command line to enable the trace mode:

perl -d:trace upload-script.pl 192.168.1.1 upload-file.txt <username> <password> <enable_password> 40 40

Can't locate Devel/trace.pm in @INC (you may need to install the Devel::trace module) (@INC contains: /opt/SPECTRUM/lib/perl /usr/local/lib/perl5/site_perl/5.26/i686-cygwin-threads-64int /usr/local/share/perl5/site_perl/5.26 /usr/lib/perl5/vendor_perl/5.26/i686-cygwin-threads-64int /usr/share/perl5/vendor_perl/5.26 /usr/lib/perl5/5.26/i686-cygwin-threads-64int /usr/share/perl5/5.26).
BEGIN failed--compilation aborted.

The trace.pm is missing to run the perl in trace mode.

Download it from the following URL:
https://metacpan.org/pod/Devel::Trace

Extract the Trace.pm from the Devel-Trace-0.12.tar.gz file and place it in the following folder:
$SPECROOT/NT-Tools/SRE/lib/perl5/5.26/i686-cygwin-threads-64int/Devel/ (Windows)

/usr/lib64/perl5/Devel/ (Linux)