diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-11-06 14:32:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 14:32:00 +0100 |
commit | 9f6230113ecd60c40d9739bf43799f9eac306a32 (patch) | |
tree | 32c2dc4cd1a1d9ecfa0499229725174dfe44d636 /examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py | |
parent | be4f6ed73b41e273e742d4c9cec0509188eede5d (diff) | |
download | pysnmp-git-9f6230113ecd60c40d9739bf43799f9eac306a32.tar.gz |
encode IPv6 requirement into example scripts names (#102)
Diffstat (limited to 'examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py')
-rw-r--r-- | examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 27186431..a9bb2bb3 100644 --- a/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py +++ b/examples/hlapi/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py @@ -5,14 +5,14 @@ Preload PySNMP MIBs Send a series of SNMP GETNEXT requests using the following options: * with SNMPv3 with user 'usr-md5-des', MD5 auth and DES privacy protocols -* over IPv6/UDP -* to an Agent at [::1]:161 +* over IPv4/UDP +* to an Agent at demo.snmplabs.com:161 * for all OIDs starting from 1.3.6 * preload all Python MIB modules found in search path Functionally similar to: -| $ snmpwalk -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -m ALL udp6:[::1]:161 1.3.6 +| $ snmpwalk -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -m ALL demo.snmplabs.com:161 1.3.6 """# from pysnmp.hlapi import * @@ -22,7 +22,7 @@ for (errorIndication, errorIndex, varBinds) in nextCmd(SnmpEngine(), UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - Udp6TransportTarget(('::1', 161)), + UdpTransportTarget(('demo.snmplabs.com', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6').loadMibs())): |