| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
Added missing SNMP PDU error classes and their handling in
Command Responder
|
| |
|
|
|
|
|
| |
Trying to understand why sendmsg() fails on a transparent
IPv6 socket
|
| |
|
| |
|
|
|
|
| |
SO says this is required for proper UDP socket multi-homing.
|
|
|
|
|
| |
When running in transparent proxy mode, log syscall parameters
to aid troubleshooting
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also fixed crash on MIB load failure in case of directory
access error
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The primary motivation behind this redesign is to allow asynchronous
operations between SNMP responder and the data source feeding its
MIB.
This is achieved by redesigning all `read*`, `write*`, `create*` and
`destroy*` methods of the `SNMPv2-SMI` MIB objects to return
immediately and deliver their results via a call back.
This modification brings significant and backward incompatible
changes to the low-level MIB operations.
The pysnmp MIB modules compiled for older pysnmp remain compatible.
|
|
|
|
|
| |
The hlapi/v1arch GETNEXT command crashes when hitting end-of-mib
condition. This patch fixes this.
|
|
|
|
| |
The retrying mechanism never worked, apparently.
|
| |
|
|
|
|
|
| |
Also, updated thr `.update` and `__init__` methods signatures to
match `dict` interface. Implementation details renewed.
|
|
|
|
| |
Because it stopped working.
|
|
|
|
| |
Seems like they discontinued those.
|
|
|
|
|
|
|
|
|
| |
Fixed hlapi LCD configurator to include `contextName`.
Prior to this fix sending SNMPv3 TRAP with non-default
`contextName` would fail.
This change modifies the signature of the internal
LCD methods.
|
| |
|
|
|
|
|
|
| |
This change attaches the file name to the stack frames
what is helpful when reading traceback or debugging
interactively.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Convert to async MIB instrumentation API (#210)
MIB instrumentation API changed to allow for asynchronous
managed objects access. The MIB instrumentation methods
called by the state machine now return immediately and
resume once the callback is called.
The built-in SNMPv2-SMI objects are still synchronous.
This change is a prerequisite for fully asynchronous managed objects
implementation.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MIB instrumentation API changed to allow for asynchronous
managed objects access. Although built-in SNMPv2-SMI objects
are still synchronous, the MIB instrumentation API is async
what allows users to replace default MIB instrumentation
with their own, potentially asynchronous.
CommandResponder refactored to facilitate asynchronous
MIB instrumentation routines. The `readVars`, `readNextVars`
and `writeVars` MIB controller methods return immediately and
deliver their results via a call back.
SMI/MIB managed objects API overhauled for simplicity and
flexibility breaking backward compatibility.
|
| |
|
| |
|
|
|
|
| |
This is actually needed for Python 3.7 which introduces async and await
as reserved keywords, see https://docs.python.org/3/whatsnew/3.7.html
|
|
|
|
|
| |
Fix hlapi/v3arch transport target caching to ensure transport targets
are different even if just timeout/retries options differ.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
It can happen that SNMP community table contains uninitialized entries.
These entries may stop internal SNMP community table indexing which
is done in rfc2576 to speed up SNMP engine operations when SNMPv1/v2c
is involved. Once a bad entry gets into SNMP community table, all
the rest queries would start failing.
This patch ignores incomplete SNMP community table entries in the
course of building indices.
|
|
|
|
|
|
| |
Possible duplicate enumerations in `Bits` and `Integer` SMI types
causes pyasn1 exception. This fix reduces duplicates prior to
passing them to pyasn1.
|
| |
|
|
|
|
| |
target being re-configured (#194)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add `hlapi.v1arch` API
Introduce new sub-package `pysnmp.hlapi.v1arch` which
wraps otherwise very detailed packet-level SNMP
messaging into a handful of convenience functions.
As a side effect, the `pysnmp.hlapi.*` sub-packages
moved under `pysnmp.hlapi.v3arch` though `pysnmp.hlapi`
still exposes `pysnmp.hlappi.v3arch.*` symbols to
retain some degree of backward compatibility.
The signature of the hlapi `.sendNotification()` call
has changed to accept `*varBinds` instead of a sequence
of `varBinds`. The rationale is to unify this method
call with similar methods of CommandGenerator.
* Add v1arch docs and reshuffle hlapi docs
|
| |
|
| |
|