diff options
Diffstat (limited to 'examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py')
-rw-r--r-- | examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py index 04ee0bf5..124a26fa 100644 --- a/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py +++ b/examples/hlapi/asyncore/sync/manager/cmdgen/custom-contextengineid.py @@ -23,7 +23,10 @@ errorIndication, errorStatus, errorIndex, varBinds = cmdGen.setCmd( ) ), cmdgen.UdpTransportTarget(('demo.snmplabs.com', 161)), - (cmdgen.MibVariable('SNMPv2-MIB', 'sysORDescr', 1), 'new system name'), + cmdgen.ObjectType( + cmdgen.ObjectIdentity('SNMPv2-MIB', 'sysORDescr', 1), + 'new system name' + ) ) # Check for errors and print out results |