SNMP module in python

Keith Dart kdart at kdart.com
Wed Jul 31 06:57:52 EDT 2002


In article <roy-0451CA.08125515072002 at reader3.panix.com>, "Roy Smith"
<roy at panix.com> penned these words:

> pixie888 at hotmail.com wrote:
>> I am looking for a module written in Python to perform SNMP
>> communication. Can anyone tell me where I can find one?
> 
> I've been using PySNMP, http://sourceforge.net/projects/pysnmp, which is
> written entirely in Python.  Because it's 100% Python (all the way down
> to the messy BER stuff), it's very portable.  On the other hand, I
> suspect performance is poor.  I havn't pushed the corners of the
> envelope much, but so far it seems to work for basic stuff.
> 
> The other alternative is yapsnmp, http://yapsnmp.sourceforge.net, which
> is a SWIG wrapper around the net-snmp (nee ucd-snmp) package.  In
> theory, I like yapsnmp's approach better, but as a practical matter,
> getting it to compile and run has been problematical; I don't have
> exactly the same version of net-snmp installed as the author and ran
> into compile problems with mis-matched headers.



There is also extensive SNMP support in the pyNMS package. 

http://pynms.sourceforge.net/

There is an SNMP package in that collection of stuff. It used "compiled"
MIBs (MIBs converted to Python source code) that allows for easy
scripting. Or you can just use OID objects. 

This started out as an extension to the pysnmp package, but ended up
being an almost total re-write. Many bugs in the ber module were also
fixed. 

It was designed to be easy to use, and flexible. 

I like the programmer's interface (API) to this package much better than
the others. But that stands to reason since I wrote it. ;-) Please tell me
what you think if you use it. 


There is also XML and XHTML support in that package, among other things. 


 
--                           ^
                           \/ \/
                           (O O)
-- --------------------oOOo~(_)~oOOo----------------------------------------
Keith Dart
<mailto:kdart at kdart.com> 
<http://www.kdart.com/>  
----------------------------------------------------------------------------
Public key ID: B08B9D2C Public key: <http://www.kdart.com/~kdart/public.key>
============================================================================



More information about the Python-list mailing list