There are some devices from the Cisco IOS - SSH Capable NCM device family that are failing in the NCM capture task. Others devices which also have the same IOS version work well.
If manually run the scp against the problematic device, the operation is successful.
CA Spectrum 10.1 in Linux
Spectrum NCM relies on Mindterm libraries for SSH/SCP implementation. Now this API seems to be complex and there seems to be some inherent issues causing these failures randomly for some devices.
Turning on OpenSSH and bypass Mindterm libraries.
1) Prior to setting up Spectrum we must first configure the system perl environment. Use the cpan executable to install the Net::OpenSSH module and any of its dependencies:
Follow the steps below to install PERL modules if you are facing any problems with the steps above:
Perl Modules installation on Linux.
Open Below Link.
Enter The Net::openssh module to down load and search.
The download link will appear on the site or use below link.
Decompressing and unpacking is best done in a temporary directory somewhere, can usually be done with creating a tmp directory and copy the downloaded module and unpack to a directory in Linux terminal.
tar xzvf yourmodule.tar.gz
For a global install (for which Root privileges are needed) do the following:
Then build, test and install the module
You can check the perl modules got installed or not with the below command.
Available commands are:
l - List all installed modules
m <module> - Select a module
q - Quit the program
Installed modules are:
2) Create a new Device Family called OpenSSH
•Right click on Device Families under the Configuration Manager node in OneClick
•Select Create Device Family
3) Select the new OpenSSH family and fill in the SSH parameters for Username, Password, and Enable Password.
4) Expand the Capture Running Configuration Script sub-view, click the Set link that is next to Capture Running Script.
5) Select Create and create a new script called OpenSSH Capture Running Script and use the Import button to import the provided openssh_cap.pl script.
6) Click OK in the Create Script dialog. Then select the script in the Select Script dialog and click OK.
7) Next, add an addition parameter called Capture Timeout and set it to 300 (seconds). Set the following in the error code mappings as well:
•0 = Success
•255 = Usage Error
•254 = Invalid timeout value
•252 = Login error
•244 = Error retrieving configuration
•245 = Insufficient privileges
8) Expand the Mask Configuration sub-view and copy the masks from the Cisco IOS – SSH Capable family.
9) Move some (or all) of the devices you wish to test into the new OpenSSH device family by right clicking on the devices and selecting “Add To -> Device Family”
10) Now attempt to capture some device configurations to verify the script is working.