summaryrefslogtreecommitdiff
path: root/examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py
diff options
context:
space:
mode:
authorelie <elie>2013-11-09 22:01:33 +0000
committerelie <elie>2013-11-09 22:01:33 +0000
commit704974e090122b73ef2ad59f23aa0b9e0e50023e (patch)
treef3331d4dcdd2f9aa3eb4e868410dc056e6dd660e /examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py
parenteb44ada0eb7aaeb6be4026abe89af8420a942a9a (diff)
downloadpysnmp-704974e090122b73ef2ad59f23aa0b9e0e50023e.tar.gz
Execution Observer facility implemented to give app an inside view
of SNMP engine inner workings. This is thought to be a generic framework for viewing (and modifying) various internal states of pysnmp engine. Previously introduced non-RFC APIs (like getting peer's transport endpoint) will be gradually migrated to this new framework.
Diffstat (limited to 'examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py')
-rw-r--r--examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py b/examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py
index 6421672..1192427 100644
--- a/examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py
+++ b/examples/v3arch/twisted/manager/ntfrcv/v3-multiple-users.py
@@ -89,12 +89,9 @@ config.addV3User(
# -- end of SNMPv3/USM setup
# Callback function for receiving notifications
-def cbFun(snmpEngine,
- stateReference,
- contextEngineId, contextName,
- varBinds,
- cbCtx):
- print('Notification received, ContextEngineId "%s", ContextName "%s"' % (
+def cbFun(snmpEngine, stateReference, contextEngineId, contextName,
+ varBinds, cbCtx):
+ print('Notification from ContextEngineId "%s", ContextName "%s"' % (
contextEngineId.prettyPrint(), contextName.prettyPrint()
)
)