summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorelie <elie>2013-03-15 20:44:59 +0000
committerelie <elie>2013-03-15 20:44:59 +0000
commit5732e9f42bb48faaf9f43282000547016ce87747 (patch)
treec0776ee83ea743c1034af0caf93128473b616628 /examples
parent14342b12b11dc9a8d28e47100b473cfd3522e6ec (diff)
downloadpysnmp-git-5732e9f42bb48faaf9f43282000547016ce87747.tar.gz
cosmetic fix to printout the exact OID as pointed out by errorIndex
Diffstat (limited to 'examples')
-rw-r--r--examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py2
-rw-r--r--examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-index.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py2
-rw-r--r--examples/hlapi/asyncore/sync/manager/cmdgen/v2c-getbulk.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/fetch-variables-over-ipv6.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/v1-get.py2
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/v2c-set.py2
33 files changed, 33 insertions, 33 deletions
diff --git a/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py b/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py
index 9f4a2acd..85dad1b2 100644
--- a/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py
+++ b/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py
@@ -53,7 +53,7 @@ def cbFun(sendRequestHandle, errorIndication, errorStatus, errorIndex,
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
return 1
diff --git a/examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py b/examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py
index 0c35504d..761bdaa5 100644
--- a/examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py
+++ b/examples/hlapi/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py
@@ -48,7 +48,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
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py b/examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
index 53dfd779..13aa413b 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py
@@ -25,7 +25,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
index 8acbe7af..12aea8a3 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py
@@ -31,7 +31,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py
index d865bc4b..20a0c094 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py
@@ -30,7 +30,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
index 99205303..3672f5db 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
@@ -31,7 +31,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py b/examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
index dba8174d..452c8113 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/fetch-variables-over-ipv6.py
@@ -28,7 +28,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-index.py b/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
index 9720b6eb..065509d3 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-index.py
@@ -27,7 +27,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py b/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
index 9d06642a..df7dafcd 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
@@ -27,7 +27,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py b/examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py
index 65f46b24..7291ee8f 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py
@@ -33,7 +33,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py b/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py
index 245a769e..a9d4f19f 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py
@@ -32,7 +32,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py b/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py
index d148e24f..40f0f144 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py
@@ -26,7 +26,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py b/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
index e8ec42f2..6354572c 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py
@@ -29,7 +29,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
index 46c5ae4e..e3e566b9 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-mib.py
@@ -29,7 +29,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py b/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
index 2b1bf45b..9977164c 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py
@@ -31,7 +31,7 @@ else:
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 '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py b/examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
index d81ceabc..1b3e1c38 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py
@@ -28,7 +28,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py b/examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py
index 65d31986..35a6d23c 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/usm-md5-none.py
@@ -25,7 +25,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py b/examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
index 6bfc6fbc..34ae8817 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/v1-get.py
@@ -27,7 +27,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py b/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py
index 60bf91f4..fa2a263c 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-get.py
@@ -26,7 +26,7 @@ else:
if errorStatus:
print('%s at %s' % (
errorStatus.prettyPrint(),
- errorIndex and varBinds[int(errorIndex)-1] or '?'
+ errorIndex and varBinds[int(errorIndex)-1][0] or '?'
)
)
else:
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-getbulk.py b/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-getbulk.py
index 731c9cff..6b8952ac 100644
--- a/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-getbulk.py
+++ b/examples/hlapi/asyncore/sync/manager/cmdgen/v2c-getbulk.py
@@ -28,7 +28,7 @@ else:
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 '?'
)
)
else:
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: