From 47924797214dd70ca948b93e487df0ec5a7b579f Mon Sep 17 00:00:00 2001 From: elie Date: Sun, 27 Sep 2015 11:47:50 +0000 Subject: another rearrangement --- docs/source/docs/contents.rst | 61 ++++++++++++++++------ .../asyncore/sync/agent/ntforg/notification.rst | 8 +++ .../hlapi/asyncore/sync/manager/cmdgen/bulkcmd.rst | 8 +++ .../hlapi/asyncore/sync/manager/cmdgen/getcmd.rst | 8 +++ .../hlapi/asyncore/sync/manager/cmdgen/nextcmd.rst | 8 +++ .../hlapi/asyncore/sync/manager/cmdgen/setcmd.rst | 8 +++ 6 files changed, 85 insertions(+), 16 deletions(-) create mode 100644 docs/source/docs/hlapi/asyncore/sync/agent/ntforg/notification.rst create mode 100644 docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/bulkcmd.rst create mode 100644 docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/getcmd.rst create mode 100644 docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/nextcmd.rst create mode 100644 docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/setcmd.rst diff --git a/docs/source/docs/contents.rst b/docs/source/docs/contents.rst index d2447f1..ce11a00 100644 --- a/docs/source/docs/contents.rst +++ b/docs/source/docs/contents.rst @@ -13,6 +13,11 @@ It will let you perform SNMP GET/SET/WALK and TRAP/INFORM operations by pasting code snippets from PySNMP documentation and example scripts right into your Python interactive session. +Most of SNMP operations involve packet exchange over network. PySNMP +is shipped with a set of bindings to popular asynchronous Python I/O +frameworks that let you run PySNMP in parallel with other tasks your +application may perform. + Synchronous SNMP ---------------- @@ -25,29 +30,31 @@ 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/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 Notification Originator .. toctree:: :maxdepth: 2 - /docs/hlapi/asyncore/agent/ntforg/notification + /docs/hlapi/asyncore/sync/agent/ntforg/notification Transport configuration ++++++++++++++++++++++++ + +The following shortcut classes convey configuration information to +SNMP engine's Local Configuration Datastore (:RFC:`2271#section-3.4.2`) +as well as to underlying socket API. Once committed to LCD, SNMP engine +saves its configuration for the lifetime of SNMP engine object. .. toctree:: :maxdepth: 2 - /docs/hlapi/asyncore/transport-configuration - -Most of SNMP operations involve packet exchange over network. PySNMP -is shipped with a set of bindings to popular asynchronous Python I/O -frameworks that let you run PySNMP in parallel with other tasks your -application may perform. +.. autoclass:: pysnmp.hlapi.UdpTransportTarget +.. autoclass:: pysnmp.hlapi.Udp6TransportTarget Asynchronous: asyncore ---------------------- @@ -56,11 +63,31 @@ The :mod:`asyncore` module is in Python standard library since ancient times. Main loop is built around :mod:`select` dispatcher, user code is invoked through callback callables. +Command Generator + .. toctree:: :maxdepth: 2 - /docs/hlapi/asyncore/manager/cmdgen/async-command-generator - /docs/hlapi/asyncore/agent/ntforg/async-notification-originator + /docs/hlapi/asyncore/manager/cmdgen/getcmd + /docs/hlapi/asyncore/manager/cmdgen/setcmd + /docs/hlapi/asyncore/manager/cmdgen/nextcmd + /docs/hlapi/asyncore/manager/cmdgen/bulkcmd + +Notification Originator + +.. toctree:: + :maxdepth: 2 + + /docs/hlapi/asyncore/agent/ntforg/notification + +Transport configuration ++++++++++++++++++++++++ + +.. toctree:: + :maxdepth: 2 + +.. autoclass:: pysnmp.hlapi.asyncore.UdpTransportTarget +.. autoclass:: pysnmp.hlapi.asyncore.Udp6TransportTarget .. _asyncio: @@ -90,11 +117,13 @@ Notification Originator /docs/hlapi/asyncio/agent/ntforg/notification Transport configuration ++++++++++++++++++++++++ .. toctree:: :maxdepth: 2 - /docs/hlapi/asyncio/transport-configuration +.. autoclass:: pysnmp.hlapi.asyncio.UdpTransportTarget +.. autoclass:: pysnmp.hlapi.asyncio.Udp6TransportTarget .. _trollius: @@ -137,12 +166,12 @@ Notification Originator /docs/hlapi/twisted/agent/ntforg/notification Transport configuration ++++++++++++++++++++++++ .. toctree:: :maxdepth: 2 - /docs/hlapi/twisted/transport-configuration - +.. autoclass:: pysnmp.hlapi.twisted.UdpTransportTarget SNMP Engine ----------- diff --git a/docs/source/docs/hlapi/asyncore/sync/agent/ntforg/notification.rst b/docs/source/docs/hlapi/asyncore/sync/agent/ntforg/notification.rst new file mode 100644 index 0000000..619b13d --- /dev/null +++ b/docs/source/docs/hlapi/asyncore/sync/agent/ntforg/notification.rst @@ -0,0 +1,8 @@ + +TRAP/INFORM notification +======================== + +.. toctree:: + :maxdepth: 2 + +.. autofunction:: pysnmp.hlapi.sendNotification diff --git a/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/bulkcmd.rst b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/bulkcmd.rst new file mode 100644 index 0000000..5791755 --- /dev/null +++ b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/bulkcmd.rst @@ -0,0 +1,8 @@ + +GETBULK command +=============== + +.. toctree:: + :maxdepth: 2 + +.. autofunction:: pysnmp.hlapi.bulkCmd diff --git a/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/getcmd.rst b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/getcmd.rst new file mode 100644 index 0000000..8d344e9 --- /dev/null +++ b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/getcmd.rst @@ -0,0 +1,8 @@ + +GET command +=========== + +.. toctree:: + :maxdepth: 2 + +.. autofunction:: pysnmp.hlapi.getCmd diff --git a/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/nextcmd.rst b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/nextcmd.rst new file mode 100644 index 0000000..6b8dd6b --- /dev/null +++ b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/nextcmd.rst @@ -0,0 +1,8 @@ + +GETNEXT command +=============== + +.. toctree:: + :maxdepth: 2 + +.. autofunction:: pysnmp.hlapi.nextCmd diff --git a/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/setcmd.rst b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/setcmd.rst new file mode 100644 index 0000000..09e6ad5 --- /dev/null +++ b/docs/source/docs/hlapi/asyncore/sync/manager/cmdgen/setcmd.rst @@ -0,0 +1,8 @@ + +SET command +=========== + +.. toctree:: + :maxdepth: 2 + +.. autofunction:: pysnmp.hlapi.setCmd -- cgit v1.2.1