Questions tagged [easysnmp]

19 questions
0
votes
1 answer

SNMP reading from an OID with three libraries gives different execution times

I already used easysnmp to read SNMP OIDs, but I chose pysnmp library now because easysnmp did not support asyncio archtecture in Python3. The considered issue is that,pysnmp is too slower than other libraries: pysnmp: from pysnmp.hlapi import…
Benyamin Jafari
  • 27,880
  • 26
  • 135
  • 150
0
votes
1 answer

catching exceptions with python easysnmp

I cannot seem to find documentation or examples of how to catch exceptions with Python's easySNMP library https://easysnmp.readthedocs.io/en/latest/exceptions.html shows what exceptions are rasied but I get errors when trying to catch…
doghousedean
  • 74
  • 12
0
votes
2 answers

Python3 centos/amazon AMI - installing net-snmp / easysnmp - gcc errors

I'm getting the below error when installing via pip3 using python and the AWS AMI image (which is loosely based on REHL/Centos) this looks like dependencies to me, but I've searched to the ends of Google and I look to have installed everything…
AlexW
  • 2,843
  • 12
  • 74
  • 156
-1
votes
1 answer

modify the part of the OID returned in "oid" and "oid_index" by Python easysnmp module

Python easysnmp module returns the SNMP OID in two parts: oid and oid_index. For example, if I walk the ipAddressIfIndex.ipv4(.1.3.6.1.2.1.4.34.1.3.1 in numerical form) OID: >>> from easysnmp import Session >>> session = Session(hostname="r1",…
Martin
  • 957
  • 7
  • 25
  • 38
1
2