Commit Graph

36 Commits (master)

Author SHA1 Message Date
Ilya Etingof 534a5bb810
Convert to async MIB instrumentation API (#209)
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.
2018-10-13 20:21:31 +02:00
Ilya Etingof 7f65dde49a Fix typos 2018-07-03 08:05:23 +02:00
Ilya Etingof da4539e34c
Overhaul SMI/MIB instrumentation API (#161)
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.
2018-06-30 20:14:57 +02:00
Ilya Etingof 114e90414d skip printing out non-initialized MIB objects in example MIB walk 2017-12-03 20:21:05 +01:00
Ilya Etingof 93bdedf1fd include SMI examples 2016-05-11 22:40:21 +02:00
Ilya Etingof f96e5db5fb better examples on MIB compiler 2016-05-11 12:50:44 +02:00
Ilya Etingof 9541f201e3 pep8 reformatted 2016-04-01 01:08:28 +02:00
Ilya Etingof 18f39e2228 brief description added 2016-04-01 01:02:36 +02:00
Ilya Etingof 002bb632e8 pep8 fixes 2016-03-31 00:04:43 +02:00
Ilya Etingof 8e655f46e3 pep8 fixes 2016-03-30 23:29:55 +02:00
elie acbac40624 * default /usr/share/mibs MIB source added
* compiler.addMibCompiler() now supports ifAvailable and ifNotAdded flags
* rfc1902.ObjectIdentity() now always tries to instantiate and attach
  MIB compiler to snmpEngine (if not done yet), also .addMibCompiler()
  renamed to .addAsn1MibSource() to signify the fact that MIB compiler
  is attached behind the scene
2015-07-04 16:30:27 +00:00
elie bc06477784 ObjectIdentity class additionally supports just a MIB module name
initializer in which case if resolves into either first or last symbol
in given MIB. Another new option is just a MIB symbol initializer without
specifying MIB module.
2015-06-21 13:24:35 +00:00
elie f64b96d0bd use @mib@ placeholder instead of <mib> at pysmi 2015-06-04 06:11:25 +00:00
elie c5086ca767 missing example added 2015-05-31 19:37:32 +00:00
elie 087522e567 - Initial PySMI integration. Original ASN.1 MIBs could now be parsed, stored
at a local pysnmp MIBs repository and loaded into SNMP Engine.
- smi.MibBuilder will now raise more specific exceptions (MibLoadError,
  MibNotFoundError) on MIB loading problems rather than more generic
  SmiError.
- MibBuilder.addMibSources() convenience method added.
2015-05-17 21:01:43 +00:00
elie 61043b0d55 MIB instrumentation example improved to cover table index building facility 2014-01-24 12:33:42 +00:00
elie f0406dd01c major overhawl aimed at Python 2.4 through 3.2 compatibility 2011-11-06 20:37:09 +00:00
elie e661d69e48 getMibSource()/setMibSource() example added 2011-01-17 12:53:29 +00:00
elie c24fa8bc57 prettyPrint() values 2010-07-07 16:00:20 +00:00
elie d7068da9f4 do not explicitly initialize index value as it's now being done automatically 2007-03-25 20:43:27 +00:00
elie 4ff3e80d3c modNames for unloadModules() is optional 2007-02-06 07:29:10 +00:00
elie 9bd2b50571 make use of mibBuilder.unloadModules() 2007-02-05 18:50:52 +00:00
elie 35895c6671 initialize normally non-accessible table column instance to make this
example workable
2006-12-15 23:24:15 +00:00
elie b3b2364230 snmpCommunityStorageType not initialized in MIB for some reason 2006-05-25 20:52:43 +00:00
elie 231e66b6f7 hide readGet() args 2006-05-21 11:30:17 +00:00
elie 40efc8f4e1 moved from instrum.py 2005-10-26 22:29:46 +00:00
elie d3056c651a re-written to demonstrate custom Managed Objects handling 2005-10-26 22:29:11 +00:00
elie 72cca4777c NoSuchInstanceError -> NoSuchObjectError 2005-10-26 21:14:36 +00:00
elie 40a63494e7 * mibView.getNodeLocation() returns suffix
* reduce exception set
2005-07-25 15:02:38 +00:00
elie 5f8c584c62 MibNode.syntax now invokes output filter by itself 2005-06-14 08:45:54 +00:00
elie a8db167d24 adjusted to SMIv2 exception model 2005-06-14 08:44:44 +00:00
elie f63ba29efa comments 2004-11-18 09:44:20 +00:00
elie 0954973cd1 bugfux: newer release of versioning API does not require setApiVersion()
to be called
2004-11-18 09:04:18 +00:00
elie 14e2dd120c must specify API version 2004-11-12 16:36:46 +00:00
elie 001b3baf4e MibInstrumentationController -> MibInstrumController 2004-11-07 09:12:48 +00:00
elie d12f48ecb8 initial revision 2004-11-05 19:29:39 +00:00