Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > e07491bf698d5f7e84e42e53c8657131 > files > 746

python-pysnmp-4.4.8-1.mga7.noarch.rpm

.. toctree::
   :maxdepth: 2

Evaluating NOTIFICATION-TYPE
----------------------------

SNMP SMI defines notifications as a TRAP or INFORM PDU containing
the indication of type (snmpTrapOID) and a set of MIB variables
(Managed Objects Instances) fetched from Agent's MIB at the moment
of notification.

Consequently, sending specific NOTIFICATION-TYPE implies including certain
set of OIDs into PDU. PySNMP offers this facility through NotificationType
class.

.. include:: /../../examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
   :start-after: """
   :end-before: """#

.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
   :start-after: """#
   :language: python

:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py>` script.


See also: :doc:`library reference </docs/api-reference>`.