diff options
author | elie <elie> | 2015-09-14 21:26:29 +0000 |
---|---|---|
committer | elie <elie> | 2015-09-14 21:26:29 +0000 |
commit | f99f429bf1ed6c6e73966cb94990a55c9649baad (patch) | |
tree | a4f587eb9363eec1b158037b372b29e08a631990 /docs/source/examples/v3arch/asyncore | |
parent | 82e1b1a84d62ced461840eba9019cf8b21b8b072 (diff) | |
download | pysnmp-f99f429bf1ed6c6e73966cb94990a55c9649baad.tar.gz |
missing examples harness added
Diffstat (limited to 'docs/source/examples/v3arch/asyncore')
40 files changed, 1647 insertions, 0 deletions
diff --git a/docs/source/examples/v3arch/asyncore/agent/cmdrsp/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/advanced-topics.rst new file mode 100644 index 0000000..7bfcc0c --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/advanced-topics.rst @@ -0,0 +1,38 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topics +--------------- + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-custom-engine-id.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-custom-engine-id.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-custom-engine-id.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-observe-request-processing.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-observe-request-processing.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-observe-request-processing.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-snmp-engines.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-snmp-engines.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-snmp-engines.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst new file mode 100644 index 0000000..f685ff3 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.rst @@ -0,0 +1,49 @@ +.. toctree:: + :maxdepth: 2 + +Agent-side MIB implementations +------------------------------ + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-scalar-mib-objects.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-scalar-mib-objects.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-scalar-mib-objects.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-tabular-mib-objects.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-tabular-mib-objects.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v2c-custom-tabular-mib-objects.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib-controller.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib-controller.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-alternative-mib-controller.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/cmdrsp/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/snmp-versions.rst new file mode 100644 index 0000000..3bbc86e --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/snmp-versions.rst @@ -0,0 +1,27 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v1-read-and-write-communities.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v1-read-and-write-communities.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v1-read-and-write-communities.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-users.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-users.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-multiple-users.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/cmdrsp/transport-tweaks.rst b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/transport-tweaks.rst new file mode 100644 index 0000000..bb7d0db --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/cmdrsp/transport-tweaks.rst @@ -0,0 +1,38 @@ +.. toctree:: + :maxdepth: 2 + +Transport tweaks +---------------- + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-interfaces.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-interfaces.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-interfaces.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-transports.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-transports.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v2c-multiple-transports.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-preserve-original-destination-address.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/cmdrsp/v3-preserve-original-destination-address.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/cmdrsp/v3-preserve-original-destination-address.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/advanced-topics.rst new file mode 100644 index 0000000..83fda00 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/advanced-topics.rst @@ -0,0 +1,16 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topic +-------------- + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-custom-pdu.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-custom-pdu.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-custom-pdu.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/common-notifications.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/common-notifications.rst new file mode 100644 index 0000000..749c4ff --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/common-notifications.rst @@ -0,0 +1,46 @@ +.. toctree:: + :maxdepth: 2 + +Common notifications +-------------------- + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py>` script. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py>` script. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/inform-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/inform-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/inform-v2c.py>` script. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/inform-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/inform-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/inform-v3.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/evaluating-notification-type.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/evaluating-notification-type.rst new file mode 100644 index 0000000..6ec5acc --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/evaluating-notification-type.rst @@ -0,0 +1,26 @@ +.. toctree:: + :maxdepth: 2 + +Evaluating NOTIFICATION-TYPE +---------------------------- + +SNMP SMI defines notifications as a TRAP or INFORM PDU containing +the indication of type (snmpTrapOID) and a set of MIB variables +(Managed Objects Instances) fetched from Agent's MIB at the moment +of notification. + +Consequently, sending specific NOTIFICATION-TYPE implies including certain +set of OIDs into PDU. PySNMP offers this facility through NotificationType +class. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/multiple-managers-operations.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/multiple-managers-operations.rst new file mode 100644 index 0000000..538f40b --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/multiple-managers-operations.rst @@ -0,0 +1,42 @@ +.. toctree:: + :maxdepth: 2 + +Multiple managers operations +---------------------------- + +SNMPv3 framework is designed to allow Agents sending the same PDU +to multiple Managers over different network transports, listening at +different network addresses over different SNMP versions/credentials. + +The following few examples use this facility. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/inform-multiple-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/inform-multiple-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/inform-multiple-protocols.py>` script. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-addresses.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-addresses.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-addresses.py>` script. + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-transports.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-transports.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-multiple-transports.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-v1-trap-variants.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-v1-trap-variants.rst new file mode 100644 index 0000000..bab44c8 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-v1-trap-variants.rst @@ -0,0 +1,28 @@ +.. toctree:: + :maxdepth: 2 + +SNMPv1 TRAP variants +-------------------- + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-default-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-default-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-default-values.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-custom-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-custom-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v1-with-custom-values.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-versions.rst new file mode 100644 index 0000000..2b56cba --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/snmp-versions.rst @@ -0,0 +1,39 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v1.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v3.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/agent/ntforg/transport-tweaks.rst b/docs/source/examples/v3arch/asyncore/agent/ntforg/transport-tweaks.rst new file mode 100644 index 0000000..e949255 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/agent/ntforg/transport-tweaks.rst @@ -0,0 +1,16 @@ +.. toctree:: + :maxdepth: 2 + +Transport tweaks +---------------- + +.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-from-specific-address.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v1-from-specific-address.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v1-from-specific-address.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/contents.rst b/docs/source/examples/v3arch/asyncore/contents.rst new file mode 100644 index 0000000..54db9fc --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/contents.rst @@ -0,0 +1,81 @@ + +SNMP with Asyncore +================== + +If you find yourself unable to use particular SNMP feature with the +high-level, "oneliner" API, your next step would be to use SNMPv3 +engine services through one of the Standard SNMP Applications +(`RFC3413 <https://tools.ietf.org/html/rfc3413>`_). + +There're a large number of SNMPv3 Native API example scripts on this +website. Most of them serve a very specific purpose like talking arbitrary +SNMP version or handling particular PDU type. That dedication of +features serve the purpose of simplifying example code and easing +your studies. + +Since all these examples are built on top of common PySNMP components +like SNMP engine, asyncore-based I/O dispatcher, configuration datastore, +you could always combine parts of the examples for getting a new breed +of SNMP application best matching your needs. + +Command Generator Applications +------------------------------ + +.. toctree:: + + /examples/v3arch/asyncore/manager/cmdgen/snmp-versions + /examples/v3arch/asyncore/manager/cmdgen/modifying-variables + /examples/v3arch/asyncore/manager/cmdgen/walking-operations + /examples/v3arch/asyncore/manager/cmdgen/table-operations + /examples/v3arch/asyncore/manager/cmdgen/mib-tweaks + /examples/v3arch/asyncore/manager/cmdgen/transport-tweaks + /examples/v3arch/asyncore/manager/cmdgen/advanced-topics +.. XXX /examples/v3arch/asyncore/manager/cmdgen/asynchronous-operations + + +Command Responder Applications +------------------------------ + +.. toctree:: + + /examples/v3arch/asyncore/agent/cmdrsp/snmp-versions + /examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations + /examples/v3arch/asyncore/agent/cmdrsp/transport-tweaks + /examples/v3arch/asyncore/agent/cmdrsp/advanced-topics + +Notification Originator Applications +------------------------------------ + +.. toctree:: + + /examples/v3arch/asyncore/agent/ntforg/snmp-versions + /examples/v3arch/asyncore/agent/ntforg/common-notifications + /examples/v3arch/asyncore/agent/ntforg/evaluating-notification-type + /examples/v3arch/asyncore/agent/ntforg/multiple-managers-operations + /examples/v3arch/asyncore/agent/ntforg/transport-tweaks + /examples/v3arch/asyncore/agent/ntforg/advanced-topics +.. XXX /examples/v3arch/asyncore/agent/ntforg/snmp-v1-trap-variants + + +Notification Receiver Applications +---------------------------------- + +.. toctree:: + + /examples/v3arch/asyncore/manager/ntfrcv/snmp-versions + /examples/v3arch/asyncore/manager/ntfrcv/transport-tweaks + /examples/v3arch/asyncore/manager/ntfrcv/advanced-topics + +Proxy Forwarder Applications +---------------------------- + +.. toctree:: + + /examples/v3arch/asyncore/proxy/command/transport-conversion + /examples/v3arch/asyncore/proxy/command/protocol-conversion + + +For more details on PySNMP programming model and interfaces, please +refer to the documentation + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/advanced-topics.rst new file mode 100644 index 0000000..1514953 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/advanced-topics.rst @@ -0,0 +1,28 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topics +--------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-custom-context.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-custom-context.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-custom-context.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-observe-request-processing.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-observe-request-processing.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-observe-request-processing.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/asynchronous-operations.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/asynchronous-operations.rst new file mode 100644 index 0000000..b560f72 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/asynchronous-operations.rst @@ -0,0 +1,42 @@ +.. toctree:: + :maxdepth: 2 + +Asynchronous operations +----------------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-transports-and-protocols.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-snmp-engines.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-snmp-engines.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-async-multiple-snmp-engines.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py>` script. + + + + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/mib-tweaks.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/mib-tweaks.rst new file mode 100644 index 0000000..36bcbde --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/mib-tweaks.rst @@ -0,0 +1,47 @@ +.. toctree:: + :maxdepth: 2 + +MIB tweaks +---------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-compilation-and-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-compilation-and-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-compilation-and-lookup.py>` script. + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py>` script. + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py>` script. + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-resolution.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-resolution.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-with-mib-resolution.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/modifying-variables.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/modifying-variables.rst new file mode 100644 index 0000000..d8f659e --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/modifying-variables.rst @@ -0,0 +1,40 @@ + +.. toctree:: + :maxdepth: 2 + +Modifying values +---------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/set-v1.py >` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/set-v2c.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/set-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/set-v3.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/snmp-versions.rst new file mode 100644 index 0000000..803dfb2 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/snmp-versions.rst @@ -0,0 +1,72 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v1.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-custom-timeout.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-custom-timeout.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-custom-timeout.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv-sha-aes128.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv-sha-aes128.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-auth-priv-sha-aes128.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/table-operations.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/table-operations.rst new file mode 100644 index 0000000..a650698 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/table-operations.rst @@ -0,0 +1,59 @@ +.. toctree:: + :maxdepth: 2 + +Table operations +---------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py>` script. + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-index.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-index.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-index.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-multiple-indices.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-multiple-indices.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v3-table-object-by-multiple-indices.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/transport-tweaks.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/transport-tweaks.rst new file mode 100644 index 0000000..e519230 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/transport-tweaks.rst @@ -0,0 +1,40 @@ +.. toctree:: + :maxdepth: 2 + +Transport tweaks +---------------- + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-spoof-source-address.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-spoof-source-address.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/get-v2c-spoof-source-address.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-from-specific-address.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-from-specific-address.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c-from-specific-address.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-over-ipv6.py>` script. + + + diff --git a/docs/source/examples/v3arch/asyncore/manager/cmdgen/walking-operations.rst b/docs/source/examples/v3arch/asyncore/manager/cmdgen/walking-operations.rst new file mode 100644 index 0000000..334b820 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/cmdgen/walking-operations.rst @@ -0,0 +1,61 @@ +.. toctree:: + :maxdepth: 2 + +Walking operations +------------------ + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v2c.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getbulk-v3.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v1.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-pull-subtree.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-pull-subtree.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v3-pull-subtree.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/cmdgen/getnext-v2c.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/ntfrcv/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/advanced-topics.rst new file mode 100644 index 0000000..c7222f6 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/advanced-topics.rst @@ -0,0 +1,28 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topics +--------------- + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-observe-request-processing.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-observe-request-processing.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v2c-observe-request-processing.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-regexp-community-name.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-regexp-community-name.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-regexp-community-name.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/ntfrcv/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/snmp-versions.rst new file mode 100644 index 0000000..2f67e9d --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/snmp-versions.rst @@ -0,0 +1,17 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v3-multiple-users.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v3-multiple-users.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v3-multiple-users.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/manager/ntfrcv/transport-tweaks.rst b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/transport-tweaks.rst new file mode 100644 index 0000000..8e4272f --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/manager/ntfrcv/transport-tweaks.rst @@ -0,0 +1,39 @@ +.. toctree:: + :maxdepth: 2 + +Transport tweaks +---------------- + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-interfaces.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-interfaces.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-interfaces.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-transports.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-transports.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v2c-multiple-transports.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-request-details.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-request-details.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/manager/ntfrcv/v2c-with-request-details.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/advanced-topics.rst new file mode 100644 index 0000000..2c44e98 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/advanced-topics.rst @@ -0,0 +1,27 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topic +-------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextname.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextname.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextname.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextengineid.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextengineid.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3-with-custom-contextengineid.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/asynchronous-operations.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/asynchronous-operations.rst new file mode 100644 index 0000000..4bde125 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/asynchronous-operations.rst @@ -0,0 +1,27 @@ +.. toctree:: + :maxdepth: 2 + +Asynchronous operations +----------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/common-notifications.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/common-notifications.rst new file mode 100644 index 0000000..c4eb733 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/common-notifications.rst @@ -0,0 +1,27 @@ +.. toctree:: + :maxdepth: 2 + +Common notifications +-------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v3.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/evaluating-notification-type.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/evaluating-notification-type.rst new file mode 100644 index 0000000..1a0c8f5 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/evaluating-notification-type.rst @@ -0,0 +1,17 @@ +.. toctree:: + :maxdepth: 2 + +Evaluating NOTIFICATION-TYPE +---------------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v2c-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v2c-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/inform-v2c-with-mib-lookup.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-v1-trap-variants.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-v1-trap-variants.rst new file mode 100644 index 0000000..8ed93c8 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-v1-trap-variants.rst @@ -0,0 +1,28 @@ +.. toctree:: + :maxdepth: 2 + +SNMPv1 TRAP variants +-------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-versions.rst new file mode 100644 index 0000000..573af2e --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-versions.rst @@ -0,0 +1,39 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-default-values.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/contents.rst b/docs/source/examples/v3arch/asyncore/oneliner/contents.rst new file mode 100644 index 0000000..cf9787f --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/contents.rst @@ -0,0 +1,84 @@ + +PySNMP Oneliner Examples +======================== + +This chapter illustrates various uses of the high-level programming +interfaces to some of Standard SNMP Applicaitons, as defined in +`RFC3413 <https://tools.ietf.org/html/rfc3413>`_. +The so called "oneliner" API is designed to be simple, concise and +suitable for the most frequent operations. For that matter only +Command Generator and Notification Originator Applications are currently +wrapped into a nearly one-line Python expression. + +.. note:: The following examples involve creating Python iterator, + the next() call is used to invoke iterator just once. + +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 + +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 + :start-after: options: + :end-before: Functionally + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.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/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py + :start-after: options: + :end-before: Functionally + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py + :start-after: """# + :language: python + +More examples on Command Generator API usage follow. + +.. toctree:: + + /examples/v3arch/asyncore/oneliner/manager/cmdgen/snmp-versions + /examples/v3arch/asyncore/oneliner/manager/cmdgen/modifying-variables + /examples/v3arch/asyncore/oneliner/manager/cmdgen/walking-operations + /examples/v3arch/asyncore/oneliner/manager/cmdgen/table-operations + /examples/v3arch/asyncore/oneliner/manager/cmdgen/mib-tweaks + /examples/v3arch/asyncore/oneliner/manager/cmdgen/transport-tweaks + /examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations + /examples/v3arch/asyncore/oneliner/manager/cmdgen/advanced-topics + +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 + :start-after: options: + :end-before: Functionally + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/agent/ntforg/trap-v1-with-custom-values.py + :start-after: """# + :language: python + +More examples on Notification Originator API usage follow. + +.. toctree:: + + /examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-versions + /examples/v3arch/asyncore/oneliner/agent/ntforg/common-notifications + /examples/v3arch/asyncore/oneliner/agent/ntforg/snmp-v1-trap-variants + /examples/v3arch/asyncore/oneliner/agent/ntforg/evaluating-notification-type + /examples/v3arch/asyncore/oneliner/agent/ntforg/asynchronous-operations + /examples/v3arch/asyncore/oneliner/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/v3arch/asyncore/oneliner/manager/cmdgen/advanced-topics.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/advanced-topics.rst new file mode 100644 index 0000000..02a21fb --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/advanced-topics.rst @@ -0,0 +1,75 @@ +.. toctree:: + :maxdepth: 2 + +Advanced topics +--------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-multiple-calls.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-multiple-calls.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-multiple-calls.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-specific-engine-id.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-specific-engine-id.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-specific-engine-id.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-custom-security-name.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-custom-security-name.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-custom-security-name.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-threaded-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-threaded-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-threaded-multiple-transports-and-protocols.py>` script. + + + + + 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 new file mode 100644 index 0000000..eb80eb5 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/asynchronous-operations.rst @@ -0,0 +1,42 @@ +.. toctree:: + :maxdepth: 2 + +Asynchronous operations +----------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-async-multiple-snmp-engines.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py>` script. + + + + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/mib-tweaks.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/mib-tweaks.rst new file mode 100644 index 0000000..faf1742 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/mib-tweaks.rst @@ -0,0 +1,47 @@ +.. toctree:: + :maxdepth: 2 + +MIB tweaks +---------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-mib-compilation-and-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-mib-compilation-and-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-mib-compilation-and-lookup.py>` script. + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py>` script. + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py>` script. + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c-with-mib-resolution.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c-with-mib-resolution.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c-with-mib-resolution.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/modifying-variables.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/modifying-variables.rst new file mode 100644 index 0000000..a84e2b7 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/modifying-variables.rst @@ -0,0 +1,40 @@ + +.. toctree:: + :maxdepth: 2 + +Modifying values +---------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v1-multiple-values.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v1-multiple-values.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v1-multiple-values.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/snmp-versions.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/snmp-versions.rst new file mode 100644 index 0000000..6272478 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/snmp-versions.rst @@ -0,0 +1,72 @@ +.. toctree:: + :maxdepth: 2 + +Various SNMP versions +---------------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v1.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-noauth-nopriv.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-noauth-nopriv.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-noauth-nopriv.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv-sha-aes128.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv-sha-aes128.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-auth-priv-sha-aes128.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/table-operations.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/table-operations.rst new file mode 100644 index 0000000..b7a6586 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/table-operations.rst @@ -0,0 +1,59 @@ +.. toctree:: + :maxdepth: 2 + +Table operations +---------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v1.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v1.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v1.py>` script. + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-index.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-index.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-index.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c-limiting-number-of-rows.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/transport-tweaks.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/transport-tweaks.rst new file mode 100644 index 0000000..4b191e2 --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/transport-tweaks.rst @@ -0,0 +1,29 @@ +.. toctree:: + :maxdepth: 2 + +Transport tweaks +---------------- + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-custom-timeout-and-retries.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-custom-timeout-and-retries.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v2c-with-custom-timeout-and-retries.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py>` script. + + + diff --git a/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/walking-operations.rst b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/walking-operations.rst new file mode 100644 index 0000000..d67d5fd --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/oneliner/manager/cmdgen/walking-operations.rst @@ -0,0 +1,61 @@ +.. toctree:: + :maxdepth: 2 + +Walking operations +------------------ + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v2c.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-limiting-number-of-packets.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-limiting-number-of-packets.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getbulk-v3-limiting-number-of-packets.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/oneliner/manager/cmdgen/getnext-v2c.py>` script. + + diff --git a/docs/source/examples/v3arch/asyncore/proxy/command/protocol-conversion.rst b/docs/source/examples/v3arch/asyncore/proxy/command/protocol-conversion.rst new file mode 100644 index 0000000..5bfa01b --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/proxy/command/protocol-conversion.rst @@ -0,0 +1,38 @@ +.. toctree:: + :maxdepth: 2 + +Protocol conversion +------------------- + +.. include:: /../../examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py>` script. + + +.. include:: /../../examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py>` script. + diff --git a/docs/source/examples/v3arch/asyncore/proxy/command/transport-conversion.rst b/docs/source/examples/v3arch/asyncore/proxy/command/transport-conversion.rst new file mode 100644 index 0000000..d7244cc --- /dev/null +++ b/docs/source/examples/v3arch/asyncore/proxy/command/transport-conversion.rst @@ -0,0 +1,16 @@ +.. toctree:: + :maxdepth: 2 + +Transport conversion +-------------------- + +.. include:: /../../examples/v3arch/asyncore/proxy/command/udp6-to-udp4-conversion.py + :start-after: """ + :end-before: """# + +.. literalinclude:: /../../examples/v3arch/asyncore/proxy/command/udp6-to-udp4-conversion.py + :start-after: """# + :language: python + +:download:`Download</../../examples/v3arch/asyncore/proxy/command/udp6-to-udp4-conversion.py>` script. + |