diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py b/examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py index abfb991e..61507a43 100644 --- a/examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py +++ b/examples/v3arch/asyncore/manager/ntfrcv/regexp-community-name.py @@ -14,6 +14,15 @@ # $ snmptrap -v1 -c rollover 127.0.0.1 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 1 123 1.3.6.1.2.1.1.1.0 s test # $ snmpinform -v2c -c glove 127.0.0.1 123 1.3.6.1.6.3.1.1.5.1 # +# The Notification Receiver below taps on v1/v2c SNMP security module +# to deliver certains values, normally internal to SNMP Engine, up to +# the context of user application. +# +# This script examines the value of CommunityName, as it came from peer SNMP +# Engine, and may modify it to match the only locally configured CommunityName +# 'public'. This effectively makes NotificationReceiver accepting messages with +# CommunityName's, not explicitly configured to local SNMP Engine. +# from pysnmp.entity import engine, config from pysnmp.carrier.asynsock.dgram import udp from pysnmp.entity.rfc3413 import ntfrcv |