diff options
author | elie <elie> | 2013-03-15 20:44:59 +0000 |
---|---|---|
committer | elie <elie> | 2013-03-15 20:44:59 +0000 |
commit | 5732e9f42bb48faaf9f43282000547016ce87747 (patch) | |
tree | c0776ee83ea743c1034af0caf93128473b616628 /examples/v3arch | |
parent | 14342b12b11dc9a8d28e47100b473cfd3522e6ec (diff) | |
download | pysnmp-git-5732e9f42bb48faaf9f43282000547016ce87747.tar.gz |
cosmetic fix to printout the exact OID as pointed out by errorIndex
Diffstat (limited to 'examples/v3arch')
13 files changed, 13 insertions, 13 deletions
diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py index 6612384f..1309c760 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py +++ b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py @@ -58,7 +58,7 @@ def cbFun(sendRequestHandle, elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py index d9037990..5c9e19c7 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py +++ b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py @@ -59,7 +59,7 @@ def cbFun(sendRequestHandle, elif errorStatus and errorStatus != 2: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/fetch-variables-over-ipv6.py b/examples/v3arch/asyncore/manager/cmdgen/fetch-variables-over-ipv6.py index 8d235cb2..88fa5841 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/fetch-variables-over-ipv6.py +++ b/examples/v3arch/asyncore/manager/cmdgen/fetch-variables-over-ipv6.py @@ -57,7 +57,7 @@ def cbFun(sendRequestHandle, if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py b/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py index f478bc6e..a9be86ec 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py @@ -58,7 +58,7 @@ def cbFun(sendRequesthandle, errorIndication, errorStatus, errorIndex, if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py b/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py index af66b9a6..58a02325 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py @@ -56,7 +56,7 @@ def cbFun(sendRequesthandle, errorIndication, errorStatus, errorIndex, if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py index bc96083f..b2cf9ad0 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py @@ -58,7 +58,7 @@ def cbFun(sendRequestHandle, if errorStatus and errorStatus != 2: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py b/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py index c3142f9e..241595a6 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py +++ b/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py @@ -60,7 +60,7 @@ def cbFun(sendRequestHandle, if errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py index c8d2b09d..53fd983a 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py +++ b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py @@ -59,7 +59,7 @@ def cbFun(sendRequestHandle, if errorStatus and errorStatus != 2: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBindTable[-1][int(errorIndex)-1] or '?' + errorIndex and varBindTable[-1][int(errorIndex)-1][0] or '?' ) ) return # stop on error diff --git a/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py b/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py index a452cab5..8a894c92 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py +++ b/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py @@ -57,7 +57,7 @@ def cbFun(sendRequestHandle, elif errorStatus and errorStatus != 2: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py index 45a14305..dde6a766 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py +++ b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py @@ -56,7 +56,7 @@ def cbFun(sendRequestHandle, elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py index 0d71ab6d..ebcf7561 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py +++ b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py @@ -56,7 +56,7 @@ def cbFun(sendRequestHandle, elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/v1-get.py b/examples/v3arch/asyncore/manager/cmdgen/v1-get.py index 558a4e9d..2713cf4d 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/v1-get.py +++ b/examples/v3arch/asyncore/manager/cmdgen/v1-get.py @@ -56,7 +56,7 @@ def cbFun(sendRequestHandle, elif errorStatus and errorStatus != 2: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: diff --git a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py index ea409ea6..8a7ceb73 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py +++ b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py @@ -55,7 +55,7 @@ def cbFun(sendRequestHandle, elif errorStatus: print('%s at %s' % ( errorStatus.prettyPrint(), - errorIndex and varBinds[-1][int(errorIndex)-1] or '?' + errorIndex and varBinds[int(errorIndex)-1][0] or '?' ) ) else: |