diff options
author | elie <elie> | 2010-05-04 10:55:13 +0000 |
---|---|---|
committer | elie <elie> | 2010-05-04 10:55:13 +0000 |
commit | e5f421b3785894c3f478434904059be7ac316dad (patch) | |
tree | ed5eba54aae987a81996f632356331bded74a4b2 /examples/v3arch/manager | |
parent | fc114b65f56775f71c2c01a66a3aac1e566f6e44 (diff) | |
download | pysnmp-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.py | 4 |
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: |