Hi opnet,
Probably "Net::SSH" and "Net::SSH::Expect" are not present on landscape where device is modeled.
Follow below error caused passing an incorrect module name to the command "perl -e "use Net::SSH::Expect"
perl -e "use Net::SSH::Expec"
Can't locate Net/SSH/Expec.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib /perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/per l5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Read "Network Configuration Manager User Guide" Chapter 2: Network Configuration Manager Configurations / Perl Modules (page 62).
Perl Modules
CA Spectrum ships all Perl Modules (for the Windows/Solaris platforms) required to run the Perl scripts that are provided out-of-box. That includes:
■ Net::Telnet
In addition, CA Spectrum also comes with certain perl modules that may be useful in developing scripts for the Extension Utility. These include:
■ Net::SSH
■ Net::SSH::Expect
Network Configuration Manager Extension Utility
Chapter 2: Network Configuration Manager Configurations 63
■ Expect
■ Net::TFTP
■ Net::SCP
■ Net::FTP
Perl modules that ship with CA Spectrum can be viewed at:
/opt/SPECTRUM/lib/perl5
Important! Perl modules not compiled and installed correctly may result in failure or other undesirable behavior.