Skip to content

ERROR: netbox_importer: Error when polling device Nx5548U-SSC: Search pattern never detected in send_command #52

@gerardocastaldo

Description

@gerardocastaldo

Hello, when i execute the netbox importer i receive an error. I think that the error is due to a check of the hostname of the devices in prompt.

Could you help me to fix the problem ?

netbox-netprod-importer import -f devices.yaml -u doperator -p -v DEBUG
....
DEBUG: netmiko: read_channel: Ethernet100/1/38 is down (Link not connected)
Hardware: 100/1000 Ethernet, address: 30e4.db74.6827 (bia 30e4.db74.6827)
MTU 1500 bytes, BW 0 Kbit, DLY 10 usec
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA
Port mode is access
auto-duplex, auto-speed
Beacon is turned off
Input flow-control is off, output flow-control is on
Switchport monitor is off
EtherType is 0x8100
Last link flapped never
Last clearing of "show interface" counters never
30 seconds input rate 0 bits/sec, 0 packets/sec
30 seconds output rate 0 bits/sec, 0 packets/sec
Load-Interval #2: 5 minute (300 seconds)
input rate 0 bps, 0 pps; output rate 0 bps, 0 pps
RX
0 unicast packets 0 multicast packets 0 broadcast packets
0 input packets 0 bytes
0 jumbo packets 0 storm suppression bytes
0 runts 0 giants 0 CRC 0 no buffer
0 input error 0 short frame 0 overrun 0 underrun 0 ignored
0 watchdog 0 bad etype drop 0 bad proto drop 0 if down drop
0 input with dribble 0 input discard
0 Rx pause
TX
0 unicast packets 0 multicast packets 0 broadcast packets
0 output packets 0 bytes
0 jumbo packets
0 output errors 0 collision 0 deferred 0 late collision
0 lost carrier 0 no carrier 0 babble 0 output discard
0 Tx pause
0 interface resets

DEBUG: netmiko: read_channel:
DEBUG: netmiko: read_channel:
DEBUG: netmiko: write_channel: b'exit\n'
ERROR: netbox_importer: Error when polling device Nx5548U-SSC: Search pattern never detected in send_command: Nx5548U-SSC#
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:14<00:00, 9.69s/it]DEBUG: paramiko.transport: EOF in transport thread
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00

(venv) devnet@ubuntu:/opt/netbox$ python --version
Python 3.8.5

(venv) devnet@ubuntu:/opt/netbox$ pip freeze
appdirs==1.4.4
asgiref==3.3.1
attrs==20.3.0
bcrypt==3.2.0
cachetools==4.2.0
certifi==2020.12.5
cffi==1.14.4
chardet==4.0.0
ciscoconfparse==1.5.22
click==7.1.2
colorama==0.4.4
coreapi==2.3.3
coreschema==0.0.4
cryptography==3.3.1
defusedxml==0.6.0
Django==3.1.3
django-cacheops==5.1
django-cors-headers==3.5.0
django-debug-toolbar==3.1.1
django-filter==2.4.0
django-js-asset==1.2.2
django-mptt==0.11.0
django-pglocks==1.0.4
django-prometheus==2.1.0
django-rq==2.4.0
django-storages==1.11
django-tables2==2.3.3
django-taggit==1.3.0
django-timezone-field==4.0
djangorestframework==3.12.2
dnspython==2.0.0
drf-yasg==1.20.0
funcy==1.15
future==0.18.2
gunicorn==20.0.4
idna==2.10
inflection==0.5.1
itypes==1.2.0
Jinja2==2.11.2
jsonschema==3.2.0
junos-eznc==2.5.4
lxml==4.6.2
Markdown==3.3.3
MarkupSafe==1.1.1
napalm==3.2.0
ncclient==0.6.9
netaddr==0.8.0
netbox-netprod-importer==0.3.3
netboxapi==1.1.7
netmiko==3.3.2
ntc-templates==1.6.0
packaging==20.8
paramiko==2.7.2
passlib==1.7.4
Pillow==8.0.1
prometheus-client==0.9.0
psycopg2-binary==2.8.6
pycparser==2.20
pycryptodome==3.9.9
pyeapi==0.8.4
PyNaCl==1.4.0
pyparsing==2.4.7
pyrsistent==0.17.3
pyserial==3.5
pytz==2020.4
PyYAML==5.3.1
redis==3.5.3
requests==2.25.1
rq==1.7.0
ruamel.yaml==0.16.12
ruamel.yaml.clib==0.2.2
scp==0.13.3
simplejson==3.17.2
six==1.15.0
sqlparse==0.4.1
svgwrite==1.4
swagger-spec-validator==2.7.3
tenacity==6.3.1
textfsm==1.1.0
tqdm==4.54.1
transitions==0.8.5
uritemplate==3.0.1
urllib3==1.26.2
yamlordereddictloader==0.4.0

(venv) devnet@ubuntu:/opt/netbox$ more devices.yaml
Nx5548U-SSC:
driver: "nxos_ssh"
target: "10.44.141.2"

Nx5548U-FXP:
driver: "nxos_ssh"
target: "10.44.141.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions