Open Mark32 opened 4 years ago
Hi,
netbox-netprod-importer 0.2.0.2
I'm getting the following when adding a device. It connects to device okay and various output can be seen. I then get the following.
Any suggestions please?
DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.1:80 DEBUG: urllib3.connectionpool: http://192.168.1.1 "GET /dcim/devices/?name=LAB-001&limit=50 HTTP/1.1" 302 0 DEBUG: urllib3.connectionpool: http://192.168.1.1:80 "GET /login/?next=/dcim/devices/%3Fname%3DLAB-001%26limit%3D50 HTTP/1.1" 200 None DEBUG: netmiko: write_channel: b'\n' DEBUG: netmiko: Pattern is: # DEBUG: netmiko: _read_channel_expect read_data:
DEBUG: netmiko: _read_channel_expect read_data: LAB-001# DEBUG: netmiko: Pattern found: # LAB-001# DEBUG: netmiko: exit_config_mode: DEBUG: netmiko: write_channel: b'exit\n' ERROR: netbox_importer: Error when polling device LAB-001: Expecting value: line 3 column 1 (char 2)
Thanks, Mark
Have you added this device to netbox in advance?
Rather, you just did not configure authorization in netbox: https://netboxnetimporter.readthedocs.io/en/latest/quickstart.html#configuration
Hi,
netbox-netprod-importer 0.2.0.2
I'm getting the following when adding a device. It connects to device okay and various output can be seen. I then get the following.
Any suggestions please?
DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.1:80 DEBUG: urllib3.connectionpool: http://192.168.1.1 "GET /dcim/devices/?name=LAB-001&limit=50 HTTP/1.1" 302 0 DEBUG: urllib3.connectionpool: http://192.168.1.1:80 "GET /login/?next=/dcim/devices/%3Fname%3DLAB-001%26limit%3D50 HTTP/1.1" 200 None DEBUG: netmiko: write_channel: b'\n' DEBUG: netmiko: Pattern is: # DEBUG: netmiko: _read_channel_expect read_data:
DEBUG: netmiko: _read_channel_expect read_data: LAB-001# DEBUG: netmiko: Pattern found: # LAB-001# DEBUG: netmiko: exit_config_mode: DEBUG: netmiko: write_channel: b'exit\n' ERROR: netbox_importer: Error when polling device LAB-001: Expecting value: line 3 column 1 (char 2)
Thanks, Mark