summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Add SNMP agent with multiple SNMP context example scriptIlya Etingof2019-11-121-0/+76
|
* Add examples on master&localized keys useIlya Etingof2019-08-132-0/+104
|
* Fix malformed OBJECT-TYPE MAX-ACCESS constantsIlya Etingof2019-08-051-6/+6
|
* Release 4.4.10Ilya Etingof2019-07-301-1/+1
|
* Rework VACM access control function (#287)Ilya Etingof2019-07-291-0/+117
| | | | | | | | | Most important changes include: * Added subtree match negation support (vacmViewTreeFamilyType) * Added subtree family mask support (vacmViewTreeFamilyMask) * Added prefix content name matching support (vacmAccessContextMatch) * Added key VACM tables caching for better lookup performance
* Fix SNMP version in Twisted example (#246)Jorge Cabrera2019-03-051-1/+1
|
* PEP-8 long lines and dunders (#245)Ilya Etingof2019-02-266-0/+6
| | | | This patch massively reformats the whole codebase mainly wrapping long lines and eliminating dundered private attributes.
* Fix some ntforg example scripts not using trapOIDIlya Etingof2019-02-252-2/+2
|
* Fix failing example scriptsIlya Etingof2019-02-255-7/+9
|
* Fix PDU consistency check in notification originatorIlya Etingof2019-02-251-1/+1
|
* Introduce asyncio binding to hlapi.v1arch (#244)Ilya Etingof2019-02-226-0/+357
| | | | | 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.
* Fix asyncio v3arch notification exampleIlya Etingof2019-02-181-16/+6
|
* Reformat example scripts for easier reading (#241)Ilya Etingof2019-02-12157-823/+1371
|
* Uppercase global constants (#238)Ilya Etingof2019-02-1071-220/+220
| | | | | | | | | 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.
* Drop Python < 2.6 kwargs expansion compatibility trickIlya Etingof2019-02-096-6/+6
|
* Redesigned SMI objects management model (#214)Ilya Etingof2018-12-295-40/+110
| | | | | | | | | | | | | | 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.
* Refactor MIB state machine into asynchronous operations (#210)Ilya Etingof2018-10-245-5/+5
| | | | | | | | | | | | | | 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.
* Convert to async MIB instrumentation API (#209)Ilya Etingof2018-10-133-21/+49
| | | | | | | | | | | | | | | | 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.
* Simplify SNMPv3 TRAP receiver exampleIlya Etingof2018-09-021-22/+3
|
* Add `hlapi.v1arch` API (#186)Ilya Etingof2018-08-1297-44/+1542
| | | | | | | | | | | | | | | | | | | | * 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
* Remove `pysnmp.carrier.asynsock` sub-package (#166)Ilya Etingof2018-07-081-3/+3
| | | | Legacy `pysnmp.carrier.asynsock` backward-compatible wrapper over `pysnmp.carrier.asyncore` is gone
* Fix BULKWALK examplesIlya Etingof2018-07-082-0/+6
| | | | Avoid sending out extra GETBULK on EOM condition
* Fix typosIlya Etingof2018-07-031-2/+2
|
* Overhaul SMI/MIB instrumentation API (#161)Ilya Etingof2018-06-304-14/+18
| | | | | | | | | | | Overhaul SMI/MIB instrumentation API SMI/MIB managed objects API overhauled for simplicity and flexibility breaking backward compatibility. This change would allow way more control over custom MIB managed objects and also is the prerequisite for asynchronous MIB instrumentation.
* many backward-compatibility aids droppedIlya Etingof2018-02-254-33/+4
|
* skip printing out non-initialized MIB objects in example MIB walkIlya Etingof2017-12-031-3/+3
|
* encode IPv6 requirement into example scripts names (#102)Ilya Etingof2017-11-0611-4/+4
|
* make sure to pass an initializer to ASN.1 Null()Ilya Etingof2017-10-181-1/+1
| | | | This is a prerequisite for pyasn1 0.4.x
* Sphinx theme changed to Alabaster, minor documentation tweaksIlya Etingof2017-10-062-127/+0
|
* NotificationReceiver reports SNMPv1 TRAP community stringIlya Etingof2017-10-051-1/+0
|
* fail gracefully when sha2 suite is not availableIlya Etingof2017-08-032-0/+127
|
* added SHA2 auth protocol into the list of available onesIlya Etingof2017-08-031-0/+4
|
* minor pep8 improvementsIlya Etingof2017-05-273-6/+10
|
* More twisted examples (#47)Ilya Etingof2017-03-181-0/+44
| | | | * twisted inline callback example
* fix to v1arch example to accommodate pyasn1 changeIlya Etingof2017-02-091-2/+2
|
* Fixed some typos in arguments with previous commitGerrat Rickert2016-12-211-1/+1
|
* Removed tuple unpacking in function signatures in twisted since removed in ↵Gerrat Rickert2016-12-218-8/+24
| | | | Python 3
* updated IP address for demo.snmplabs.com in examplesIlya Etingof2016-07-3039-112/+112
|
* converted to new-style classesIlya Etingof2016-06-122-3/+3
|
* include SMI examplesIlya Etingof2016-05-112-4/+4
|
* better examples on MIB compilerIlya Etingof2016-05-112-3/+43
|
* fixes to end-of-docstring sentinelIlya Etingof2016-04-082-2/+2
|
* pep8 reformattedIlya Etingof2016-04-051-2/+2
|
* pep8 reformattedIlya Etingof2016-04-0159-337/+342
|
* pep8 reformattedIlya Etingof2016-04-0111-116/+137
|
* brief description addedIlya Etingof2016-04-014-7/+38
|
* pep8 fixesIlya Etingof2016-03-319-68/+75
|
* pep8 fixesIlya Etingof2016-03-307-37/+44
|
* pep8 fixesIlya Etingof2016-03-3013-201/+143
|
* pep8 fixesIlya Etingof2016-03-3090-457/+460
|