Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aslater3 opened this issue Oct 7, 2020 · 2 comments
Open

Comments

@aslater3
Copy link

aslater3 commented Oct 7, 2020

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
Copy link
Author

aslater3 commented Oct 7, 2020

#5

@Arapacana
Copy link

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''"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants