From b1176e5d01801eb451db2c2d017f7811193adee6 Mon Sep 17 00:00:00 2001 From: elie Date: Sun, 16 Nov 2014 18:50:59 +0000 Subject: note on python version added --- examples/v3arch/asyncio/agent/cmdrsp/v3-multiple-users.py | 2 ++ examples/v3arch/asyncio/agent/ntforg/inform-v3.py | 2 ++ examples/v3arch/asyncio/agent/ntforg/trap-v1.py | 2 ++ examples/v3arch/asyncio/manager/cmdgen/get-v2c-custom-timeout.py | 2 ++ examples/v3arch/asyncio/manager/cmdgen/getbulk-v2c.py | 2 ++ .../v3arch/asyncio/manager/cmdgen/getnext-v2c-from-specific-address.py | 2 ++ examples/v3arch/asyncio/manager/ntfrcv/v2c-multiple-interfaces.py | 2 ++ 7 files changed, 14 insertions(+) (limited to 'examples') diff --git a/examples/v3arch/asyncio/agent/cmdrsp/v3-multiple-users.py b/examples/v3arch/asyncio/agent/cmdrsp/v3-multiple-users.py index b41fc49..cdc264b 100644 --- a/examples/v3arch/asyncio/agent/cmdrsp/v3-multiple-users.py +++ b/examples/v3arch/asyncio/agent/cmdrsp/v3-multiple-users.py @@ -18,6 +18,8 @@ # $ snmpwalk -v3 -u usr-sha-none -l authNoPriv -a SHA -A authkey1 localhost .1.3.6 # $ snmpwalk -v3 -u usr-sha-aes128 -l authPriv -a SHA -A authkey1 -x AES -X privkey1 localhost .1.3.6 # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import cmdrsp, context from pysnmp.carrier.asyncio.dgram import udp diff --git a/examples/v3arch/asyncio/agent/ntforg/inform-v3.py b/examples/v3arch/asyncio/agent/ntforg/inform-v3.py index 1fa3de7..f14f5a2 100644 --- a/examples/v3arch/asyncio/agent/ntforg/inform-v3.py +++ b/examples/v3arch/asyncio/agent/ntforg/inform-v3.py @@ -12,6 +12,8 @@ # * with TRAP ID 'warmStart' specified as an OID # * include managed object information 1.3.6.1.2.1.1.5.0 = 'system name' # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import context from pysnmp.entity.rfc3413.asyncio import ntforg diff --git a/examples/v3arch/asyncio/agent/ntforg/trap-v1.py b/examples/v3arch/asyncio/agent/ntforg/trap-v1.py index 1406e32..fef010d 100644 --- a/examples/v3arch/asyncio/agent/ntforg/trap-v1.py +++ b/examples/v3arch/asyncio/agent/ntforg/trap-v1.py @@ -16,6 +16,8 @@ # * overriding Enterprise OID with 1.3.6.1.4.1.20408.4.1.1.2 # * include managed object information '1.3.6.1.2.1.1.1.0' = 'my system' # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import context from pysnmp.entity.rfc3413.asyncio import ntforg diff --git a/examples/v3arch/asyncio/manager/cmdgen/get-v2c-custom-timeout.py b/examples/v3arch/asyncio/manager/cmdgen/get-v2c-custom-timeout.py index 990bb83..c0b74b6 100644 --- a/examples/v3arch/asyncio/manager/cmdgen/get-v2c-custom-timeout.py +++ b/examples/v3arch/asyncio/manager/cmdgen/get-v2c-custom-timeout.py @@ -13,6 +13,8 @@ # # $ snmpget -v2c -c public -ObentU -r 5 -t 1 195.218.195.228 1.3.6.1.2.1.1.1.0 # +# Requires Python 3.4 and later! +# from pysnmp.carrier.asyncio.dgram import udp from pysnmp.entity.rfc3413.asyncio import cmdgen from pysnmp.entity import engine, config diff --git a/examples/v3arch/asyncio/manager/cmdgen/getbulk-v2c.py b/examples/v3arch/asyncio/manager/cmdgen/getbulk-v2c.py index 54c0972..83eb91d 100644 --- a/examples/v3arch/asyncio/manager/cmdgen/getbulk-v2c.py +++ b/examples/v3arch/asyncio/manager/cmdgen/getbulk-v2c.py @@ -14,6 +14,8 @@ # # $ snmpbulkwalk -v2c -c public -C n0 -C r25 -ObentU 195.218.195.228 1.3.6.1.2.1.1 1.3.6.1.4.1.1 # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.proto import rfc1905 from pysnmp.entity.rfc3413.asyncio import cmdgen diff --git a/examples/v3arch/asyncio/manager/cmdgen/getnext-v2c-from-specific-address.py b/examples/v3arch/asyncio/manager/cmdgen/getnext-v2c-from-specific-address.py index 2f1f293..0d041f9 100644 --- a/examples/v3arch/asyncio/manager/cmdgen/getnext-v2c-from-specific-address.py +++ b/examples/v3arch/asyncio/manager/cmdgen/getnext-v2c-from-specific-address.py @@ -14,6 +14,8 @@ # # $ snmpwalk -v2c -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1 1.3.6.1.4.1.1 # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.proto import rfc1905 from pysnmp.entity.rfc3413.asyncio import cmdgen diff --git a/examples/v3arch/asyncio/manager/ntfrcv/v2c-multiple-interfaces.py b/examples/v3arch/asyncio/manager/ntfrcv/v2c-multiple-interfaces.py index e84edc5..a5fa241 100644 --- a/examples/v3arch/asyncio/manager/ntfrcv/v2c-multiple-interfaces.py +++ b/examples/v3arch/asyncio/manager/ntfrcv/v2c-multiple-interfaces.py @@ -16,6 +16,8 @@ # $ snmptrap -v2c -c public 127.0.0.1:162 123 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.5.0 s test # $ snmpinform -v2c -c public 127.0.0.1:2162 123 1.3.6.1.6.3.1.1.5.1 # +# Requires Python 3.4 and later! +# from pysnmp.entity import engine, config from pysnmp.carrier.asyncio.dgram import udp from pysnmp.entity.rfc3413 import ntfrcv -- cgit v1.2.1