summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-25 22:01:06 +0100
committerIlya Etingof <etingof@gmail.com>2019-02-25 22:01:06 +0100
commitaaa39dbb5f6b9a5cc494a096397869390801b503 (patch)
treea8dd252931eb5298ff61e0219fd68b785628e402
parent2f04f1834d21da2fcb58e158ea237acf79b7eb17 (diff)
downloadpysnmp-git-aaa39dbb5f6b9a5cc494a096397869390801b503.tar.gz
Fix some ntforg example scripts not using trapOID
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py2
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v1-trap.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
index 732c567a..7a124a36 100644
--- a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
+++ b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
@@ -80,7 +80,7 @@ sendRequestHandle = ntfOrg.sendVarBinds(
'my-notification', # notification targets
None, '', # contextEngineId, contextName
# var-binds: SNMPv2-MIB::coldStart, ...
- [((1, 3, 6, 1, 6, 3, 1, 1, 5, 1), v2c.ObjectIdentifier((1, 3, 6, 1, 6, 3, 1, 1, 5, 1))),
+ [((1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0), v2c.ObjectIdentifier((1, 3, 6, 1, 6, 3, 1, 1, 5, 1))),
((1, 3, 6, 1, 2, 1, 1, 5, 0), v2c.OctetString('system name'))],
cbFun
)
diff --git a/examples/v3arch/asyncore/agent/ntforg/v1-trap.py b/examples/v3arch/asyncore/agent/ntforg/v1-trap.py
index 24df282f..a671fd4b 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v1-trap.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v1-trap.py
@@ -80,7 +80,7 @@ ntfOrg.sendVarBinds(
v2c.TimeTicks(12345)),
# trap OID: Generic Trap #6 (enterpriseSpecific)
# and Specific Trap 432
- (v2c.ObjectIdentifier('1.3.6.1.6.3.1.1.5.1'),
+ (v2c.ObjectIdentifier('1.3.6.1.6.3.1.1.4.1.0'),
v2c.ObjectIdentifier('1.3.6.1.4.1.20408.4.1.1.2.0.432')),
# Agent Address with '127.0.0.1'
(v2c.ObjectIdentifier('1.3.6.1.6.3.18.1.3.0'),