blob: 6ec5accb34a8e9b8fee62f7d7c564c42edd3b6ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
.. toctree::
:maxdepth: 2
Evaluating NOTIFICATION-TYPE
----------------------------
SNMP SMI defines notifications as a TRAP or INFORM PDU containing
the indication of type (snmpTrapOID) and a set of MIB variables
(Managed Objects Instances) fetched from Agent's MIB at the moment
of notification.
Consequently, sending specific NOTIFICATION-TYPE implies including certain
set of OIDs into PDU. PySNMP offers this facility through NotificationType
class.
.. include:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py
:start-after: """
:end-before: """#
.. literalinclude:: /../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py
:start-after: """#
:language: python
:download:`Download</../../examples/v3arch/asyncore/agent/ntforg/trap-v2c-with-objects.py>` script.
|