Skip to content

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

Open
@aslater3

Description

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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions