MJL85 / natlas

natlas - Network Discovery and Auto-Diagramming
GNU General Public License v2.0
511 stars 110 forks source link

ValueError: invalid literal for int() with base 0: '10.10.10.10' #63

Open aslater3 opened 3 years ago

aslater3 commented 3 years ago

Had an issue where this was crashing 3/4 way through a scan.

It looks like the Cisco WAAS returns a string for the IP OID rather than a hex value?

Saw a similar issue from 2015 and managed to fix it my adding the following to util.py: def convert_ip_int_str(iip): if ((iip != None) & (iip != '') & (iip.startswith("0x"))):

Seems to fix it?

Edit: Awesome project by the way, saves so much time! Combined the catalogue output with a script I wrote that iterates through that CSV and calls the bash script here https://packetpushers.net/bash-script-to-gather-all-your-cisco-serial-numbers-via-snmp/ for a full inventory list and map!

aslater3 commented 3 years ago

5

Arapacana commented 3 years ago

Was getting a similar issue, and adding aslater3's code above resolved the issue -- THANKS! This was my specific error: ValueError: invalid literal for int() with base 0: "b''"