Add `hlapi.v1arch` API
Introduce new sub-package `pysnmp.hlapi.v1arch` which wraps otherwise very detailed packet-level SNMP messaging into a handful of convenience functions. As a side effect, the `pysnmp.hlapi.*` sub-packages moved under `pysnmp.hlapi.v3arch` though `pysnmp.hlapi` still exposes `pysnmp.hlappi.v3arch.*` symbols to retain some degree of backward compatibility. The signature of the hlapi `.sendNotification()` call has changed to accept `*varBinds` instead of a sequence of `varBinds`. The rationale is to unify this method call with similar methods of CommandGenerator.pull/186/head
parent
488ec26798
commit
285364acb4
19
CHANGES.txt
19
CHANGES.txt
|
@ -26,6 +26,25 @@ Revision 5.0.0, released 2018-09-??
|
|||
user-supplied `cbCtx` object throughout the MIB instrumentation
|
||||
methods. The goal is to let MIB objects access/modify whatever
|
||||
custom Python objects they need while being called back.
|
||||
- The high-level API (`hlapi`) extended to cover lightweight SNMP v1arch
|
||||
in hope to ease the use of packet-level SNMP API.
|
||||
|
||||
By way of introducing v1arch hlapi, the sub-packages layout changed
|
||||
so that `pysnmp.hlapi` is moved to `pysnmp.hlapi.v3arch` and the new
|
||||
v1arch layer is introduced in `pysnmp.hlapi.v1arch`. This change does
|
||||
not break backward compatibility as `pysnmp.hlapi` still defaults to
|
||||
`pysnmp.hlapi.v3arch`.
|
||||
|
||||
The `pysnmp.hlapi.v1arch` is designed to be as much similar in use
|
||||
to `pysnmp.hlapi.v3arch`, but with high-performance in mind. One of
|
||||
the consequences of this higher performance focus is that various
|
||||
automation around building well-formed SNMP messages is and mediating
|
||||
differences between SNMP versions is not present in this new `v1arch`
|
||||
layer.
|
||||
- The signature of the hlapi `.sendNotification()` call has changed
|
||||
to accept `*varBinds` instead of a sequence of `varBinds`. The rationale
|
||||
is to unify this method call with similar methods of CommandGenerator.
|
||||
This change should not compromise backward compatibility with pysnmp 4.
|
||||
|
||||
Revision 4.4.6, released 2018-09-XX
|
||||
-----------------------------------
|
||||
|
|
|
@ -30,17 +30,17 @@ Command Generator
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncore/sync/manager/cmdgen/getcmd
|
||||
/docs/hlapi/asyncore/sync/manager/cmdgen/setcmd
|
||||
/docs/hlapi/asyncore/sync/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/asyncore/sync/manager/cmdgen/bulkcmd
|
||||
/docs/hlapi/v3arch/asyncore/sync/manager/cmdgen/getcmd
|
||||
/docs/hlapi/v3arch/asyncore/sync/manager/cmdgen/setcmd
|
||||
/docs/hlapi/v3arch/asyncore/sync/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/v3arch/asyncore/sync/manager/cmdgen/bulkcmd
|
||||
|
||||
Notification Originator
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncore/sync/agent/ntforg/notification
|
||||
/docs/hlapi/v3arch/asyncore/sync/agent/ntforg/notification
|
||||
|
||||
Transport configuration
|
||||
+++++++++++++++++++++++
|
||||
|
@ -71,17 +71,17 @@ Command Generator
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncore/manager/cmdgen/getcmd
|
||||
/docs/hlapi/asyncore/manager/cmdgen/setcmd
|
||||
/docs/hlapi/asyncore/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/asyncore/manager/cmdgen/bulkcmd
|
||||
/docs/hlapi/v3arch/asyncore/manager/cmdgen/getcmd
|
||||
/docs/hlapi/v3arch/asyncore/manager/cmdgen/setcmd
|
||||
/docs/hlapi/v3arch/asyncore/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/v3arch/asyncore/manager/cmdgen/bulkcmd
|
||||
|
||||
Notification Originator
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncore/agent/ntforg/notification
|
||||
/docs/hlapi/v3arch/asyncore/agent/ntforg/notification
|
||||
|
||||
Transport configuration
|
||||
+++++++++++++++++++++++
|
||||
|
@ -89,10 +89,10 @@ Transport configuration
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autoclass:: pysnmp.hlapi.asyncore.UdpTransportTarget
|
||||
.. autoclass:: pysnmp.hlapi.v3arch.asyncore.UdpTransportTarget
|
||||
:members: setLocalAddress
|
||||
|
||||
.. autoclass:: pysnmp.hlapi.asyncore.Udp6TransportTarget
|
||||
.. autoclass:: pysnmp.hlapi.v3arch.asyncore.Udp6TransportTarget
|
||||
:members: setLocalAddress
|
||||
|
||||
Asynchronous: asyncio
|
||||
|
@ -108,17 +108,17 @@ Command Generator
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncio/manager/cmdgen/getcmd
|
||||
/docs/hlapi/asyncio/manager/cmdgen/setcmd
|
||||
/docs/hlapi/asyncio/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/asyncio/manager/cmdgen/bulkcmd
|
||||
/docs/hlapi/v3arch/asyncio/manager/cmdgen/getcmd
|
||||
/docs/hlapi/v3arch/asyncio/manager/cmdgen/setcmd
|
||||
/docs/hlapi/v3arch/asyncio/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/v3arch/asyncio/manager/cmdgen/bulkcmd
|
||||
|
||||
Notification Originator
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/asyncio/agent/ntforg/notification
|
||||
/docs/hlapi/v3arch/asyncio/agent/ntforg/notification
|
||||
|
||||
Transport configuration
|
||||
+++++++++++++++++++++++
|
||||
|
@ -126,10 +126,10 @@ Transport configuration
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autoclass:: pysnmp.hlapi.asyncio.UdpTransportTarget
|
||||
.. autoclass:: pysnmp.hlapi.v3arch.asyncio.UdpTransportTarget
|
||||
:members: setLocalAddress
|
||||
|
||||
.. autoclass:: pysnmp.hlapi.asyncio.Udp6TransportTarget
|
||||
.. autoclass:: pysnmp.hlapi.v3arch.asyncio.Udp6TransportTarget
|
||||
:members: setLocalAddress
|
||||
|
||||
Asynchronous: trollius
|
||||
|
@ -156,17 +156,17 @@ Command Generator
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/twisted/manager/cmdgen/getcmd
|
||||
/docs/hlapi/twisted/manager/cmdgen/setcmd
|
||||
/docs/hlapi/twisted/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/twisted/manager/cmdgen/bulkcmd
|
||||
/docs/hlapi/v3arch/twisted/manager/cmdgen/getcmd
|
||||
/docs/hlapi/v3arch/twisted/manager/cmdgen/setcmd
|
||||
/docs/hlapi/v3arch/twisted/manager/cmdgen/nextcmd
|
||||
/docs/hlapi/v3arch/twisted/manager/cmdgen/bulkcmd
|
||||
|
||||
Notification Originator
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/docs/hlapi/twisted/agent/ntforg/notification
|
||||
/docs/hlapi/v3arch/twisted/agent/ntforg/notification
|
||||
|
||||
Transport configuration
|
||||
+++++++++++++++++++++++
|
||||
|
@ -174,7 +174,7 @@ Transport configuration
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autoclass:: pysnmp.hlapi.twisted.UdpTransportTarget
|
||||
.. autoclass:: pysnmp.hlapi.v3arch.twisted.UdpTransportTarget
|
||||
:members: setLocalAddress
|
||||
|
||||
SNMP Engine
|
||||
|
|
|
@ -5,4 +5,4 @@ TRAP/INFORM notification
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncio.sendNotification
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncio.sendNotification
|
|
@ -5,4 +5,4 @@ GETBULK command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncore.bulkCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncio.bulkCmd
|
|
@ -5,4 +5,4 @@ GET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncore.getCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncio.getCmd
|
|
@ -5,4 +5,4 @@ GETNEXT command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.twisted.nextCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncio.nextCmd
|
|
@ -5,4 +5,4 @@ SET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncio.setCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncio.setCmd
|
|
@ -5,4 +5,4 @@ TRAP/INFORM notification
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.twisted.sendNotification
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncore.sendNotification
|
|
@ -5,4 +5,4 @@ GETBULK command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.twisted.bulkCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncore.bulkCmd
|
|
@ -5,4 +5,4 @@ GET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.twisted.getCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncore.getCmd
|
|
@ -5,4 +5,4 @@ GETNEXT command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncio.nextCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncore.nextCmd
|
|
@ -5,4 +5,4 @@ SET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncore.setCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.asyncore.setCmd
|
|
@ -5,4 +5,4 @@ TRAP/INFORM notification
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncore.sendNotification
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.twisted.sendNotification
|
|
@ -5,4 +5,4 @@ GETBULK command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncio.bulkCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.twisted.bulkCmd
|
|
@ -5,4 +5,4 @@ GET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncio.getCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.twisted.getCmd
|
|
@ -5,4 +5,4 @@ GETNEXT command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.asyncore.nextCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.twisted.nextCmd
|
|
@ -5,4 +5,4 @@ SET command
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
.. autofunction:: pysnmp.hlapi.twisted.setCmd
|
||||
.. autofunction:: pysnmp.hlapi.v3arch.twisted.setCmd
|
|
@ -242,7 +242,7 @@ in `SNMPv2-MIB <http://mibs.snmplabs.com/asn1/SNMPv2-MIB>`_ module.
|
|||
By default PySNMP will search your local filesystem for ASN.1 MIB files
|
||||
you refer to. It can also be configured to automatically download
|
||||
them from remote hosts, as
|
||||
:doc:`shown </examples/hlapi/asyncore/sync/manager/cmdgen/mib-tweaks>`
|
||||
:doc:`shown </examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/mib-tweaks>`
|
||||
in the examples. We maintain a
|
||||
`collection <http://mibs.snmplabs.com/asn1/>`_ of ASN.1 MIB modules
|
||||
that you can use in your SNMP projects.
|
||||
|
|
|
@ -50,6 +50,7 @@ operational:
|
|||
MIB download and compilation. That helps visualizing more SNMP objects
|
||||
|
||||
Optional:
|
||||
|
||||
* `pysnmpcrypto <https://pypi.org/project/pysnmpcrypto/>`_,
|
||||
for strong SNMPv3 crypto support
|
||||
|
||||
|
|
|
@ -16,41 +16,72 @@ APIs follow.
|
|||
High-level SNMP
|
||||
---------------
|
||||
|
||||
The so called high-level API (hlapi) 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
|
||||
The high-level API (`hlapi`) is designed to be simple, concise and
|
||||
suitable for the most frequent operations. For that matter, only
|
||||
Command Generator and Notification Originator Applications are
|
||||
wrapped into a nearly one-line Python expression.
|
||||
|
||||
It comes in several flavours: one synchronous and a bunch of bindings to
|
||||
popular asynchronous I/O frameworks. Those varieties of APIs bring
|
||||
subtile differences, mostly to better match particular I/O framework
|
||||
customs. Unless you have a very specific task, the high-level API might
|
||||
solve your SNMP needs.
|
||||
The `hlapi` interfaces come in several flavours: one synchronous
|
||||
and a bunch of asynchronous, adapted to work withing the event loops
|
||||
of popular asynchronous I/O frameworks.
|
||||
|
||||
The other dimension of differences in the `hlapi` APIs is that it wraps
|
||||
two different SNMP implementations - the initial architecture
|
||||
(`RFC1901 <https://tools.ietf.org/html/rfc1901>`_ ..
|
||||
`RFC1905 <https://tools.ietf.org/html/rfc1905>`_) also known as `v1arch`,
|
||||
and the redesigned variant (`RFC3413 <https://tools.ietf.org/html/rfc3413>`_
|
||||
and others) -- `v3arch`.
|
||||
|
||||
.. note::
|
||||
|
||||
The `v1arch` implements SNMP protocol versions 1 and 2c, while `v3arch`
|
||||
implements versions 1, 2c and 3. Whatever new amendments to the SNMP
|
||||
protocol come up, they will be implemented within `v3arch` model.
|
||||
|
||||
The primary reason for maintaining high-level API over both `v1arch` and
|
||||
`v3arch` is performance - `v3arch` machinery is much more functional and complicated
|
||||
internally, that translates to being heavier on resources and therefore slower.
|
||||
|
||||
High-level SNMPv3
|
||||
+++++++++++++++++
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/asyncore/sync/contents
|
||||
/examples/hlapi/v3arch/asyncore/sync/contents
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/asyncore/contents
|
||||
/examples/hlapi/v3arch/asyncore/contents
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/asyncio/contents
|
||||
/examples/hlapi/v3arch/asyncio/contents
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/trollius/contents
|
||||
/examples/hlapi/v3arch/trollius/contents
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/twisted/contents
|
||||
/examples/hlapi/v3arch/twisted/contents
|
||||
|
||||
High-level SNMPv1/v2c
|
||||
+++++++++++++++++++++
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/sync/contents
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/contents
|
||||
|
||||
Native SNMP API
|
||||
---------------
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,40 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/agent/ntforg/multiple-traps-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/agent/ntforg/multiple-traps-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/agent/ntforg/multiple-traps-at-once.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,40 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,18 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,28 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextname.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextname.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextname.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/custom-contextengineid.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,49 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v3-inform.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v3-inform.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/v3-inform.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v3-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v3-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/v3-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Evaluating NOTIFICATION-TYPE
|
||||
----------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
SNMPv1 TRAP variants
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/custom-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/custom-v1-trap.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,84 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/multiple-get-calls.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-v3-security-name.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-v3-security-name.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-v3-security-name.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,48 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
MIB tweaks
|
||||
----------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/waive-mib-lookup.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/waive-mib-lookup.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/waive-mib-lookup.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,30 +0,0 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Modifying variables
|
||||
-------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library-reference </docs/api-reference>`.
|
|
@ -1,72 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
SNMP versions
|
||||
-------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-des.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-des.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-des.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-none-none.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-none-none.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-none-none.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-sha-aes128.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-sha-aes128.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/usm-sha-aes128.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Transport tweaks
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,18 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/trollius/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/trollius/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/trollius/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,29 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/trollius/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/trollius/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/trollius/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,17 +0,0 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/trollius/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -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>`.
|
|
@ -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>`.
|
|
@ -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>`.
|
|
@ -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>`.
|
|
@ -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>`.
|
|
@ -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>`.
|
|
@ -0,0 +1,7 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,49 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,18 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Evaluating NOTIFICATION-TYPE
|
||||
----------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,52 @@
|
|||
|
||||
Asynchronous: asyncore
|
||||
======================
|
||||
|
||||
With :mod:`asyncore` API your scripts get CPU time on :mod:`socket`
|
||||
events being watched for by :mod:`select` dispatcher. Your code
|
||||
live mostly in isolated functions (or any callable objects).
|
||||
|
||||
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/v1arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/modifying-variables
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/table-operations
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/mib-tweaks
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/transport-tweaks
|
||||
/examples/hlapi/v1arch/asyncore/manager/cmdgen/advanced-topics
|
||||
|
||||
The following code sends SNMP TRAP:
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
More examples on Notification Originator API usage follow.
|
||||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/agent/ntforg/common-notifications
|
||||
/examples/hlapi/v1arch/asyncore/agent/ntforg/evaluating-notification-type
|
||||
/examples/hlapi/v1arch/asyncore/agent/ntforg/advanced-topics
|
||||
|
||||
More sophisticated SNMP operations can still be performed with
|
||||
PySNMP via its Native API to Standard SNMP Applications.
|
|
@ -0,0 +1,39 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,48 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
MIB tweaks
|
||||
----------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Modifying variables
|
||||
-------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library-reference </docs/api-reference>`.
|
|
@ -0,0 +1,30 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
.. comment
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,50 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Table operations
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Transport tweaks
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,18 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,59 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,17 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Evaluating NOTIFICATION-TYPE
|
||||
----------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,74 @@
|
|||
|
||||
Synchronous SNMP (v1arch)
|
||||
=========================
|
||||
|
||||
This chapter illustrates various uses of the synchronous high-level
|
||||
programming interface to some of Standard SNMP Applications, along the lines
|
||||
of `RFC1905 <https://tools.ietf.org/html/rfc1905>`_.
|
||||
|
||||
.. 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 the example
|
||||
code does.
|
||||
|
||||
Here's a quick example on a simple SNMP GET by high-level API:
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
.. note::
|
||||
|
||||
If MIB lookup is required (e.g. when :py:class:`~pysnmp.smi.rfc1902.ObjectIdentity`,
|
||||
:py:class:`~pysnmp.smi.rfc1902.ObjectType` or :py:class:`~pysnmp.smi.rfc1902.NotificationType`
|
||||
objects being used), the `lookupMib=True` should also be passed.
|
||||
|
||||
The following code performs a series of SNMP GETNEXT operations
|
||||
fetching a table of SNMP variables from SNMP Agent:
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
More examples on Command Generator API usage follow.
|
||||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/modifying-variables
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/table-operations
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/mib-tweaks
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/transport-tweaks
|
||||
/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/advanced-topics
|
||||
|
||||
The following code sends SNMP TRAP:
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
More examples on Notification Originator API usage follow.
|
||||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/common-notifications
|
||||
/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/evaluating-notification-type
|
||||
|
||||
More specific SNMP operations can still be performed with PySNMP via
|
||||
its Native API to Standard SNMP Applications.
|
|
@ -0,0 +1,39 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,48 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
MIB tweaks
|
||||
----------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Modifying variables
|
||||
-------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library-reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
SNMP versions
|
||||
-------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,50 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Table operations
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Transport tweaks
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,18 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,17 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,17 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -18,11 +18,11 @@ 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/asyncio/manager/cmdgen/v1-get.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/v1-get.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -30,11 +30,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/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -42,18 +42,18 @@ More examples on Command Generator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncio/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/asyncio/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/asyncio/manager/cmdgen/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncio/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/v3arch/asyncio/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/v3arch/asyncio/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/asyncio/agent/ntforg/default-v1-trap.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -61,8 +61,8 @@ More examples on Notification Originator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncio/agent/ntforg/common-notifications
|
||||
/examples/hlapi/asyncio/agent/ntforg/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncio/agent/ntforg/common-notifications
|
||||
/examples/hlapi/v3arch/asyncio/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.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,17 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,40 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,17 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -12,11 +12,11 @@ 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/asyncore/manager/cmdgen/v2c-get.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/v2c-get.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -24,11 +24,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/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -36,18 +36,18 @@ More examples on Command Generator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncore/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/asyncore/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/asyncore/manager/cmdgen/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncore/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/v3arch/asyncore/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/v3arch/asyncore/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/asyncore/agent/ntforg/default-v1-trap.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/agent/ntforg/default-v1-trap.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -55,8 +55,8 @@ More examples on Notification Originator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncore/agent/ntforg/common-notifications
|
||||
/examples/hlapi/asyncore/agent/ntforg/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncore/agent/ntforg/common-notifications
|
||||
/examples/hlapi/v3arch/asyncore/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.
|
|
@ -0,0 +1,40 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Various SNMP versions
|
||||
----------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,18 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,28 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Notification Originator
|
||||
--------------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,49 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Common notifications
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Evaluating NOTIFICATION-TYPE
|
||||
----------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
SNMPv1 TRAP variants
|
||||
--------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
Synchronous SNMP
|
||||
================
|
||||
Synchronous SNMP (v3arch)
|
||||
=========================
|
||||
|
||||
This chapter illustrates various uses of the synchronous high-level
|
||||
programming interface to some of Standard SNMP Applications, as defined in
|
||||
|
@ -11,15 +11,16 @@ programming interface to some of Standard SNMP Applications, as defined in
|
|||
|
||||
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
|
||||
are familiar with Net-SNMP tools, better understanding what the example code
|
||||
does.
|
||||
|
||||
Here's a quick example on a simple SNMP GET by high-level API:
|
||||
|
||||
.. include:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -27,11 +28,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/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -39,22 +40,22 @@ More examples on Command Generator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/modifying-variables
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/table-operations
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/mib-tweaks
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/transport-tweaks
|
||||
/examples/hlapi/asyncore/sync/manager/cmdgen/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/snmp-versions
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/modifying-variables
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/walking-operations
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/table-operations
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/mib-tweaks
|
||||
/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/transport-tweaks
|
||||
/examples/hlapi/v3arch/asyncore/sync/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/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: options:
|
||||
:end-before: Functionally
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
|
@ -62,10 +63,10 @@ More examples on Notification Originator API usage follow.
|
|||
|
||||
.. toctree::
|
||||
|
||||
/examples/hlapi/asyncore/sync/agent/ntforg/common-notifications
|
||||
/examples/hlapi/asyncore/sync/agent/ntforg/snmp-v1-trap-variants
|
||||
/examples/hlapi/asyncore/sync/agent/ntforg/evaluating-notification-type
|
||||
/examples/hlapi/asyncore/sync/agent/ntforg/advanced-topics
|
||||
/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/common-notifications
|
||||
/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/snmp-v1-trap-variants
|
||||
/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/evaluating-notification-type
|
||||
/examples/hlapi/v3arch/asyncore/sync/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.
|
|
@ -0,0 +1,84 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Advanced Command Generator
|
||||
--------------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,48 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
MIB tweaks
|
||||
----------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Modifying variables
|
||||
-------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library-reference </docs/api-reference>`.
|
|
@ -0,0 +1,72 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
SNMP versions
|
||||
-------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py>` script.
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,50 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Table operations
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py>` script.
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,29 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Transport tweaks
|
||||
----------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py>` script.
|
||||
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
|
@ -0,0 +1,18 @@
|
|||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Walking operations
|
||||
------------------
|
||||
|
||||
.. include:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """
|
||||
:end-before: """#
|
||||
|
||||
.. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py
|
||||
:start-after: """#
|
||||
:language: python
|
||||
|
||||
:download:`Download</../../examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py>` script.
|
||||
|
||||
|
||||
See also: :doc:`library reference </docs/api-reference>`.
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue