summaryrefslogtreecommitdiff
path: root/examples/v3arch/manager
diff options
context:
space:
mode:
authorelie <elie>2010-05-04 10:55:13 +0000
committerelie <elie>2010-05-04 10:55:13 +0000
commite5f421b3785894c3f478434904059be7ac316dad (patch)
treeed5eba54aae987a81996f632356331bded74a4b2 /examples/v3arch/manager
parentfc114b65f56775f71c2c01a66a3aac1e566f6e44 (diff)
downloadpysnmp-e5f421b3785894c3f478434904059be7ac316dad.tar.gz
SNMPv1 response may contain noSuchName error *and* SNMPv2c exception,
so we ignore noSuchName errorStatus and process noSuchObject/noSuchInstance exception
Diffstat (limited to 'examples/v3arch/manager')
-rw-r--r--examples/v3arch/manager/nextgen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/v3arch/manager/nextgen.py b/examples/v3arch/manager/nextgen.py
index 8de18e9..f0b8878 100644
--- a/examples/v3arch/manager/nextgen.py
+++ b/examples/v3arch/manager/nextgen.py
@@ -37,7 +37,9 @@ def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex,
if errorIndication:
print errorIndication
return
- if errorStatus:
+ # SNMPv1 response may contain noSuchName error *and* SNMPv2c exception,
+ # so we ignore noSuchName error here
+ if errorStatus and errorStatus != 2:
print errorStatus.prettyPrint()
return
for varBindRow in varBindTable: