Error when performing Scan
Thanks for creating this script. I see a lot of uses where this will be extremely helpful finding devices. I'm working on modifying the script to add an array of snmp community strings that can be imported via a text file. Outside of making any changes, I'm running into a problem with the following:
./cdpwalker.py test.txt 10.11.30.254
2016-08-17 19:13:07,516 - cdpwalker - INFO - processing host: 10.11.30.254
Traceback (most recent call last):
File "./cdpwalker.py", line 205, in
Any insight is much appreciated. Thanks!
I'm also getting this error:
./cdpwalker.py test.txt 10.9.2.1
2016-08-17 19:09:42,536 - cdpwalker - INFO - processing host: 10.9.2.1
2016-08-17 19:09:43,423 - cdpwalker - INFO - host 10.9.2.1 done
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,423 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - new host to query
2016-08-17 19:09:43,424 - cdpwalker - INFO - processing host:
Traceback (most recent call last):
File "./cdpwalker.py", line 205, in
It seems like one of the devices returned data from its CDP table the script can't handle. To investigate this issue further, you would have to add a "print (host)" statement before the call to get_cdp_neighbors. This should help to identify the device which made the script fail.
I haven't used the tool in years myself :-) It definitely needs a complete rewrite someday. But I'm not sure when this is going to happen :D