pysnmp.sourceforge.net
HOME QUICK START DOCUMENTATION EXAMPLES DOWNLOAD
DEVELOPMENT | CONTACT |

High-level SNMP

Command Generator
Notification Originator

SNMP with Asyncore

Command Generator
Command Responder
Notification Originator
Notification Receiver
Command Forwarder

SNMP with Asyncio

Command Generator
Command Responder
Notification Originator
Notification Receiver

SNMP with Trollius

Command Generator
Notification Originator

SNMP with Twisted

Command Generator
Command Responder
Notification Originator
Notification Receiver

Packet-level SNMP

Command Generator
Command Responder
Notification Originator
Notification Receiver

WARNING: you are reading historical documentation! Please, refer here.

SNMP with Asyncio

Python 3.4 introduced a new module - asyncio (former Tulip, PEP 3156) featuring infrastructure for writing single-threaded concurrent code using coroutines, multiplexing I/O access over sockets and other resources.

PySNMP library was originally built on top of Python's asynchronous I/O library called asyncore. The asyncio module offers similar functionality but uses much more modern and powerful language facilities. Functionally, asyncio can replace asyncore in PySNMP however its use requires understanding the concepts such as coroutines and generators. If your task is to embed SNMP stack into an existing asyncio-based app, using PySNMP's asyncio interfaces greatly simplifies the task.

Older applications (Python 2.6+) can alternatively use Trollius instead of asyncio. Trollius is a backport of asyncio so it supports nearly the same API as asyncio. Full support of both modules is built into pysnmp.

All SNMP-related functionality of Native PySNMP API to Standard SNMP Applications remains available to asyncio-backed applications.

SNMP Command Generator Applications:

SNMP Command Responder Applications:

SNMP Notification Originator Applications:

SNMP Notification Receiver Application:

For more details on PySNMP programming model and interfaces, please refer to the documentation.


Need help? Try PySNMP mailing lists or report to library maintainers.
SourceForge Logo