netcrawl icon indicating copy to clipboard operation
netcrawl copied to clipboard

Netmiko establishes SSH connection but no data extraction

Open Tarik-H opened this issue 6 years ago • 1 comments

Hello, I'm using python 3.6 with inside a virtualenv and I can't get information to display whatever the platform (cisco_nxos, cisco_ios or cisco_xe).

python run.py -sS -t 172.28.46.253 -p cisco_nxos main.main : #3 Start new run main.main : #3 ##### Starting Single Run ##### main.single_run : #3 Processing connection to 172.28.46.253 base_device.process_devices : #4 Processing device cli.connect : ? SSH auth error to 172.28.46.253 using admin, In cli.connect : ? SSH auth error to 172.28.46.253 using admin, In cli.connect : #4 Successful ssh auth to 172.28.46.253 using administrator, In base_device.process_devices : ? _enable - Error: 'CiscoNxosSSH' object has no attribute 'ip' main.single_run : ? Connection to 172.28.46.253 failed: 'CiscoNxosSSH' object has no attribute 'ip' Device processing failed main.main : #3 ##### Single Run Complete #####

Could you please help to point what is wrong?

Tarik-H avatar Sep 19 '19 19:09 Tarik-H

I suspect that a new version of Netmiko broke some functionality here. I included the device dispatcher code from an old version of Kirk's project, and it can probably be replaced by an up to date version (or removed entirely with a more elegant solution).

This project is not currently actively maintained, but feel free to submit a pull request with a fix and I will update it.

Wyko avatar Oct 21 '19 00:10 Wyko