summaryrefslogtreecommitdiff
path: root/docs/source/examples/v3arch/trollius
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/examples/v3arch/trollius')
-rw-r--r--docs/source/examples/v3arch/trollius/agent/ntforg/common-notifications.rst26
-rw-r--r--docs/source/examples/v3arch/trollius/contents.rst37
-rw-r--r--docs/source/examples/v3arch/trollius/manager/cmdgen/fetching-values.rst16
-rw-r--r--docs/source/examples/v3arch/trollius/manager/cmdgen/modifying-variables.rst16
-rw-r--r--docs/source/examples/v3arch/trollius/manager/cmdgen/transport-tweaks.rst16
-rw-r--r--docs/source/examples/v3arch/trollius/manager/cmdgen/walking-operations.rst26
6 files changed, 137 insertions, 0 deletions
diff --git a/docs/source/examples/v3arch/trollius/agent/ntforg/common-notifications.rst b/docs/source/examples/v3arch/trollius/agent/ntforg/common-notifications.rst
new file mode 100644
index 0000000..e20d4cc
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/agent/ntforg/common-notifications.rst
@@ -0,0 +1,26 @@
+.. toctree::
+ :maxdepth: 2
+
+Common notifications
+--------------------
+
+.. include:: /../../examples/v3arch/trollius/agent/ntforg/trap-v1.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/agent/ntforg/trap-v1.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/agent/ntforg/trap-v1.py>` script.
+
+.. include:: /../../examples/v3arch/trollius/agent/ntforg/inform-v3.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/agent/ntforg/inform-v3.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/agent/ntforg/inform-v3.py>` script.
+
diff --git a/docs/source/examples/v3arch/trollius/contents.rst b/docs/source/examples/v3arch/trollius/contents.rst
new file mode 100644
index 0000000..b223e64
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/contents.rst
@@ -0,0 +1,37 @@
+
+SNMP with Trollius
+==================
+
+`Trollius <http://trollius.readthedocs.org/>`_ framework offers
+infrastructure that allows you writing single-threaded, concurrent code
+using Python coroutines.
+
+Trollius is a backport of `asyncio <https://docs.python.org/3/library/asyncio.html>`_ to Python versions older than 3.3. Trollius supports nearly the same
+API as asyncio. Full support of both asyncio and trollius modules is
+built into pysnmp.
+
+All SNMP-related functionality of Native PySNMP API to Standard SNMP
+Applications (`RFC3413 <https://tools.ietf.org/html/rfc3413>`_)
+remains available to asyncio-backed applications.
+
+Command Generator Applications
+------------------------------
+
+.. toctree::
+
+ /examples/v3arch/trollius/manager/cmdgen/fetching-values
+ /examples/v3arch/trollius/manager/cmdgen/modifying-variables
+ /examples/v3arch/trollius/manager/cmdgen/walking-operations
+ /examples/v3arch/trollius/manager/cmdgen/transport-tweaks
+
+Notification Originator Applications
+------------------------------------
+
+.. toctree::
+
+ /examples/v3arch/trollius/agent/ntforg/common-notifications
+
+For more details on PySNMP programming model and interfaces, please
+refer to the documentation
+
+
diff --git a/docs/source/examples/v3arch/trollius/manager/cmdgen/fetching-values.rst b/docs/source/examples/v3arch/trollius/manager/cmdgen/fetching-values.rst
new file mode 100644
index 0000000..3ce4683
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/manager/cmdgen/fetching-values.rst
@@ -0,0 +1,16 @@
+.. toctree::
+ :maxdepth: 2
+
+Fetching values
+---------------
+
+.. include:: /../../examples/v3arch/trollius/manager/cmdgen/get-v1.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/manager/cmdgen/get-v1.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/manager/cmdgen/get-v1.py>` script.
+
diff --git a/docs/source/examples/v3arch/trollius/manager/cmdgen/modifying-variables.rst b/docs/source/examples/v3arch/trollius/manager/cmdgen/modifying-variables.rst
new file mode 100644
index 0000000..148f305
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/manager/cmdgen/modifying-variables.rst
@@ -0,0 +1,16 @@
+.. toctree::
+ :maxdepth: 2
+
+Modifying values
+----------------
+
+.. include:: /../../examples/v3arch/trollius/manager/cmdgen/set-v2c.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/manager/cmdgen/set-v2c.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/manager/cmdgen/set-v2c.py>` script.
+
diff --git a/docs/source/examples/v3arch/trollius/manager/cmdgen/transport-tweaks.rst b/docs/source/examples/v3arch/trollius/manager/cmdgen/transport-tweaks.rst
new file mode 100644
index 0000000..ef44d47
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/manager/cmdgen/transport-tweaks.rst
@@ -0,0 +1,16 @@
+.. toctree::
+ :maxdepth: 2
+
+Transport tweaks
+----------------
+
+.. include:: /../../examples/v3arch/trollius/manager/cmdgen/get-v2c-custom-timeout.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/manager/cmdgen/get-v2c-custom-timeout.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/manager/cmdgen/get-v2c-custom-timeout.py>` script.
+
diff --git a/docs/source/examples/v3arch/trollius/manager/cmdgen/walking-operations.rst b/docs/source/examples/v3arch/trollius/manager/cmdgen/walking-operations.rst
new file mode 100644
index 0000000..3151147
--- /dev/null
+++ b/docs/source/examples/v3arch/trollius/manager/cmdgen/walking-operations.rst
@@ -0,0 +1,26 @@
+.. toctree::
+ :maxdepth: 2
+
+Walking operations
+------------------
+
+.. include:: /../../examples/v3arch/trollius/manager/cmdgen/getnext-v3.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/manager/cmdgen/getnext-v3.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/manager/cmdgen/getnext-v3.py>` script.
+
+.. include:: /../../examples/v3arch/trollius/manager/cmdgen/getbulk-v3.py
+ :start-after: """
+ :end-before: """#
+
+.. literalinclude:: /../../examples/v3arch/trollius/manager/cmdgen/getbulk-v3.py
+ :start-after: """#
+ :language: python
+
+:download:`Download</../../examples/v3arch/trollius/manager/cmdgen/getbulk-v3.py>` script.
+