diff options
Diffstat (limited to 'docs/source/examples/hlapi/twisted')
7 files changed, 0 insertions, 217 deletions
diff --git a/docs/source/examples/hlapi/twisted/agent/ntforg/advanced-topics.rst b/docs/source/examples/hlapi/twisted/agent/ntforg/advanced-topics.rst deleted file mode 100644 index 8be4effa..00000000 --- a/docs/source/examples/hlapi/twisted/agent/ntforg/advanced-topics.rst +++ /dev/null @@ -1,17 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Advanced Notification Originator --------------------------------- - -.. include:: /../../examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/agent/ntforg/multiple-notifications-at-once.py>` script. - -See also: :doc:`library reference </docs/api-reference>`. diff --git a/docs/source/examples/hlapi/twisted/agent/ntforg/common-notifications.rst b/docs/source/examples/hlapi/twisted/agent/ntforg/common-notifications.rst deleted file mode 100644 index 61d8b3f5..00000000 --- a/docs/source/examples/hlapi/twisted/agent/ntforg/common-notifications.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Common notifications --------------------- - -.. include:: /../../examples/hlapi/twisted/agent/ntforg/default-v1-trap.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/agent/ntforg/default-v1-trap.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/agent/ntforg/default-v1-trap.py>` script. - -.. include:: /../../examples/hlapi/twisted/agent/ntforg/v2c-trap-inline-callbacks.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/agent/ntforg/v2c-trap-inline-callbacks.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/agent/ntforg/v2c-trap-inline-callbacks.py>` script. - -See also: :doc:`library reference </docs/api-reference>`. diff --git a/docs/source/examples/hlapi/twisted/contents.rst b/docs/source/examples/hlapi/twisted/contents.rst deleted file mode 100644 index 1b06d576..00000000 --- a/docs/source/examples/hlapi/twisted/contents.rst +++ /dev/null @@ -1,71 +0,0 @@ - -Asynchronous: Twisted -===================== - -`Twisted <http://twistedmatrix.com>`_ is quite old and widly used -I/O framework. With Twisted, your code will mostly live in isolated -functions, but unlike as it is with callback-based design, with Twisted -work-in-progress is represented by a -:class:`~twisted.internet.defer.Deferred` class instance effectively -carrying state and context of running operation. Your callback functions -will be attached to these *Deferred* objects and invoked as *Deferred* -is done. - -Based on *Twisted* infrastructure, individual asynchronous functions -could be chained to run sequentially or in parallel. - -In most examples approximate analogues of well known Net-SNMP snmp* tools -command line options are shown. That may help those readers who, by chance -are familiar with Net-SNMP tools, better understanding what example code doe - -Here's a quick example on a simple SNMP GET by high-level API: - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/v1-get.py - :start-after: options: - :end-before: Functionally - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/v1-get.py - :start-after: """# - :language: python - -To make use of SNMPv3 and USM, the following code performs a series of -SNMP GETNEXT operations effectively fetching a table of SNMP variables -from SNMP Agent: - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: options: - :end-before: Functionally - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: """# - :language: python - -More examples on Command Generator API usage follow. - -.. toctree:: - - /examples/hlapi/twisted/manager/cmdgen/snmp-versions - /examples/hlapi/twisted/manager/cmdgen/walking-operations - /examples/hlapi/twisted/manager/cmdgen/transport-tweaks - /examples/hlapi/twisted/manager/cmdgen/advanced-topics - -Sending SNMP TRAP's and INFORM's is as easy with PySNMP library. -The following code sends SNMP TRAP: - -.. include:: /../../examples/hlapi/twisted/agent/ntforg/default-v1-trap.py - :start-after: options: - :end-before: Functionally - -.. literalinclude:: /../../examples/hlapi/twisted/agent/ntforg/default-v1-trap.py - :start-after: """# - :language: python - -More examples on Notification Originator API usage follow. - -.. toctree:: - - /examples/hlapi/twisted/agent/ntforg/common-notifications - /examples/hlapi/twisted/agent/ntforg/advanced-topics - -More sophisticated or less popular SNMP operations can still be performed -with PySNMP through its Native API to Standard SNMP Applications. diff --git a/docs/source/examples/hlapi/twisted/manager/cmdgen/advanced-topics.rst b/docs/source/examples/hlapi/twisted/manager/cmdgen/advanced-topics.rst deleted file mode 100644 index 135ab533..00000000 --- a/docs/source/examples/hlapi/twisted/manager/cmdgen/advanced-topics.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Advanced Command Generator --------------------------- - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/multiple-concurrent-queries.py>` script. - - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py>` script. - - -See also: :doc:`library reference </docs/api-reference>`. diff --git a/docs/source/examples/hlapi/twisted/manager/cmdgen/snmp-versions.rst b/docs/source/examples/hlapi/twisted/manager/cmdgen/snmp-versions.rst deleted file mode 100644 index b2d94b09..00000000 --- a/docs/source/examples/hlapi/twisted/manager/cmdgen/snmp-versions.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Various SNMP versions ----------------------- - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/v1-get.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/v1-get.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/v1-get.py>` script. - - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py>` script. - - -See also: :doc:`library reference </docs/api-reference>`. diff --git a/docs/source/examples/hlapi/twisted/manager/cmdgen/transport-tweaks.rst b/docs/source/examples/hlapi/twisted/manager/cmdgen/transport-tweaks.rst deleted file mode 100644 index bddd96c9..00000000 --- a/docs/source/examples/hlapi/twisted/manager/cmdgen/transport-tweaks.rst +++ /dev/null @@ -1,17 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Transport tweaks ----------------- - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/custom-timeout-and-retries.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/custom-timeout-and-retries.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/custom-timeout-and-retries.py>` script. - -See also: :doc:`library reference </docs/api-reference>`. diff --git a/docs/source/examples/hlapi/twisted/manager/cmdgen/walking-operations.rst b/docs/source/examples/hlapi/twisted/manager/cmdgen/walking-operations.rst deleted file mode 100644 index 71058bb9..00000000 --- a/docs/source/examples/hlapi/twisted/manager/cmdgen/walking-operations.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. toctree:: - :maxdepth: 2 - -Walking operations ------------------- - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/getbulk-to-eom.py>` script. - -.. include:: /../../examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py - :start-after: """ - :end-before: """# - -.. literalinclude:: /../../examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py - :start-after: """# - :language: python - -:download:`Download</../../examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py>` script. - -See also: :doc:`library reference </docs/api-reference>`. |