Skip to content

ValueError: invalid literal for int() with base 16 #7

Description

@konradb90

snmpwalk -v2c -c public -ObentU 192.168.1.6 .1 > switch1-local.snmpwalk
and error occured after:
snmposter -f /etc/snmposter/agents.csv

Traceback (most recent call last):
  File "/snmposter/bin/snmposter", line 11, in <module>
    sys.exit(launcher())
  File "/snmposter/local/lib/python2.7/site-packages/snmposter/scripts.py", line 35, in launcher
    factory.start()
  File "/snmposter/local/lib/python2.7/site-packages/snmposter/snmposter.py", line 80, in start
    faker = SNMPoster(a['ip'], a['filename'])
  File "/snmposter/local/lib/python2.7/site-packages/snmposter/snmposter.py", line 109, in __init__
    self.add_oid_value(oid, type_, value)
  File "/snmposter/local/lib/python2.7/site-packages/snmposter/snmposter.py", line 148, in add_oid_value
    [chr(int(c, 16)) for c in ' '.join(value).split(' ')])
ValueError: invalid literal for int() with base 16: '.1.0.8802.1.1.2.1.2.1.0'

Metadata

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