From 52fe51a7559ff468fda947156be2fa6c76dd1b7b Mon Sep 17 00:00:00 2001 From: elie Date: Wed, 16 Sep 2015 18:59:06 +0000 Subject: relinked to newer examples --- docs/source/docs/smi/contents.rst | 20 -------------------- docs/source/docs/v1arch/asyncore/contents.rst | 3 --- docs/source/docs/v3arch/asyncore/contents.rst | 2 -- docs/source/docs/v3arch/asynio/contents.rst | 2 -- docs/source/docs/v3arch/trollius/contents.rst | 2 -- docs/source/docs/v3arch/twisted/contents.rst | 2 -- .../agent/cmdrsp/agent-side-mib-implementations.rst | 8 ++++---- .../asyncore/agent/ntforg/transport-tweaks.rst | 14 +++++++------- docs/source/examples/v1arch/asyncore/contents.rst | 2 +- .../asyncore/manager/cmdgen/fetching-variables.rst | 8 ++++---- .../asyncore/manager/cmdgen/modifying-variables.rst | 8 ++++---- .../asyncore/manager/cmdgen/walking-operations.rst | 14 +++++++------- .../asyncore/manager/ntfrcv/transport-tweaks.rst | 8 ++++---- .../examples/v3arch/asyncore/oneliner/contents.rst | 16 ++++++++-------- .../manager/cmdgen/asynchronous-operations.rst | 3 +-- docs/source/examples/v3arch/twisted/contents.rst | 1 - docs/source/quick-start.rst | 17 +++++++---------- 17 files changed, 47 insertions(+), 83 deletions(-) delete mode 100644 docs/source/docs/smi/contents.rst delete mode 100644 docs/source/docs/v1arch/asyncore/contents.rst delete mode 100644 docs/source/docs/v3arch/asyncore/contents.rst delete mode 100644 docs/source/docs/v3arch/asynio/contents.rst delete mode 100644 docs/source/docs/v3arch/trollius/contents.rst delete mode 100644 docs/source/docs/v3arch/twisted/contents.rst diff --git a/docs/source/docs/smi/contents.rst b/docs/source/docs/smi/contents.rst deleted file mode 100644 index 0e2ee9f..0000000 --- a/docs/source/docs/smi/contents.rst +++ /dev/null @@ -1,20 +0,0 @@ - -Oneliner MIB lookup service -=========================== - -PySNMP MIB architecture -======================= - -MIB types and objects ---------------------- - -MIB Builder ------------ - -MIB View Controller -------------------- - -MIB Instrumentation Controller ------------------------------- - - diff --git a/docs/source/docs/v1arch/asyncore/contents.rst b/docs/source/docs/v1arch/asyncore/contents.rst deleted file mode 100644 index e803a1d..0000000 --- a/docs/source/docs/v1arch/asyncore/contents.rst +++ /dev/null @@ -1,3 +0,0 @@ -Packet-level SNMP with Asyncore -=============================== - diff --git a/docs/source/docs/v3arch/asyncore/contents.rst b/docs/source/docs/v3arch/asyncore/contents.rst deleted file mode 100644 index b385865..0000000 --- a/docs/source/docs/v3arch/asyncore/contents.rst +++ /dev/null @@ -1,2 +0,0 @@ -Standard SNMP Apps with Asyncore -================================ diff --git a/docs/source/docs/v3arch/asynio/contents.rst b/docs/source/docs/v3arch/asynio/contents.rst deleted file mode 100644 index 4a416e0..0000000 --- a/docs/source/docs/v3arch/asynio/contents.rst +++ /dev/null @@ -1,2 +0,0 @@ -Standard SNMP Apps with Asyncio -=============================== diff --git a/docs/source/docs/v3arch/trollius/contents.rst b/docs/source/docs/v3arch/trollius/contents.rst deleted file mode 100644 index a7e650b..0000000 --- a/docs/source/docs/v3arch/trollius/contents.rst +++ /dev/null @@ -1,2 +0,0 @@ -Standard SNMP Apps with Trollius -================================ diff --git a/docs/source/docs/v3arch/twisted/contents.rst b/docs/source/docs/v3arch/twisted/contents.rst deleted file mode 100644 index 885aac3..0000000 --- a/docs/source/docs/v3arch/twisted/contents.rst +++ /dev/null @@ -1,2 +0,0 @@ -Standard SNMP Apps with Twisted -=============================== diff --git a/docs/source/examples/v1arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst b/docs/source/examples/v1arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst index 8f34d89..87314bd 100644 --- a/docs/source/examples/v1arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst +++ b/docs/source/examples/v1arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst @@ -4,15 +4,15 @@ Agent-side MIB implementations ------------------------------ -.. include:: /../../examples/v1arch/asyncore/agent/cmdrsp/v2c-custom-scalar-mib-objects.py +.. include:: /../../examples/v1arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/agent/cmdrsp/v2c-custom-scalar-mib-objects.py +.. literalinclude:: /../../examples/v1arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v1arch/asyncore/agent/ntforg/transport-tweaks.rst b/docs/source/examples/v1arch/asyncore/agent/ntforg/transport-tweaks.rst index 7725901..dd6ecf2 100644 --- a/docs/source/examples/v1arch/asyncore/agent/ntforg/transport-tweaks.rst +++ b/docs/source/examples/v1arch/asyncore/agent/ntforg/transport-tweaks.rst @@ -4,26 +4,26 @@ Transport tweaks ---------------- -.. include:: /../../examples/v1arch/asyncore/agent/ntforg/trap-v1-multiple-transports.py +.. include:: /../../examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/agent/ntforg/trap-v1-multiple-transports.py +.. literalinclude:: /../../examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -.. include:: /../../examples/v1arch/asyncore/agent/ntforg/inform-v2c.py +.. include:: /../../examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/agent/ntforg/inform-v2c.py +.. literalinclude:: /../../examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v1arch/asyncore/contents.rst b/docs/source/examples/v1arch/asyncore/contents.rst index 3259fce..d6c6ae4 100644 --- a/docs/source/examples/v1arch/asyncore/contents.rst +++ b/docs/source/examples/v1arch/asyncore/contents.rst @@ -22,7 +22,7 @@ Command Generator Applications /examples/v1arch/asyncore/manager/cmdgen/fetching-variables /examples/v1arch/asyncore/manager/cmdgen/modifying-variables /examples/v1arch/asyncore/manager/cmdgen/walking-operations - /examples/v1arch/asyncore/manager/cmdgen/advanced-topics + /examples/v1arch/asyncore/manager/cmdgen/transport-tweaks Command Responder Applications ------------------------------ diff --git a/docs/source/examples/v1arch/asyncore/manager/cmdgen/fetching-variables.rst b/docs/source/examples/v1arch/asyncore/manager/cmdgen/fetching-variables.rst index 44d9d8a..2bcee2c 100644 --- a/docs/source/examples/v1arch/asyncore/manager/cmdgen/fetching-variables.rst +++ b/docs/source/examples/v1arch/asyncore/manager/cmdgen/fetching-variables.rst @@ -4,15 +4,15 @@ Fetching variables ------------------ -.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/get-v1.py +.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/get-v1.py +.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v1arch/asyncore/manager/cmdgen/modifying-variables.rst b/docs/source/examples/v1arch/asyncore/manager/cmdgen/modifying-variables.rst index 3fc9926..c2b84f1 100644 --- a/docs/source/examples/v1arch/asyncore/manager/cmdgen/modifying-variables.rst +++ b/docs/source/examples/v1arch/asyncore/manager/cmdgen/modifying-variables.rst @@ -4,15 +4,15 @@ Modifying variables ------------------- -.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/set-v2c.py +.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/v2c-set.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/set-v2c.py +.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/v2c-set.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v1arch/asyncore/manager/cmdgen/walking-operations.rst b/docs/source/examples/v1arch/asyncore/manager/cmdgen/walking-operations.rst index 93866fa..99d57fa 100644 --- a/docs/source/examples/v1arch/asyncore/manager/cmdgen/walking-operations.rst +++ b/docs/source/examples/v1arch/asyncore/manager/cmdgen/walking-operations.rst @@ -4,26 +4,26 @@ MIB walking operations ---------------------- -.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/getnext-v1.py +.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/getnext-v1.py +.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/getbulk-v2c.py +.. include:: /../../examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/getbulk-v2c.py +.. literalinclude:: /../../examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v1arch/asyncore/manager/ntfrcv/transport-tweaks.rst b/docs/source/examples/v1arch/asyncore/manager/ntfrcv/transport-tweaks.rst index 9c921ef..290f522 100644 --- a/docs/source/examples/v1arch/asyncore/manager/ntfrcv/transport-tweaks.rst +++ b/docs/source/examples/v1arch/asyncore/manager/ntfrcv/transport-tweaks.rst @@ -4,15 +4,15 @@ Transport tweaks ---------------- -.. include:: /../../examples/v1arch/asyncore/manager/ntfrcv/v1-multiple-transports.py +.. include:: /../../examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py :start-after: """ :end-before: """# -.. literalinclude:: /../../examples/v1arch/asyncore/manager/ntfrcv/v1-multiple-transports.py +.. literalinclude:: /../../examples/v1arch/asyncore/manager/ntfrcv/listen-on-ipv4-and-ipv6-interfaces.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. -See also: :doc:`library-reference `. +See also: :doc:`library reference `. diff --git a/docs/source/examples/v3arch/asyncore/oneliner/contents.rst b/docs/source/examples/v3arch/asyncore/oneliner/contents.rst index cf9787f..f0e75af 100644 --- a/docs/source/examples/v3arch/asyncore/oneliner/contents.rst +++ b/docs/source/examples/v3arch/asyncore/oneliner/contents.rst @@ -1,6 +1,6 @@ -PySNMP Oneliner Examples -======================== +High-level SNMP +=============== This chapter illustrates various uses of the high-level programming interfaces to some of Standard SNMP Applicaitons, as defined in @@ -22,11 +22,11 @@ Command Generator Applications Here's a quick example on a simple SNMP GET by oneliner API: -.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/v1-get.py :start-after: options: :end-before: Functionally -.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/v1-get.py :start-after: """# :language: python @@ -34,11 +34,11 @@ 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/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/pull-whole-mib.py :start-after: options: :end-before: Functionally -.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/pull-whole-mib.py :start-after: """# :language: python @@ -61,11 +61,11 @@ Notification Originator Application Sending SNMP TRAP's and INFORM's is as easy with PySNMP's oneliner library. The following code sends SNMP TRAP: -.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/default-v1-trap.py :start-after: options: :end-before: Functionally -.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/default-v1-trap.py :start-after: """# :language: python diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations.rst index acafdaf..6191eba 100644 --- a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations.rst +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations.rst @@ -34,7 +34,6 @@ Asynchronous operations :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. See also: :doc:`library reference `. diff --git a/docs/source/examples/v3arch/twisted/contents.rst b/docs/source/examples/v3arch/twisted/contents.rst index 500cdba..951d567 100644 --- a/docs/source/examples/v3arch/twisted/contents.rst +++ b/docs/source/examples/v3arch/twisted/contents.rst @@ -18,7 +18,6 @@ Command Generator Applications .. toctree:: /examples/v3arch/twisted/manager/cmdgen/snmp-versions - /examples/v3arch/twisted/manager/cmdgen/modifying-variables /examples/v3arch/twisted/manager/cmdgen/walking-operations /examples/v3arch/twisted/manager/cmdgen/table-operations /examples/v3arch/twisted/manager/cmdgen/transport-tweaks diff --git a/docs/source/quick-start.rst b/docs/source/quick-start.rst index 8bcf6bb..b0e5b4e 100644 --- a/docs/source/quick-start.rst +++ b/docs/source/quick-start.rst @@ -17,11 +17,11 @@ So just cut&paste the following code right into your Python prompt. The code will performs SNMP GET operation for a sysDescr.0 object at a publically available SNMP Agent at **demo.snmplabs.com**: -.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/v1-get.py :start-after: """# :language: python -:download:`Download` script. +:download:`Download` script. If everything works as it should you will get: @@ -39,15 +39,12 @@ Send SNMP TRAP To send a trivial TRAP message to your local Notification Receiver just cut&paste the following code into your interactive Python session: -.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/default-v1-trap.py :start-after: """# :language: python -:download:`Download` script. - -For more sophisticated examples and uses cases please refer to the examples -and documentation pages. - - - +:download:`Download` script. +For more sophisticated examples and use cases please refer to +:doc:`examples ` and :doc:`library reference ` +pages. -- cgit v1.2.1