diff options
author | elie <elie> | 2014-01-25 16:45:36 +0000 |
---|---|---|
committer | elie <elie> | 2014-01-25 16:45:36 +0000 |
commit | 9ac3ad1b3d0cd221cfc58d0d80cfd2b3ad690782 (patch) | |
tree | 9a5568e36d20686d03301d27f68f5fcaccedeb18 /examples | |
parent | 9f53657a29fa470fdc335ad56e497f9cee129f54 (diff) | |
download | pysnmp-9ac3ad1b3d0cd221cfc58d0d80cfd2b3ad690782.tar.gz |
updated
Diffstat (limited to 'examples')
-rw-r--r-- | examples/v3arch/manager/ntfrcv/v2c-with-regexp-community-name.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/v3arch/manager/ntfrcv/v2c-with-regexp-community-name.py b/examples/v3arch/manager/ntfrcv/v2c-with-regexp-community-name.py index abfb991..61507a4 100644 --- a/examples/v3arch/manager/ntfrcv/v2c-with-regexp-community-name.py +++ b/examples/v3arch/manager/ntfrcv/v2c-with-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 |