summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2013-03-15 20:44:59 +0000
committerelie <elie>2013-03-15 20:44:59 +0000
commit11abdaef66b3b2be7e21de51ab5ac44a43f18112 (patch)
treee0d82dfbd0f14704aa23d01dd764a3390174373d
parent989a6dbe7394ff8276bc8a8e7c9d8dacddadc495 (diff)
downloadpysnmp-11abdaef66b3b2be7e21de51ab5ac44a43f18112.tar.gz
cosmetic fix to printout the exact OID as pointed out by errorIndex
-rw-r--r--CHANGES4
-rw-r--r--examples/v3arch/manager/cmdgen/get-v1.py2
-rw-r--r--examples/v3arch/manager/cmdgen/get-v2c-custom-timeout.py2
-rw-r--r--examples/v3arch/manager/cmdgen/get-v3-custom-context.py2
-rw-r--r--examples/v3arch/manager/cmdgen/get-v3.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getbulk-v2c.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getbulk-v3.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getnext-v1.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getnext-v2c-from-specific-address.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getnext-v3-over-ipv6.py2
-rw-r--r--examples/v3arch/manager/cmdgen/getnext-v3-pull-subtree.py2
-rw-r--r--examples/v3arch/manager/cmdgen/set-v1.py2
-rw-r--r--examples/v3arch/manager/cmdgen/set-v2c.py2
-rw-r--r--examples/v3arch/manager/cmdgen/set-v3.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v1.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v2c.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-index.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getbulk-v2c.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-v1.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-v2c.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/set-v1-multiple-values.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py2
-rw-r--r--examples/v3arch/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py2
35 files changed, 36 insertions, 36 deletions
diff --git a/CHANGES b/CHANGES
index 419e9fb..3d9460b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,11 +7,11 @@ Revision 4.2.5rc0
- Standard SNMP Apps and built-in proxy now ignores malformed errorIndex
value.
- Built-in logging now includes timestamps.
-- Missing import added to oneliner auth module.
- The $PYSNMP_MIB_DIR & $PYSNMP_MIB_DIRS & $PYSNMP_MIB_PKGS path separator
made platform-specific.
- Typos fixed in error-status constants at CommandResponder
-- Cosmetic changes to Native API's GET/SET example scripts.
+- Missing import added to oneliner auth module.
+- Cosmetic changes to v3arch example scripts.
Revision 4.2.4
--------------
diff --git a/examples/v3arch/manager/cmdgen/get-v1.py b/examples/v3arch/manager/cmdgen/get-v1.py
index 558a4e9..2713cf4 100644
--- a/examples/v3arch/manager/cmdgen/get-v1.py
+++ b/examples/v3arch/manager/cmdgen/get-v1.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/manager/cmdgen/get-v2c-custom-timeout.py b/examples/v3arch/manager/cmdgen/get-v2c-custom-timeout.py
index d903799..5c9e19c 100644
--- a/examples/v3arch/manager/cmdgen/get-v2c-custom-timeout.py
+++ b/examples/v3arch/manager/cmdgen/get-v2c-custom-timeout.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/manager/cmdgen/get-v3-custom-context.py b/examples/v3arch/manager/cmdgen/get-v3-custom-context.py
index 6612384..1309c76 100644
--- a/examples/v3arch/manager/cmdgen/get-v3-custom-context.py
+++ b/examples/v3arch/manager/cmdgen/get-v3-custom-context.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/manager/cmdgen/get-v3.py b/examples/v3arch/manager/cmdgen/get-v3.py
index 45a1430..dde6a76 100644
--- a/examples/v3arch/manager/cmdgen/get-v3.py
+++ b/examples/v3arch/manager/cmdgen/get-v3.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/manager/cmdgen/getbulk-v2c.py b/examples/v3arch/manager/cmdgen/getbulk-v2c.py
index af66b9a..58a0232 100644
--- a/examples/v3arch/manager/cmdgen/getbulk-v2c.py
+++ b/examples/v3arch/manager/cmdgen/getbulk-v2c.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/manager/cmdgen/getbulk-v3.py b/examples/v3arch/manager/cmdgen/getbulk-v3.py
index f478bc6..a9be86e 100644
--- a/examples/v3arch/manager/cmdgen/getbulk-v3.py
+++ b/examples/v3arch/manager/cmdgen/getbulk-v3.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/manager/cmdgen/getnext-v1.py b/examples/v3arch/manager/cmdgen/getnext-v1.py
index bc96083..b2cf9ad 100644
--- a/examples/v3arch/manager/cmdgen/getnext-v1.py
+++ b/examples/v3arch/manager/cmdgen/getnext-v1.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/manager/cmdgen/getnext-v2c-from-specific-address.py b/examples/v3arch/manager/cmdgen/getnext-v2c-from-specific-address.py
index c8d2b09..53fd983 100644
--- a/examples/v3arch/manager/cmdgen/getnext-v2c-from-specific-address.py
+++ b/examples/v3arch/manager/cmdgen/getnext-v2c-from-specific-address.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/manager/cmdgen/getnext-v3-over-ipv6.py b/examples/v3arch/manager/cmdgen/getnext-v3-over-ipv6.py
index 8d235cb..88fa584 100644
--- a/examples/v3arch/manager/cmdgen/getnext-v3-over-ipv6.py
+++ b/examples/v3arch/manager/cmdgen/getnext-v3-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/manager/cmdgen/getnext-v3-pull-subtree.py b/examples/v3arch/manager/cmdgen/getnext-v3-pull-subtree.py
index c3142f9..241595a 100644
--- a/examples/v3arch/manager/cmdgen/getnext-v3-pull-subtree.py
+++ b/examples/v3arch/manager/cmdgen/getnext-v3-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/manager/cmdgen/set-v1.py b/examples/v3arch/manager/cmdgen/set-v1.py
index a452cab..8a894c9 100644
--- a/examples/v3arch/manager/cmdgen/set-v1.py
+++ b/examples/v3arch/manager/cmdgen/set-v1.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/manager/cmdgen/set-v2c.py b/examples/v3arch/manager/cmdgen/set-v2c.py
index ea409ea..8a7ceb7 100644
--- a/examples/v3arch/manager/cmdgen/set-v2c.py
+++ b/examples/v3arch/manager/cmdgen/set-v2c.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:
diff --git a/examples/v3arch/manager/cmdgen/set-v3.py b/examples/v3arch/manager/cmdgen/set-v3.py
index 0d71ab6..ebcf756 100644
--- a/examples/v3arch/manager/cmdgen/set-v3.py
+++ b/examples/v3arch/manager/cmdgen/set-v3.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/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py
index 9f4a2ac..85dad1b 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-async-multiple-transports-and-protocols.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/v3arch/oneliner/manager/cmdgen/get-v1.py b/examples/v3arch/oneliner/manager/cmdgen/get-v1.py
index 6bfc6fb..34ae881 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v1.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v1.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/v3arch/oneliner/manager/cmdgen/get-v2c.py b/examples/v3arch/oneliner/manager/cmdgen/get-v2c.py
index 60bf91f..fa2a263 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v2c.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v2c.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/v3arch/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py
index dba8174..452c811 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v3-over-ipv6-with-mib-lookup.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/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-index.py b/examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-index.py
index 9720b6e..065509d 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-index.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v3-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/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py b/examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py
index 9d06642..df7dafc 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v3-table-object-by-multiple-indices.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v3-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/v3arch/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py
index 65d3198..35a6d23 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/get-v3-with-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/get-v3-with-mib-lookup.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/v3arch/oneliner/manager/cmdgen/getbulk-v2c.py b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v2c.py
index 731c9cf..6b8952a 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getbulk-v2c.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v2c.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/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py
index 65f46b2..7291ee8 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-over-ipv6-with-mib-lookup.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/v3arch/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py
index 9920530..3672f5d 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getbulk-v3-with-custom-mib-path-and-options.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/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py
index 0c35504..761bdaa 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-async-multiple-transports-and-protocols.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/v3arch/oneliner/manager/cmdgen/getnext-v1.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-v1.py
index 2b1bf45..9977164 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-v1.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-v1.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/v3arch/oneliner/manager/cmdgen/getnext-v2c.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-v2c.py
index d148e24..40f0f14 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-v2c.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-v2c.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/v3arch/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py
index e8ec42f..6354572 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-over-ipv6-with-mib-lookup.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/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py
index 46c5ae4..e3e566b 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-mib-lookup.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/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py
index 245a769..a9d4f19 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/getnext-v3-pull-whole-mib-with-options.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/v3arch/oneliner/manager/cmdgen/set-v1-multiple-values.py b/examples/v3arch/oneliner/manager/cmdgen/set-v1-multiple-values.py
index d81ceab..1b3e1c3 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/set-v1-multiple-values.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/set-v1-multiple-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/v3arch/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py
index 53dfd77..13aa413 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/set-v2c-with-value-type-mib-lookup.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/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py
index 8acbe7a..12aea8a 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid-and-contextname.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-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/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py
index d865bc4..20a0c09 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-custom-contextengineid.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-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/v3arch/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py
index 5e9ed23..43bb88a 100644
--- a/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.py
+++ b/examples/v3arch/oneliner/manager/cmdgen/set-v3-with-value-type-mib-lookup.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: