diff options
author | elie <elie> | 2012-12-19 14:56:07 +0000 |
---|---|---|
committer | elie <elie> | 2012-12-19 14:56:07 +0000 |
commit | c32015dc306e5fe6a3dbd2ae7515e095289fe021 (patch) | |
tree | 4d24fe18c70eedc11f1c8585715703378eaa8f37 /examples/hlapi | |
parent | 522187f739ef016781960d5b4da5297ef3ffb44a (diff) | |
download | pysnmp-git-c32015dc306e5fe6a3dbd2ae7515e095289fe021.tar.gz |
minor fixes
Diffstat (limited to 'examples/hlapi')
4 files changed, 3 insertions, 5 deletions
diff --git a/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py b/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py index 7714a7eb..9f4a2acd 100644 --- a/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py +++ b/examples/hlapi/asyncore/manager/cmdgen/multiple-concurrent-queries.py @@ -4,7 +4,7 @@ # Send a bunch of SNMP GET requests all at once using the following options: # # * with SNMPv1, community 'public' and -# with SNMPv2c, community public and +# with SNMPv2c, community 'public' and # with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy # * over IPv4/UDP and # over IPv6/UDP 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 3de91ebd..0c35504d 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 @@ -4,7 +4,7 @@ # Send a bunch of SNMP GETNEXT requests all at once using the following options: # # * with SNMPv1, community 'public' and -# with SNMPv2c, community public and +# with SNMPv2c, community 'public' and # with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy # * over IPv4/UDP and # over IPv6/UDP @@ -13,7 +13,6 @@ # * for multiple MIB subtrees and tables # from pysnmp.entity.rfc3413.oneliner import cmdgen -from pysnmp.proto import rfc1902 # List of targets in the followin format: # ( ( authData, transportTarget, varNames ), ... ) 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 7ac61baa..53dfd779 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 @@ -9,7 +9,6 @@ # * setting SNMPv2-MIB::sysName.0 to new value (type taken from MIB) # from pysnmp.entity.rfc3413.oneliner import cmdgen -from pysnmp.proto import rfc1902 cmdGen = cmdgen.CommandGenerator() 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 846ce303..d81ceabc 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 @@ -14,7 +14,7 @@ from pysnmp.proto import rfc1902 cmdGen = cmdgen.CommandGenerator() errorIndication, errorStatus, errorIndex, varBinds = cmdGen.setCmd( - cmdgen.CommunityData('public'), + cmdgen.CommunityData('public', mpModel=0), cmdgen.UdpTransportTarget(('localhost', 161)), ('1.3.6.1.2.1.1.2.0', rfc1902.ObjectName('1.3.6.1.4.1.20408.1.1')), ('1.3.6.1.2.1.1.2.0', '1.3.6.1.4.1.20408.1.1'), |