From aaa39dbb5f6b9a5cc494a096397869390801b503 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Mon, 25 Feb 2019 22:01:06 +0100 Subject: Fix some ntforg example scripts not using trapOID --- examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py | 2 +- examples/v3arch/asyncore/agent/ntforg/v1-trap.py | 2 +- 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'), -- cgit v1.2.1