| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Also, consistency ensuring code unified with v3arch piece what
has the side effect of *requiring* snmpTrapOID to be always
present anywhere among user-supplied variable-bindings.
|
| |
|
| |
|
|
|
|
|
| |
The hlapi.v1arch asyncio API is intended to be very similar to
hlapi.v3arch.asyncio from its signature viewpoint, however it
should be faster at the expense of no SNMPv3 support.
|
| |
|
| |
|
|
|
|
|
|
| |
Add the missing defaults (pyasn1 fault), add non-existing
'vacmContextStatus' MIB object which is required for table
management.
|
|
|
|
|
| |
The base Pythonized MIBs being shipped with pysnmp have been rebuilt
with the latest pysmi mainly for the purpose of making them
PEP-8 compliant.
|
|
|
|
| |
To make them PEP8-compliant
|
| |
|
| |
|
|
|
|
| |
Specifically, set literals not yet supported.
|
|
|
|
| |
Drop everything related to the legacy "oneliner" and
"mibvar" APIs.
|
|
|
|
| |
Perhaps previous commits have already broken older Python
support. This commit mostly declares Python 2.6+ support.
|
|
|
|
|
| |
This is a follow up to 588b9b902d191d8010cb6b247fcb07887d59542c
fixing a couple of improperly named constants.
|
|
|
|
|
|
|
|
|
| |
This is a massive patch essentially upper-casing global/class attributes
that mean to be constants.
Some previously exposed constants have been preserved for compatibility
reasons (notably, in `hlapi`), though the rest might break user code relying
on pysnmp 4.
|
|
|
|
| |
Due to a bug in the 'Add missing SNMP PDU error classes' change.
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|