SNMP Libraries

Ian Bruene ianbruene at gmail.com
Sun Apr 23 21:59:52 UTC 2017


I have sifted through the selection of python SNMP libraries and
narrowed it downto three options. All options install easily through
pip, and have python 2 / 3compatibility.

The options are:

pysnmp (4.3.5)
Pure python, implements all three versions of SNMP, appears to
     contain several kitchen sinks.The Old Established Firm of the
     field.

netsnmp-py (0.3)
     Python bindings for the netsnmp library. Does *NOT* support
     SNMP v3 as of yet. From the README " Support for SET and TRAP,
     as well as SNMPv3 is planned", but the last commit was 9/19/16.

easysnmp (0.2.4) [NOT MAINTAINED, Project asking for maintainer]
     Fork of netsnmp-py, reasons given: netsnmp-py not Pythonic,
     pysnmp even less Pythonic, pysnmp slow.

It would appear that pysnmp is the best choice. Speed should not be
an issue for NTPsec's usecase, and the other two options are missing
functionality or support. In particular, pysnmp is the only option
with any clear indication that it isn't going to drop out of
existence tomorrow.

-- 
In the end; what separates a Man, from a Slave? Money? Power?
No. A Man Chooses, a Slave Obeys. -- Andrew Ryan



More information about the devel mailing list