scaleway / netbox-netprod-importer

Poll data from network devices in production and import it into netbox
GNU General Public License v3.0
101 stars 31 forks source link

Importer Fails #40

Closed fireman0865 closed 4 years ago

fireman0865 commented 4 years ago

Hi dear ,I am trying to run the importer but get this

How Can I solve it

Capture ?

aruhier commented 4 years ago

Hi, Can you give me the model of your switch please?

fireman0865 commented 4 years ago

Hi it is WS-C2960-48FPS-L CISCO SWITCH IMAGE=C2960X-UNIVERSALK9-M SW VERSION: 15.2

On Mon, Apr 27, 2020 at 12:33 PM Anthony Ruhier notifications@github.com wrote:

Hi, Can you give me the model of your switch please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scaleway/netbox-netprod-importer/issues/40#issuecomment-619957140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4AEIOAF5KLZCARW5AYMHDROV3QLANCNFSM4MR4CTFQ .

aruhier commented 4 years ago

I think we also had some issues with napalm and some catalyst 2960 at Scaleway. I'm not working there anymore, but maybe someone from @scaleway can confirm and look if I wrote an internal workaround from napalm.

@fireman0865: To confirm that it's an issue with the napalm driver, can you run this in python 3 please?

# REPLACE THESE 3 VARIABLES TO CONNECT TO YOUR SWITCH
ip = "10.0.0.1"
user = "username"
passwd = "password"

import napalm

driver = napalm.get_network_driver("ios")
device = driver(hostname=ip, username=user, password=passwd)
with device:
    pass

Edit: added the import for napalm

fireman0865 commented 4 years ago

Yeah there was some problems with napalm but ii't is not napalm really but a problem with netmiko .i have regulated it and now all is ok With netmiko .i think the problem maybe come from our proxy which block it . Cordially

Le mer. 29 avr. 2020 à 16:30, Anthony Ruhier notifications@github.com a écrit :

I think we also had some issues with napalm and some catalyst 2960 at Scaleway. I'm not working there anymore, but maybe someone from @scaleway https://github.com/scaleway can confirm and look if I wrote an internal workaround from napalm.

@fireman0865 https://github.com/fireman0865: To confirm that it's an issue with the napalm driver, can you run this in python 3 please?

REPLACE THESE 3 VARIABLES TO CONNECT TO YOUR SWITCH

ip = "10.0.0.1" user = "username" passwd = "password"

driver = napalm.get_network_driver("ios") device = driver(hostname=ip, username=user, password=passwd) with device: pass

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scaleway/netbox-netprod-importer/issues/40#issuecomment-621322724, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4AEIJ3BGMZE4FZQE2K7TTRPBI3LANCNFSM4MR4CTFQ .

aruhier commented 4 years ago

Ok, I'm closing this issue then.

Feel free to give some news if it confirms it was your proxy. I don't think it is, though, but more probably the parsing of the 2960's shell.