From 7c7b91e732d9128e6fd6fcab663d5c563a2c1d5a Mon Sep 17 00:00:00 2001 From: Lostboi <60655329+Lostboi@users.noreply.github.com> Date: Wed, 27 Jan 2021 13:30:14 +0100 Subject: [PATCH 1/5] Update runtests.sh --- runtests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/runtests.sh b/runtests.sh index 419f45ce5..2293c1780 100755 --- a/runtests.sh +++ b/runtests.sh @@ -33,3 +33,4 @@ do ;; esac done + From 0e33ff0d725cf2336ccecde772387816bfcb4840 Mon Sep 17 00:00:00 2001 From: Lostboi <60655329+Lostboi@users.noreply.github.com> Date: Wed, 27 Jan 2021 13:34:52 +0100 Subject: [PATCH 2/5] Update default-v1-trap.py --- examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py b/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py index dfaefc623..9efe0c391 100644 --- a/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py @@ -33,7 +33,7 @@ def run(): iterator = sendNotification( snmpDispatcher, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', NotificationType( ObjectIdentity('1.3.6.1.6.3.1.1.5.2') From 2245e592744b4390d1f9575535c14ba1f6f1881d Mon Sep 17 00:00:00 2001 From: Lostboi <60655329+Lostboi@users.noreply.github.com> Date: Wed, 27 Jan 2021 19:53:51 +0100 Subject: [PATCH 3/5] fix tests --- .../asyncio/agent/ntforg/default-v1-trap.py | 4 ++-- .../ntforg/multiple-notifications-at-once.py | 8 ++++---- .../asyncio/manager/cmdgen/getbulk-to-eom.py | 6 +++--- ...iple-concurrent-queries-over-ipv4-and-ipv6.py | 14 +++++++------- .../cmdgen/multiple-sequential-queries.py | 14 +++++++------- .../v1arch/asyncio/manager/cmdgen/v1-get.py | 6 +++--- .../asyncore/agent/ntforg/generic-v1-trap.py | 4 ++-- .../asyncore/agent/ntforg/generic-v2c-trap.py | 4 ++-- .../v1arch/asyncore/agent/ntforg/v2c-inform.py | 4 ++-- .../ntforg/v2c-trap-with-notification-objects.py | 4 ++-- ...iple-concurrent-queries-over-ipv4-and-ipv6.py | 6 +++--- ...multiple-agents-at-once-over-ipv4-and-ipv6.py | 6 +++--- .../asyncore/manager/cmdgen/pull-whole-mib.py | 6 +++--- .../v1arch/asyncore/manager/cmdgen/v1-getnext.py | 6 +++--- .../v1arch/asyncore/manager/cmdgen/v2c-get.py | 6 +++--- .../sync/agent/ntforg/generic-v1-trap.py | 4 ++-- .../sync/agent/ntforg/generic-v2c-trap.py | 4 ++-- .../asyncore/sync/agent/ntforg/v2c-inform.py | 4 ++-- .../ntforg/v2c-trap-with-notification-objects.py | 4 ++-- .../cmdgen/coerce-set-value-to-mib-spec.py | 6 +++--- .../cmdgen/custom-asn1-mib-search-path.py | 6 +++--- .../cmdgen/custom-pysnmp-mibs-search-path.py | 8 ++++---- .../manager/cmdgen/custom-timeout-and-retries.py | 6 +++--- .../sync/manager/cmdgen/enable-mib-lookup.py | 6 +++--- .../manager/cmdgen/get-table-object-by-index.py | 6 +++--- .../get-table-object-by-multiple-indices.py | 8 ++++---- ...fetch-scalar-and-table-variables-over-ipv6.py | 6 +++--- .../cmdgen/getbulk-limit-number-of-packets.py | 6 +++--- .../sync/manager/cmdgen/multiple-get-calls.py | 6 +++--- .../sync/manager/cmdgen/preload-pysnmp-mibs.py | 6 +++--- .../sync/manager/cmdgen/pull-whole-mib.py | 6 +++--- .../sync/manager/cmdgen/pull-whole-snmp-table.py | 6 +++--- ...s-from-multuple-threads-over-ipv4-and-ipv6.py | 16 ++++++++-------- .../manager/cmdgen/set-multiple-scalar-values.py | 6 +++--- .../asyncore/sync/manager/cmdgen/v1-get.py | 6 +++--- .../asyncore/sync/manager/cmdgen/v2c-get.py | 6 +++--- .../asyncio/agent/ntforg/default-v1-trap.py | 4 ++-- .../ntforg/multiple-notifications-at-once.py | 8 ++++---- .../asyncio/manager/cmdgen/getbulk-to-eom.py | 6 +++--- ...iple-concurrent-queries-over-ipv4-and-ipv6.py | 14 +++++++------- .../cmdgen/multiple-sequential-queries.py | 14 +++++++------- .../v3arch/asyncio/manager/cmdgen/v1-get.py | 6 +++--- .../asyncore/agent/ntforg/default-v1-trap.py | 4 ++-- .../agent/ntforg/multiple-informs-at-once.py | 8 ++++---- .../agent/ntforg/multiple-traps-at-once.py | 8 ++++---- .../running-multiple-snmp-engines-at-once.py | 8 ++++---- ...iple-concurrent-queries-over-ipv4-and-ipv6.py | 8 ++++---- ...multiple-agents-at-once-over-ipv4-and-ipv6.py | 8 ++++---- .../asyncore/manager/cmdgen/pull-whole-mib.py | 6 +++--- ...y-multiple-snmp-engines-over-ipv4-and-ipv6.py | 8 ++++---- .../v3arch/asyncore/manager/cmdgen/v2c-get.py | 6 +++--- .../sync/agent/ntforg/custom-contextengineid.py | 4 ++-- .../sync/agent/ntforg/custom-contextname.py | 4 ++-- .../asyncore/sync/agent/ntforg/custom-v1-trap.py | 4 ++-- .../sync/agent/ntforg/default-v1-trap.py | 4 ++-- ...send-notification-with-additional-varbinds.py | 4 ++-- .../ntforg/v2c-trap-with-notification-objects.py | 4 ++-- .../asyncore/sync/agent/ntforg/v3-inform.py | 4 ++-- .../v3arch/asyncore/sync/agent/ntforg/v3-trap.py | 4 ++-- .../cmdgen/coerce-set-value-to-mib-spec.py | 6 +++--- .../cmdgen/custom-asn1-mib-search-path.py | 6 +++--- .../custom-contextengineid-and-contextname.py | 6 +++--- .../manager/cmdgen/custom-contextengineid.py | 6 +++--- .../cmdgen/custom-pysnmp-mibs-search-path.py | 6 +++--- .../manager/cmdgen/custom-timeout-and-retries.py | 6 +++--- .../manager/cmdgen/custom-v3-security-name.py | 4 ++-- .../manager/cmdgen/get-table-object-by-index.py | 6 +++--- .../get-table-object-by-multiple-indices.py | 6 +++--- ...fetch-scalar-and-table-variables-over-ipv6.py | 2 +- .../cmdgen/getbulk-limit-number-of-packets.py | 6 +++--- .../cmdgen/getbulk-limit-number-of-variables.py | 6 +++--- .../cmdgen/getnext-limit-number-of-variables.py | 6 +++--- .../cmdgen/getnext-multiple-oids-to-eom.py | 6 +++--- .../sync/manager/cmdgen/multiple-get-calls.py | 6 +++--- .../sync/manager/cmdgen/preload-pysnmp-mibs.py | 11 +++-------- .../sync/manager/cmdgen/pull-whole-mib.py | 6 +++--- .../sync/manager/cmdgen/pull-whole-snmp-table.py | 6 +++--- ...s-from-multuple-threads-over-ipv4-and-ipv6.py | 8 ++++---- .../manager/cmdgen/set-multiple-scalar-values.py | 6 +++--- .../sync/manager/cmdgen/specific-v3-engine-id.py | 4 ++-- .../sync/manager/cmdgen/usm-localized-keys.py | 6 +++--- .../sync/manager/cmdgen/usm-master-keys.py | 6 +++--- .../asyncore/sync/manager/cmdgen/usm-md5-des.py | 6 +++--- .../asyncore/sync/manager/cmdgen/usm-md5-none.py | 6 +++--- .../sync/manager/cmdgen/usm-none-none.py | 6 +++--- .../sync/manager/cmdgen/usm-sha-aes128.py | 6 +++--- .../asyncore/sync/manager/cmdgen/v1-get.py | 6 +++--- .../asyncore/sync/manager/cmdgen/v2c-get.py | 6 +++--- .../asyncore/sync/manager/cmdgen/v2c-getbulk.py | 6 +++--- .../sync/manager/cmdgen/waive-mib-lookup.py | 6 +++--- .../trollius/agent/ntforg/default-v1-trap.py | 4 ++-- .../trollius/manager/cmdgen/getbulk-to-eom.py | 6 +++--- .../v3arch/trollius/manager/cmdgen/v1-get.py | 6 +++--- .../twisted/agent/ntforg/default-v1-trap.py | 4 ++-- .../ntforg/multiple-notifications-at-once.py | 8 ++++---- .../agent/ntforg/v2c-trap-inline-callbacks.py | 4 ++-- .../manager/cmdgen/custom-timeout-and-retries.py | 6 +++--- .../twisted/manager/cmdgen/getbulk-to-eom.py | 6 +++--- .../cmdgen/multiple-concurrent-queries.py | 8 ++++---- .../pull-mibs-from-multiple-agents-at-once.py | 8 ++++---- .../twisted/manager/cmdgen/pull-whole-mib.py | 6 +++--- .../v3arch/twisted/manager/cmdgen/v1-get.py | 6 +++--- .../ntforg/send-inform-over-ipv4-and-ipv6.py | 6 +++--- .../agent/ntforg/send-trap-over-ipv4-and-ipv6.py | 6 +++--- .../manager/cmdgen/fetch-scalar-value.py | 6 +++--- .../manager/cmdgen/getbulk-pull-whole-mib.py | 6 +++--- .../manager/cmdgen/getnext-pull-whole-mib.py | 6 +++--- .../manager/cmdgen/spoof-source-address.py | 6 +++--- .../v1arch/asyncore/manager/cmdgen/v2c-set.py | 6 +++--- .../multiple-different-notifications-at-once.py | 10 +++++----- .../asyncore/agent/ntforg/send-custom-pdu.py | 4 ++-- .../ntforg/send-inform-to-multiple-managers.py | 14 +++++++------- .../send-notification-over-ipv4-and-ipv6.py | 4 ++-- .../ntforg/send-packet-from-specific-address.py | 6 +++--- .../ntforg/send-trap-to-multiple-managers.py | 14 +++++++------- .../v3arch/asyncore/agent/ntforg/usm-md5-none.py | 6 +++--- examples/v3arch/asyncore/agent/ntforg/v1-trap.py | 8 ++++---- .../v3arch/asyncore/agent/ntforg/v2c-inform.py | 6 +++--- .../ntforg/v2c-trap-with-notification-objects.py | 6 +++--- .../v3arch/asyncore/agent/ntforg/v2c-trap.py | 6 +++--- examples/v3arch/asyncore/agent/ntforg/v3-trap.py | 6 +++--- .../custom-contextengineid-and-contextname.py | 6 +++--- .../manager/cmdgen/custom-timeout-and-retries.py | 6 +++--- .../getbulk-fetch-scalar-and-table-variables.py | 6 +++--- .../cmdgen/getbulk-multiple-oids-to-eom.py | 6 +++--- ...getnext-multiple-oids-and-resolve-with-mib.py | 6 +++--- .../cmdgen/getnext-multiple-oids-to-eom.py | 6 +++--- .../manager/cmdgen/observe-request-processing.py | 6 +++--- .../asyncore/manager/cmdgen/pull-subtree.py | 6 +++--- .../send-packets-from-specific-interface.py | 6 +++--- .../manager/cmdgen/set-multiple-scalar-values.py | 6 +++--- .../manager/cmdgen/spoof-source-address.py | 6 +++--- .../asyncore/manager/cmdgen/usm-sha-aes128.py | 6 +++--- .../asyncore/manager/cmdgen/usm-sha-none.py | 6 +++--- .../v3arch/asyncore/manager/cmdgen/v1-get.py | 6 +++--- .../v3arch/asyncore/manager/cmdgen/v2c-set.py | 8 ++++---- .../proxy/command/ipv6-to-ipv4-conversion.py | 6 +++--- .../proxy/command/v2c-to-v1-conversion.py | 6 +++--- .../proxy/command/v2c-to-v3-conversion.py | 6 +++--- .../proxy/command/v3-to-v2c-conversion.py | 6 +++--- requirements.txt | 1 + runtests.sh | 4 +++- 142 files changed, 443 insertions(+), 445 deletions(-) diff --git a/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py b/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py index dfaefc623..25aed28e9 100644 --- a/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v1arch/asyncio/agent/ntforg/default-v1-trap.py @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 \ +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 \ 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# @@ -33,7 +33,7 @@ def run(): iterator = sendNotification( snmpDispatcher, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', NotificationType( ObjectIdentity('1.3.6.1.6.3.1.1.5.2') diff --git a/examples/hlapi/v1arch/asyncio/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/v1arch/asyncio/agent/ntforg/multiple-notifications-at-once.py index 3b6f75131..a83022017 100644 --- a/examples/hlapi/v1arch/asyncio/agent/ntforg/multiple-notifications-at-once.py +++ b/examples/hlapi/v1arch/asyncio/agent/ntforg/multiple-notifications-at-once.py @@ -13,8 +13,8 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 """# import asyncio @@ -54,7 +54,7 @@ def sendone(snmpDispatcher, hostname, notifyType): loop = asyncio.get_event_loop() loop.run_until_complete( asyncio.wait( - [sendone(snmpDispatcher, 'demo.snmplabs.com', 'trap'), - sendone(snmpDispatcher, 'demo.snmplabs.com', 'inform')] + [sendone(snmpDispatcher, 'demo-snmp.thola.io', 'trap'), + sendone(snmpDispatcher, 'demo-snmp.thola.io', 'inform')] ) ) diff --git a/examples/hlapi/v1arch/asyncio/manager/cmdgen/getbulk-to-eom.py b/examples/hlapi/v1arch/asyncio/manager/cmdgen/getbulk-to-eom.py index e3043239d..5d4939700 100644 --- a/examples/hlapi/v1arch/asyncio/manager/cmdgen/getbulk-to-eom.py +++ b/examples/hlapi/v1arch/asyncio/manager/cmdgen/getbulk-to-eom.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * run till end-of-mib condition is reported by Agent * based on asyncio I/O framework @@ -14,7 +14,7 @@ Functionally similar to: | $ snmpbulkwalk -v2c -c public -Cn0 -Cr50 \ -| demo.snmplabs.com SNMPv2-MIB::system +| demo-snmp.thola.io SNMPv2-MIB::system """# import asyncio @@ -31,7 +31,7 @@ def run(varBinds): iterator = bulkCmd( snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), 0, 50, *varBinds ) diff --git a/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py b/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py index 0a496bd63..2ec53f17c 100644 --- a/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py @@ -6,15 +6,15 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to multiple Agents at demo.snmplabs.com +* to multiple Agents at demo-snmp.thola.io * for instance of SNMPv2-MIB::sysDescr.0 MIB object * based on asyncio I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com:1161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:2161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:3161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:1161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:2161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:3161 SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -53,8 +53,8 @@ def getone(snmpDispatcher, hostname): loop = asyncio.get_event_loop() loop.run_until_complete( asyncio.wait( - [getone(snmpDispatcher, ('demo.snmplabs.com', 1161)), - getone(snmpDispatcher, ('demo.snmplabs.com', 2161)), - getone(snmpDispatcher, ('demo.snmplabs.com', 3161))] + [getone(snmpDispatcher, ('demo-snmp.thola.io', 1161)), + getone(snmpDispatcher, ('demo-snmp.thola.io', 2161)), + getone(snmpDispatcher, ('demo-snmp.thola.io', 3161))] ) ) diff --git a/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-sequential-queries.py b/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-sequential-queries.py index 12f7a1424..55066d3cd 100644 --- a/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-sequential-queries.py +++ b/examples/hlapi/v1arch/asyncio/manager/cmdgen/multiple-sequential-queries.py @@ -6,15 +6,15 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to multiple Agents at demo.snmplabs.com +* to multiple Agents at demo-snmp.thola.io * for instance of SNMPv2-MIB::sysDescr.0 MIB object * based on asyncio I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com:1161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:2161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:3161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:1161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:2161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:3161 SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -61,9 +61,9 @@ def getall(snmpDispatcher, hostnames): loop.run_until_complete( getall( snmpDispatcher, [ - ('demo.snmplabs.com', 1161), - ('demo.snmplabs.com', 2161), - ('demo.snmplabs.com', 3161) + ('demo-snmp.thola.io', 1161), + ('demo-snmp.thola.io', 2161), + ('demo-snmp.thola.io', 3161) ] ) ) diff --git a/examples/hlapi/v1arch/asyncio/manager/cmdgen/v1-get.py b/examples/hlapi/v1arch/asyncio/manager/cmdgen/v1-get.py index ba54d1bde..fa7691ec5 100644 --- a/examples/hlapi/v1arch/asyncio/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v1arch/asyncio/manager/cmdgen/v1-get.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for the 1.3.6.1.2.1.1.1.0 OID (e.g. SNMPv2-MIB::sysDescr.0 MIB object) * Based on asyncio I/O framework Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -27,7 +27,7 @@ def run(): iterator = getCmd( snmpDispatcher, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ('1.3.6.1.2.1.1.1.0', None) ) diff --git a/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py b/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py index ca969f101..e719666e9 100644 --- a/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py +++ b/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v1-trap.py @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch.asyncore import * @@ -32,7 +32,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBinds, **context): sendNotification( snmpDispatcher, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v2c-trap.py b/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v2c-trap.py index 36c01e607..9533dd53c 100644 --- a/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v2c-trap.py +++ b/examples/hlapi/v1arch/asyncore/agent/ntforg/generic-v2c-trap.py @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch.asyncore import * @@ -30,7 +30,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBinds, **context): sendNotification( snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-inform.py b/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-inform.py index 8271a9f5b..a87b204de 100644 --- a/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-inform.py +++ b/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-inform.py @@ -13,7 +13,7 @@ Functionally similar to: -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch.asyncore import * @@ -37,7 +37,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBinds, **context): sendNotification( snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'inform', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py index a3bc18aec..d8672869c 100644 --- a/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py +++ b/examples/hlapi/v1arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch.asyncore import * @@ -38,7 +38,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBinds, **context): sendNotification( snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py b/examples/hlapi/v1arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py index b40c5c099..2acc6f346 100644 --- a/examples/hlapi/v1arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v1arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py @@ -9,7 +9,7 @@ with SNMPv2c, community 'public' and * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * for instances of SNMPv2-MIB::system SNMPv2-MIB::sysLocation.0 MIB objects @@ -22,13 +22,13 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), diff --git a/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py b/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py index 32c92ff85..b98e726d8 100644 --- a/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py @@ -9,7 +9,7 @@ with SNMPv2c, community 'public' and * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * pull MIB variables till EOM * Enable MIB lookup feature @@ -22,13 +22,13 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('1.3.6.1.2.1')), ObjectType(ObjectIdentity('1.3.6.1.3.1')))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('1.3.6.1.4.1')),)), # 3-th target (SNMPv3 over IPv6/UDP) diff --git a/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py index 4af0138f1..285d86df7 100644 --- a/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/v1arch/asyncore/manager/cmdgen/pull-whole-mib.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past 1.3.6.1.4.1 Functionally similar to: -| $ snmpwalk -v2c -c public demo.snmplabs.com 1.3.6.1.4.1 +| $ snmpwalk -v2c -c public demo-snmp.thola.io 1.3.6.1.4.1 """# from pysnmp.hlapi.v1arch.asyncore import * @@ -37,7 +37,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBindTable, **context): # Submit initial GETBULK request bulkCmd(snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), 0, 25, ('1.3.6.1.4.1', None), cbFun=cbFun) diff --git a/examples/hlapi/v1arch/asyncore/manager/cmdgen/v1-getnext.py b/examples/hlapi/v1arch/asyncore/manager/cmdgen/v1-getnext.py index d59f1ba06..af77128ab 100644 --- a/examples/hlapi/v1arch/asyncore/manager/cmdgen/v1-getnext.py +++ b/examples/hlapi/v1arch/asyncore/manager/cmdgen/v1-getnext.py @@ -6,12 +6,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for the 1.3.6.1.2.1.1 OID (e.g. SNMPv2-MIB::system MIB branch) Functionally similar to: -| $ snmpwalk -v1 -c public demo.snmplabs.com 1.3.6.1.2.1.1 +| $ snmpwalk -v1 -c public demo-snmp.thola.io 1.3.6.1.2.1.1 """# @@ -41,7 +41,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBindTable, **context): stateHandle = nextCmd( snmpDispatcher, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ('1.3.6.1.5.1.1', None), cbFun=cbFun ) diff --git a/examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py b/examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py index 9ce8d7dd1..36c14da7e 100644 --- a/examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py +++ b/examples/hlapi/v1arch/asyncore/manager/cmdgen/v2c-get.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for the 1.3.6.1.2.1.1.1.0 OID (e.g. SNMPv2-MIB::sysDescr.0 MIB object) Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com 1.3.6.1.2.1.1.1.0 +| $ snmpget -v2c -c public demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 """# @@ -36,7 +36,7 @@ def cbFun(errorIndication, errorStatus, errorIndex, varBinds, **context): stateHandle = getCmd( snmpDispatcher, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ('1.3.6.1.2.1.1.1.0', None), cbFun=cbFun ) diff --git a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py index 2d83da5fa..d75309e39 100644 --- a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py +++ b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v1-trap.py @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch import * @@ -24,7 +24,7 @@ iterator = sendNotification( SnmpDispatcher(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py index 639b7b6b4..7c8030992 100644 --- a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py +++ b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/generic-v2c-trap.py @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch import * @@ -22,7 +22,7 @@ iterator = sendNotification( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py index 9210d45a5..9e1f35fad 100644 --- a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py +++ b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-inform.py @@ -13,7 +13,7 @@ Functionally similar to: -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch import * @@ -21,7 +21,7 @@ iterator = sendNotification( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'inform', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py index 0bf6c354f..be01d436b 100644 --- a/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py +++ b/examples/hlapi/v1arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v1arch import * @@ -22,7 +22,7 @@ iterator = sendNotification( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), 'trap', # SNMPv2-MIB::sysUpTime.0 = 12345 ('1.3.6.1.2.1.1.3.0', TimeTicks(12345)), diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py index a22e6e935..78c4df7ab 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with MIB lookup enabled * setting SNMPv2-MIB::sysName.0 to new value (type taken from MIB) Functionally similar to: -| $ snmpset -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 = "new system name" +| $ snmpset -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 = "new system name" """# from pysnmp.hlapi.v1arch import * @@ -20,7 +20,7 @@ iterator = setCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysORDescr', 1), 'new description'), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py index 207675566..c1ab949e7 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py @@ -6,14 +6,14 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 MIB object * pass non-default ASN.1 MIB source to MIB compiler * with MIB lookup enabled Functionally similar to: -| $ snmpget -v2c -c public -M /usr/share/snmp demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v2c -c public -M /usr/share/snmp demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi.v1arch import * @@ -21,7 +21,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1).addAsn1MibSource( 'file:///usr/share/snmp', 'http://mibs.snmplabs.com/asn1/@mib@') diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py index 6b5f880c7..6f022deef 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs within TCP-MIB::tcpConnTable column * TCP-MIB Python module will be searched by a user-specified filesystem path (/opt/mib/pysnmp) and in Python package (python_packaged_mibs) @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmpbulkwalk -v2c -c public -Cn0 -Cr50 demo.snmplabs.com TCP-MIB::tcpConnTable +| $ snmpbulkwalk -v2c -c public -Cn0 -Cr50 demo-snmp.thola.io TCP-MIB::tcpConnTable """# from pysnmp.hlapi.v1arch import * @@ -24,13 +24,13 @@ iterator = bulkCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), 0, 50, ObjectType( ObjectIdentity('TCP-MIB', 'tcpConnTable').addMibSource( '/opt/mibs/pysnmp').addMibSource( 'python_packaged_mibs') - ).addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@'), + ).addAsn1MibSource('http://mibs.thola.io/asn1/@mib@'), lookupMib=True, lexicographicMode=False ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py index f56d6511f..dcbb4b435 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for an OID in string form * use custom timeout and request retries values @@ -25,7 +25,7 @@ Functionally similar to: -| $ snmpget -v1 -c public -t 2 -r 0 demo.snmplabs.com 1.3.6.1.2.1.1.1.0 +| $ snmpget -v1 -c public -t 2 -r 0 demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 """# from pysnmp.hlapi.v1arch import * @@ -34,7 +34,7 @@ SnmpDispatcher(), CommunityData('public'), UdpTransportTarget( - ('demo.snmplabs.com', 161), timeout=2.0, retries=0 + ('demo-snmp.thola.io', 161), timeout=2.0, retries=0 ), ('1.3.6.1.2.1.1.1.0', None) ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py index 1072c71cf..227022cf2 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/enable-mib-lookup.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for an OID in string form * resolve request and response OIDs and values from/to human-friendly form @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmpwalk -v2c -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1 +| $ snmpwalk -v2c -c public -ObentU demo-snmp.thola.io 1.3.6.1.2.1 """# from pysnmp.hlapi.v1arch import * @@ -23,7 +23,7 @@ iterator = nextCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('1.3.6.1.2.1.1')), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py index 38d248c28..f918b0d72 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py @@ -6,13 +6,13 @@ * with SNMPv2c, community name "public" * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with MIB lookup enabled * for IF-MIB::ifInOctets.1 and IF-MIB::ifOutOctets.1 MIB object Functionally similar to: -| $ snmpget -v 2c -c public demo.snmplabs.com IF-MIB::ifInOctets.1 IF-MIB::ifOutOctets.1 +| $ snmpget -v 2c -c public demo-snmp.thola.io IF-MIB::ifInOctets.1 IF-MIB::ifOutOctets.1 """# from pysnmp.hlapi.v1arch import * @@ -20,7 +20,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1)), ObjectType(ObjectIdentity('IF-MIB', 'ifOutOctets', 1)), lookupMib=True diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py index 0163ad08c..556b12f81 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 MIB object * with MIB lookup enabled Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 +| $ snmpget -v2c -c public demo-snmp.thola.io TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 """# from pysnmp.hlapi.v1arch import * @@ -20,7 +20,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType( ObjectIdentity( 'TCP-MIB', @@ -28,7 +28,7 @@ '0.0.0.0', 22, '0.0.0.0', 0 ) - ).addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@'), + ).addAsn1MibSource('http://mibs.thola.io/asn1/@mib@'), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py index 1bdcf87a8..64fad1216 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py @@ -6,7 +6,7 @@ * with SNMPv2c, community name "public" * over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with MIB lookup enabled * with values non-repeaters = 1, max-repetitions = 25 * for IP-MIB::ipAdEntAddr and all columns of the IF-MIB::ifEntry table @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmpbulkwalk -v2c -c public -Cn1, -Cr25 demo.snmplabs.com IP-MIB::ipAdEntAddr IP-MIB::ipAddrEntry +| $ snmpbulkwalk -v2c -c public -Cn1, -Cr25 demo-snmp.thola.io IP-MIB::ipAdEntAddr IP-MIB::ipAddrEntry """# from pysnmp.hlapi.v1arch import * @@ -22,7 +22,7 @@ iterator = bulkCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), 1, 25, ObjectType(ObjectIdentity('IP-MIB', 'ipAdEntAddr')), ObjectType(ObjectIdentity('IP-MIB', 'ipAddrEntry')), diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py index 519c1bf20..d2c7da7b2 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py @@ -6,7 +6,7 @@ * with SNMPv2c, community name "public" * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * with MIB lookup enabled * run till end-of-mib condition is reported by Agent OR @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmpbulkwalk -v2c -c public -Cn0 -Cr50 demo.snmplabs.com SNMPv2-MIB::system +| $ snmpbulkwalk -v2c -c public -Cn0 -Cr50 demo-snmp.thola.io SNMPv2-MIB::system """# from pysnmp.hlapi.v1arch import * @@ -22,7 +22,7 @@ iterator = bulkCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), 0, 50, ObjectType(ObjectIdentity('SNMPv2-MIB', 'system')), lookupMib=True, diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py index e1478085e..aaaf0a68f 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py @@ -6,7 +6,7 @@ * with SNMPv2c, community name "public" * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 and IF-MIB::ifOutOctets.1 MIB objects * with MIB lookup enabled @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v2c -c public demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi.v1arch import * @@ -30,7 +30,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py index 0df556c40..ae11e5358 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py @@ -6,14 +6,14 @@ * with SNMPv2c, community name "public" * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs starting from 1.3.6 * with MIB lookup enabled * preload all Python MIB modules found in search path Functionally similar to: -| $ snmpwalk -v2c -c public -m ALL demo.snmplabs.com:161 1.3.6 +| $ snmpwalk -v2c -c public -m ALL demo-snmp.thola.io:161 1.3.6 """# from pysnmp.hlapi.v1arch import * @@ -21,7 +21,7 @@ iterator = nextCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('1.3.6').loadMibs()), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py index f900018f0..4ffc78953 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs in IF-MIB * with MIB lookup enabled Functionally similar to: -| $ snmpwalk -v2c -c public demo.snmplabs.com IF-MIB:: +| $ snmpwalk -v2c -c public demo-snmp.thola.io IF-MIB:: """# from pysnmp.hlapi.v1arch import * @@ -20,7 +20,7 @@ iterator = nextCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('IF-MIB')) ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py index d605c2da6..385e705e7 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py @@ -6,14 +6,14 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for some columns of the IF-MIB::ifEntry table * with MIB lookup enabled * stop when response OIDs leave the scopes of initial OIDs Functionally similar to: -| $ snmpwalk -v1 -c public demo.snmplabs.com IF-MIB::ifDescr IF-MIB::ifType IF-MIB::ifMtu IF-MIB::ifSpeed IF-MIB::ifPhysAddress IF-MIB::ifType +| $ snmpwalk -v1 -c public demo-snmp.thola.io IF-MIB::ifDescr IF-MIB::ifType IF-MIB::ifMtu IF-MIB::ifSpeed IF-MIB::ifPhysAddress IF-MIB::ifType """# from pysnmp.hlapi.v1arch import * @@ -21,7 +21,7 @@ iterator = nextCmd( SnmpDispatcher(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('IF-MIB', 'ifDescr')), ObjectType(ObjectIdentity('IF-MIB', 'ifType')), ObjectType(ObjectIdentity('IF-MIB', 'ifMtu')), diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py index 98e235f3c..aadacc990 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py @@ -9,8 +9,8 @@ with SNMPv2c, community 'public' and * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and - to an Agent at demo.snmplabs.com:1161 and +* to an Agent at demo-snmp.thola.io:161 and + to an Agent at demo-snmp.thola.io:1161 and to an Agent at [::1]:161 * for instances of SNMPv2-MIB::sysDescr.0 and SNMPv2-MIB::sysLocation.0 MIB objects @@ -18,9 +18,9 @@ Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 -| $ snmpget -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 -| $ snmpget -v2c -c public demo.snmplabs.com:1161 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 +| $ snmpget -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:1161 SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 | $ snmpget -v2c -c public '[::1]' SNMPv2-MIB::sysDescr.0 SNMPv2-MIB::sysLocation.0 """# @@ -38,13 +38,13 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), @@ -58,7 +58,7 @@ # 4-th target (SNMPv2c over IPv4/UDP) - same community and # different transport port. (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 1161)), + UdpTransportTarget(('demo-snmp.thola.io', 1161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py index 39edb0cb7..e60d64d0c 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py @@ -6,7 +6,7 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with MIB lookup enabled * setting three var-bindings to new values @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmpset -v1 -c public demo.snmplabs.com 1.3.6.1.2.1.1.9.1.2.1 o 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.2.1 = 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.3.1 s "new system name" +| $ snmpset -v1 -c public demo-snmp.thola.io 1.3.6.1.2.1.1.9.1.2.1 o 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.2.1 = 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.3.1 s "new system name" """# from pysnmp.hlapi.v1arch import * @@ -24,7 +24,7 @@ iterator = setCmd( SnmpDispatcher(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType( ObjectIdentity('SNMPv2-MIB', 'sysORID', 1), ObjectIdentifier('1.3.6.1.4.1.20408.1.1') diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py index a07208e76..67e64db88 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v1-get.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for an instance of SNMPv2-MIB::sysDescr.0 MIB object * having MIB lookup feature enabled Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi.v1arch import * @@ -20,7 +20,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), lookupMib=True ) diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py index 25e1c6265..fa3ebe4bd 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/v2c-get.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for two var-bindings with OIDs in string form Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.6.0 +| $ snmpget -v2c -c public demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.6.0 """# from pysnmp.hlapi.v1arch import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpDispatcher(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ('1.3.6.1.2.1.1.1.0', None), ('1.3.6.1.2.1.1.6.0', None) ) diff --git a/examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py b/examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py index 41032e9b3..2938094ea 100644 --- a/examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v3arch/asyncio/agent/ntforg/default-v1-trap.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# import asyncio @@ -32,7 +32,7 @@ def run(): iterator = sendNotification( snmpEngine, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType( diff --git a/examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py index 9bd21b304..c923a8386 100644 --- a/examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py +++ b/examples/hlapi/v3arch/asyncio/agent/ntforg/multiple-notifications-at-once.py @@ -13,8 +13,8 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmptrap -v2c -c public demo.snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 """# import asyncio @@ -54,7 +54,7 @@ def sendone(snmpEngine, hostname, notifyType): loop = asyncio.get_event_loop() loop.run_until_complete( asyncio.wait( - [sendone(snmpEngine, 'demo.snmplabs.com', 'trap'), - sendone(snmpEngine, 'demo.snmplabs.com', 'inform')] + [sendone(snmpEngine, 'demo-snmp.thola.io', 'trap'), + sendone(snmpEngine, 'demo-snmp.thola.io', 'inform')] ) ) diff --git a/examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py b/examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py index aa6bf4416..9f9f78ded 100644 --- a/examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py +++ b/examples/hlapi/v3arch/asyncio/manager/cmdgen/getbulk-to-eom.py @@ -6,7 +6,7 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * run till end-of-mib condition is reported by Agent * based on asyncio I/O framework @@ -14,7 +14,7 @@ Functionally similar to: | $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 \ -| demo.snmplabs.com SNMPv2-MIB::system +| demo-snmp.thola.io SNMPv2-MIB::system """# import asyncio @@ -30,7 +30,7 @@ def run(varBinds): iterator = bulkCmd( snmpEngine, UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 50, *varBinds diff --git a/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py b/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py index 5f3c78e7b..9cb15bc1e 100644 --- a/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py @@ -6,15 +6,15 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to multiple Agents at demo.snmplabs.com +* to multiple Agents at demo-snmp.thola.io * for instance of SNMPv2-MIB::sysDescr.0 MIB object * based on asyncio I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com:1161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:2161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:3161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:1161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:2161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io3161 SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -53,8 +53,8 @@ def getone(snmpEngine, hostname): loop = asyncio.get_event_loop() loop.run_until_complete( asyncio.wait( - [getone(snmpEngine, ('demo.snmplabs.com', 1161)), - getone(snmpEngine, ('demo.snmplabs.com', 2161)), - getone(snmpEngine, ('demo.snmplabs.com', 3161))] + [getone(snmpEngine, ('demo-snmp.thola.io', 1161)), + getone(snmpEngine, ('demo-snmp.thola.io', 2161)), + getone(snmpEngine, ('demo-snmp.thola.io', 3161))] ) ) diff --git a/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py b/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py index 626661d02..dfe6d13be 100644 --- a/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py +++ b/examples/hlapi/v3arch/asyncio/manager/cmdgen/multiple-sequential-queries.py @@ -6,15 +6,15 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to multiple Agents at demo.snmplabs.com +* to multiple Agents at demo-snmp.thola.io * for instance of SNMPv2-MIB::sysDescr.0 MIB object * based on asyncio I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com:1161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:2161 SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com:3161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:1161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io:2161 SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io3161 SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -61,9 +61,9 @@ def getall(snmpEngine, hostnames): loop.run_until_complete( getall( snmpEngine, [ - ('demo.snmplabs.com', 1161), - ('demo.snmplabs.com', 2161), - ('demo.snmplabs.com', 3161) + ('demo-snmp.thola.io', 1161), + ('demo-snmp.thola.io', 2161), + ('demo-snmp.thola.io', 3161) ] ) ) diff --git a/examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py b/examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py index a7bf585af..9d56a75cb 100644 --- a/examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v3arch/asyncio/manager/cmdgen/v1-get.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for an instance of SNMPv2-MIB::sysDescr.0 MIB object * Based on asyncio I/O framework Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# import asyncio @@ -26,7 +26,7 @@ def run(): iterator = getCmd( snmpEngine, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py b/examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py index 21ac77b3c..e5f111fa8 100644 --- a/examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v3arch/asyncore/agent/ntforg/default-v1-trap.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi.v3arch.asyncore import * @@ -27,7 +27,7 @@ sendNotification( snmpEngine, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py b/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py index a1c738867..7f185372e 100644 --- a/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py +++ b/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-informs-at-once.py @@ -12,8 +12,8 @@ * with TRAP ID 'coldStart' specified as a MIB symbol * include managed object information specified as var-bind objects pair -| $ snmpinform -v2c -c public demo.snmplabs.com 123 1.3.6.1.6.3.1.1.5.1 -| $ snmpinform -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 demo.snmplabs.com 123 1.3.6.1.6.3.1.1.5.1 +| $ snmpinform -v2c -c public demo-snmp.thola.io 123 1.3.6.1.6.3.1.1.5.1 +| $ snmpinform -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 demo-snmp.thola.io 123 1.3.6.1.6.3.1.1.5.1 """# from pysnmp.hlapi.v3arch.asyncore import * @@ -23,12 +23,12 @@ TARGETS = ( # 1-st target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData()), # 2-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData()), ) diff --git a/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py b/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py index 83d9cfc44..9ce1b72fa 100644 --- a/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py +++ b/examples/hlapi/v3arch/asyncore/agent/ntforg/multiple-traps-at-once.py @@ -13,8 +13,8 @@ * with TRAP ID 'coldStart' specified as a MIB symbol * include managed object information specified as var-bind objects pair -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 demo.snmplabs.com 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" -| $ snmptrap -v2c -c public demo.snmplabs.com 123 1.3.6.1.6.3.1.1.5.1 +| $ snmptrap -v1 -c public demo-snmo.thola.io 1.3.6.1.4.1.20408.4.1.1.2 demo-snmp.thola.io 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v2c -c public demo-snmp.thola.io 123 1.3.6.1.6.3.1.1.5.1 """# from pysnmp.hlapi.v3arch.asyncore import * @@ -24,12 +24,12 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData()), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData()), ) diff --git a/examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py b/examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py index c60ea8391..bce0ec356 100644 --- a/examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py +++ b/examples/hlapi/v3arch/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py @@ -25,8 +25,8 @@ employ here is based on peer's UDP port number. Other selection criterias are also possible. -| $ snmpinform -v2c -c public demo.snmplabs.com:1162 123 1.3.6.1.6.3.1.1.5.1 -| $ snmpinform -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 demo.snmplabs.com 123 1.3.6.1.6.3.1.1.5.1 +| $ snmpinform -v2c -c public demo-snmp.thola.io:1162 123 1.3.6.1.6.3.1.1.5.1 +| $ snmpinform -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 demo-snmp.thola.io 123 1.3.6.1.6.3.1.1.5.1 """# from pysnmp.hlapi.v3arch.asyncore import * @@ -37,12 +37,12 @@ TARGETS = ( # 1-st target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 1162)), + UdpTransportTarget(('demo-snmp.thola.io', 1162)), ContextData()), # 2-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData()), ) diff --git a/examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py b/examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py index 1422fe3e7..e64bac552 100644 --- a/examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v3arch/asyncore/manager/cmdgen/multiple-concurrent-queries-over-ipv4-and-ipv6.py @@ -10,7 +10,7 @@ with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * for instances of SNMPv2-MIB::sysDescr.0 and SNMPv2-MIB::sysLocation.0 MIB objects @@ -23,13 +23,13 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), @@ -42,7 +42,7 @@ # 4-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), diff --git a/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py b/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py index 44247b9a6..b4b416b58 100644 --- a/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-mibs-from-multiple-agents-at-once-over-ipv4-and-ipv6.py @@ -10,7 +10,7 @@ with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * pull variables till EOM @@ -22,18 +22,18 @@ targets = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('1.3.6.1.2.1')), ObjectType(ObjectIdentity('1.3.6.1.3.1')))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('1.3.6.1.4.1')),)), # 3-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'system')),)), # 4-th target (SNMPv3 over IPv6/UDP) diff --git a/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py index e6fe324aa..46f47b720 100644 --- a/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/v3arch/asyncore/manager/cmdgen/pull-whole-mib.py @@ -6,13 +6,13 @@ * with SNMPv3, user 'usr-md5-none', MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs in IF-MIB Functionally similar to: | $ snmpwalk -v3 -lauthNoPriv -u usr-md5-none -A authkey1 -X privkey1 \ -| demo.snmplabs.com IF-MIB:: +| demo-snmp.thola.io IF-MIB:: """# from pysnmp.hlapi.v3arch.asyncore import * @@ -43,7 +43,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication, nextCmd(snmpEngine, UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'system')), ObjectType(ObjectIdentity('IF-MIB', 'ifTable')), diff --git a/examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py b/examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py index fc2143d48..bbf0945b0 100644 --- a/examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py @@ -11,7 +11,7 @@ with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * for instances of SNMPv2-MIB::sysDescr.0 and SNMPv2-MIB::sysLocation.0 MIB objects @@ -36,19 +36,19 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 1161)), + UdpTransportTarget(('demo-snmp.thola.io', 1161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 3-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 2161)), + UdpTransportTarget(('demo-snmp.thola.io', 2161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))) diff --git a/examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py b/examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py index da2e7b349..b934efe56 100644 --- a/examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py +++ b/examples/hlapi/v3arch/asyncore/manager/cmdgen/v2c-get.py @@ -6,12 +6,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for two instances of SNMPv2-MIB::sysDescr.0 MIB object, Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi.v3arch.asyncore import * @@ -39,7 +39,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication, getCmd(snmpEngine, CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), cbFun=cbFun) diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py index 18da255f2..bc94dad8d 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextengineid.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 0x8000000004030201 demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 0x8000000004030201 demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 """# from pysnmp.hlapi import * @@ -25,7 +25,7 @@ iterator = sendNotification( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(OctetString(hexValue='8000000004030201')), 'inform', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py index 2c232cb60..d088559a9 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-contextname.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 -n my-context demo.snmplabs.com 12345 0.3.6.1.6.3.1.1.5.2 +| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 -n my-context demo-snmp.thola.io 12345 0.3.6.1.6.3.1.1.5.2 """# from pysnmp.hlapi import * @@ -25,7 +25,7 @@ iterator = sendNotification( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(contextName='my-context'), 'inform', NotificationType(ObjectIdentity('1.3.6.1.6.3.1.1.5.2')).loadMibs('SNMPv2-MIB') diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py index 90f145194..9c9ea24a9 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/custom-v1-trap.py @@ -19,7 +19,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi import * @@ -27,7 +27,7 @@ iterator = sendNotification( SnmpEngine(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py index 4846f9daf..bf1510206 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/default-v1-trap.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi import * @@ -25,7 +25,7 @@ iterator = sendNotification( SnmpEngine(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py index 1fd443982..dd6dc39d7 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py @@ -13,7 +13,7 @@ Functionally similar to: -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi import * @@ -21,7 +21,7 @@ iterator = sendNotification( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'inform', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py index c53f09e69..2483338eb 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.2.2.1.1.123 i 123 1.3.6.1.2.1.2.2.1.7.123 i 1 1.3.6.1.2.1.2.2.1.8.123 i 1 +| $ snmptrap -v2c -c public demo-snmp.thola.io 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.2.2.1.1.123 i 123 1.3.6.1.2.1.2.2.1.7.123 i 1 1.3.6.1.2.1.2.2.1.8.123 i 1 """# from pysnmp.hlapi import * @@ -23,7 +23,7 @@ iterator = sendNotification( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py index fb9df891a..f67c75628 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-inform.py @@ -13,7 +13,7 @@ Functionally similar to: -| $ snmpinform -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo.snmplabs.com 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmpinform -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo-snmp.thola.io 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi import * @@ -21,7 +21,7 @@ iterator = sendNotification( SnmpEngine(), UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'inform', NotificationType( diff --git a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py index 87a53fd61..8fe278436 100644 --- a/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py +++ b/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v3-trap.py @@ -19,7 +19,7 @@ Functionally similar to: -| $ snmptrap -v3 -e 8000000001020304 -l authPriv -u usr-sha-aes -A authkey1 -X privkey1 -a SHA -x AES demo.snmplabs.com 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v3 -e 8000000001020304 -l authPriv -u usr-sha-aes -A authkey1 -X privkey1 -a SHA -x AES demo-snmp.thola.io 12345 1.3.6.1.4.1.20408.4.1.1.2 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.hlapi import * @@ -29,7 +29,7 @@ UsmUserData('usr-sha-aes128', 'authkey1', 'privkey1', authProtocol=USM_AUTH_HMAC96_SHA, privProtocol=USM_PRIV_CFB128_AES), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'trap', NotificationType(ObjectIdentity('SNMPv2-MIB', 'authenticationFailure')) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py index 93ba8fff0..b09bd782a 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * setting SNMPv2-MIB::sysName.0 to new value (type taken from MIB) Functionally similar to: -| $ snmpset -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 = "new system name" +| $ snmpset -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 = "new system name" """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = setCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType( ObjectIdentity('SNMPv2-MIB', 'sysORDescr', 1), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py index 3c279437d..43f441dcd 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-asn1-mib-search-path.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 MIB object * pass non-default ASN.1 MIB source to MIB compiler Functionally similar to: -| $ snmpget -v2c -c public -M /usr/share/snmp demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v2c -c public -M /usr/share/snmp demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi import * @@ -20,7 +20,7 @@ iterator = getCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType( ObjectIdentity( diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py index 38871cd81..b6e1bfc98 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid-and-contextname.py @@ -6,7 +6,7 @@ * with SNMPv3 with user 'usr-md5-none', MD5 auth and no privacy protocols * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * addressing particular set of Managed Objects at remote SNMP Engine by: * contextEngineId 0x80004fb805636c6f75644dab22cc and * contextName 'a172334d7d97871b72241397f713fa12' @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmpset -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 -E 80004fb805636c6f75644dab22cc -n a172334d7d97871b72241397f713fa12 demo.snmplabs.com SNMPv2-MIB::sysORDescr.1 = "new system name" +| $ snmpset -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 -E 80004fb805636c6f75644dab22cc -n a172334d7d97871b72241397f713fa12 demo-snmp.thola.io SNMPv2-MIB::sysORDescr.1 = "new system name" """# from pysnmp.hlapi import * @@ -22,7 +22,7 @@ iterator = setCmd( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData( contextEngineId=OctetString(hexValue='80004fb805636c6f75644dab22cc'), contextName='da761cfc8c94d3aceef4f60f049105ba' diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py index 3f50481d6..becaef171 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-contextengineid.py @@ -8,12 +8,12 @@ * use remote SNMP Engine ID 0x80004fb805636c6f75644dab22cc (USM autodiscovery will run) * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * setting SNMPv2-MIB::sysName.0 to new value (type coerced from MIB) Functionally similar to: -| $ snmpset -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 -E 80004fb805636c6f75644dab22cc demo.snmplabs.com SNMPv2-MIB::sysORDescr.1 = "new system name" +| $ snmpset -v3 -u usr-md5-des -l authPriv -A authkey1 -X privkey1 -E 80004fb805636c6f75644dab22cc demo-snmp.thola.io SNMPv2-MIB::sysORDescr.1 = "new system name" """# from pysnmp.hlapi import * @@ -22,7 +22,7 @@ SnmpEngine(), UsmUserData('usr-md5-des', 'authkey1', 'privkey1', securityEngineId=OctetString(hexValue='80004fb805636c6f75644dab22cc')), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysName', 0), 'new system name') ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py index 00a2c9e71..fd4d8e780 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py @@ -6,7 +6,7 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs within TCP-MIB::tcpConnTable column * TCP-MIB Python module will be searched by a user-specified filesystem path (/opt/mib/pysnmp) and in Python package (python_packaged_mibs) @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo.snmplabs.com TCP-MIB::tcpConnTable +| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo-snmp.thola.io TCP-MIB::tcpConnTable """# from pysnmp.hlapi import * @@ -23,7 +23,7 @@ iterator = bulkCmd( SnmpEngine(), UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 50, ObjectType( diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py index 9b99693a5..cf3003442 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-timeout-and-retries.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for an OID in string form * use custom timeout and request retries values @@ -25,7 +25,7 @@ Functionally similar to: -| $ snmpget -v1 -c public -t 2 -r 0 demo.snmplabs.com 1.3.6.1.2.1.1.1.0 +| $ snmpget -v1 -c public -t 2 -r 0 demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 """# from pysnmp.hlapi import * @@ -33,7 +33,7 @@ iterator = getCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161), timeout=2.0, retries=0), + UdpTransportTarget(('demo-snmp.thola.io', 161), timeout=2.0, retries=0), ContextData(), ObjectType(ObjectIdentity('1.3.6.1.2.1.1.1.0')) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py index cadc2c3c5..647ade4da 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-v3-security-name.py @@ -7,7 +7,7 @@ * with SNMPv3, user 'usr-md5-none', securityName 'myuser' MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for an OID in text form The securityName parameter can be thought as an alias to userName and @@ -20,7 +20,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1', securityName='myuser'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6.1.2.1.1.1.0')) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py index 253b92242..6e708389d 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-index.py @@ -6,13 +6,13 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 and IF-MIB::ifOutOctets.1 MIB object * perform response OIDs and values resolution at MIB Functionally similar to: -| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo.snmplabs.com IF-MIB::ifInOctets.1 IF-MIB::ifOutOctets.1 +| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo-snmp.thola.io IF-MIB::ifInOctets.1 IF-MIB::ifOutOctets.1 """# from pysnmp.hlapi import * @@ -20,7 +20,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1)), ObjectType(ObjectIdentity('IF-MIB', 'ifOutOctets', 1)) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py index c04b68917..193a33594 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py @@ -6,12 +6,12 @@ * with SNMPv3, user 'usr-sha-aes128', SHA auth, AES128 privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 MIB object Functionally similar to: -| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -a SHA -x AES demo.snmplabs.com TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 +| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -a SHA -x AES demo-snmp.thola.io TCP-MIB::tcpConnLocalAddress."0.0.0.0".22."0.0.0.0".0 """# from pysnmp.hlapi import * @@ -23,7 +23,7 @@ authProtocol=USM_AUTH_HMAC96_SHA, privProtocol=USM_PRIV_CFB128_AES ), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType( ObjectIdentity( diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py index 261e46f9b..a4165956a 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-fetch-scalar-and-table-variables-over-ipv6.py @@ -13,7 +13,7 @@ Functionally similar to: -| $ snmpbulkwalk -v3 -lauthPriv -u usr-md5-des -A authkey1 -X privkey1 -Cn1, -Cr25 demo.snmplabs.com IP-MIB::ipAdEntAddr IP-MIB::ipAddrEntry +| $ snmpbulkwalk -v3 -lauthPriv -u usr-md5-des -A authkey1 -X privkey1 -Cn1, -Cr25 demo-snmp.thola.io IP-MIB::ipAdEntAddr IP-MIB::ipAddrEntry """# from pysnmp.hlapi import * diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py index ce114002d..eeef23b92 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-packets.py @@ -6,14 +6,14 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * run till end-of-mib condition is reported by Agent OR maxCalls == 10 request-response interactions occur Functionally similar to: -| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo.snmplabs.com SNMPv2-MIB::system +| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo-snmp.thola.io SNMPv2-MIB::system """# from pysnmp.hlapi import * @@ -21,7 +21,7 @@ iterator = bulkCmd( SnmpEngine(), UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 50, ObjectType(ObjectIdentity('SNMPv2-MIB', 'system')), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-variables.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-variables.py index c0c355c52..9fb08095e 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-variables.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getbulk-limit-number-of-variables.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with values non-repeaters = 0, max-repetitions = 25 * for two OIDs in string form * stop when response OIDs leave the scopes of initial OIDs OR @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmpbulkwalk -v2c -c public demo.snmplabs.com -Cn0 -Cr25 1.3.6.1.2.1.2.2 1.3.6.1.2.1.2.3 +| $ snmpbulkwalk -v2c -c public demo-snmp.thola.io -Cn0 -Cr25 1.3.6.1.2.1.2.2 1.3.6.1.2.1.2.3 """# from pysnmp.hlapi import * @@ -22,7 +22,7 @@ iterator = bulkCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 25, ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2')), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py index 950e9db62..102dd99f4 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-limit-number-of-variables.py @@ -6,14 +6,14 @@ * with SNMPv3, user 'usr-sha-aes128', SHA auth, AES128 privacy * over UDP/IPv4 -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB * run till end-of-mib condition is reported by Agent OR maxRows == 100 * ignoring non-increasing OIDs whenever reported by Agent Functionally similar to: -| $ snmpwalk -v3 -lauthPriv -u usr-sha-aes128 -A authkey1 -X privkey1 -a MD5 -x AES demo.snmplabs.com SNMPv2-MIB::system +| $ snmpwalk -v3 -lauthPriv -u usr-sha-aes128 -A authkey1 -X privkey1 -a MD5 -x AES demo-snmp.thola.io SNMPv2-MIB::system """# from pysnmp.hlapi import * @@ -25,7 +25,7 @@ authProtocol=USM_AUTH_HMAC96_SHA, privProtocol=USM_PRIV_CFB128_AES ), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB')), maxRows=100, ignoreNonIncreasingOid=True diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py index 0008f4bc9..9788e2b04 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/getnext-multiple-oids-to-eom.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for two OIDs in string form * stop when response OIDs leave the scopes of initial OIDs Functionally similar to: -| $ snmpwalk -v2c -c public demo.snmplabs.com 1.3.6.1.2.1.2.2.1.2 1.3.6.1.2.1.2.2.1.3 +| $ snmpwalk -v2c -c public demo-snmp.thola.io 1.3.6.1.2.1.2.2.1.2 1.3.6.1.2.1.2.2.1.3 """# from pysnmp.hlapi import * @@ -20,7 +20,7 @@ iterator = nextCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1.2')), ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2.1.3')), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py index b69f1c6b7..e1f583a1c 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/multiple-get-calls.py @@ -6,7 +6,7 @@ * with SNMPv3, user 'usr-md5-none', MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 and IF-MIB::ifOutOctets.1 MIB objects * with MIB lookup enabled @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi import * @@ -28,7 +28,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData() ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py index ed7529999..c85f3f4bb 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/preload-pysnmp-mibs.py @@ -1,26 +1,21 @@ """ 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 IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io: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 demo.snmplabs.com:161 1.3.6 - """# from pysnmp.hlapi import * iterator = nextCmd( SnmpEngine(), UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6').loadMibs()) ) @@ -38,4 +33,4 @@ else: for varBind in varBinds: - print(' = '.join([x.prettyPrint() for x in varBind])) + print(' = '.join([x.prettyPrint() for x in varBind])) \ No newline at end of file diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py index 2ac2b3185..cb339ff86 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-mib.py @@ -6,12 +6,12 @@ * with SNMPv3, user 'usr-md5-none', MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs in IF-MIB Functionally similar to: -| $ snmpwalk -v3 -lauthPriv -u usr-md5-none -A authkey1 -X privkey1 demo.snmplabs.com IF-MIB:: +| $ snmpwalk -v3 -lauthPriv -u usr-md5-none -A authkey1 -X privkey1 demo-snmp.thola.io IF-MIB:: """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = nextCmd( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB')) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py index 260102a5d..8006c4887 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/pull-whole-snmp-table.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for some columns of the IF-MIB::ifEntry table * stop when response OIDs leave the scopes of initial OIDs Functionally similar to: -| $ snmpwalk -v1 -c public demo.snmplabs.com IF-MIB::ifDescr IF-MIB::ifType IF-MIB::ifMtu IF-MIB::ifSpeed IF-MIB::ifPhysAddress IF-MIB::ifType +| $ snmpwalk -v1 -c public demo-snmp.thola.io IF-MIB::ifDescr IF-MIB::ifType IF-MIB::ifMtu IF-MIB::ifSpeed IF-MIB::ifPhysAddress IF-MIB::ifType """# from pysnmp.hlapi import * @@ -20,7 +20,7 @@ iterator = nextCmd( SnmpEngine(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB', 'ifDescr')), ObjectType(ObjectIdentity('IF-MIB', 'ifType')), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py index 049e1be15..85edc530b 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/query-agents-from-multuple-threads-over-ipv4-and-ipv6.py @@ -10,7 +10,7 @@ with SNMPv3, user 'usr-md5-des', MD5 auth and DES privacy * over IPv4/UDP and over IPv6/UDP -* to an Agent at demo.snmplabs.com:161 and +* to an Agent at demo-snmp.thola.io:161 and to an Agent at [::1]:161 * for instances of SNMPv2-MIB::sysDescr.0 and SNMPv2-MIB::sysLocation.0 MIB objects @@ -30,13 +30,13 @@ TARGETS = ( # 1-st target (SNMPv1 over IPv4/UDP) (CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), # 2-nd target (SNMPv2c over IPv4/UDP) (CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), @@ -49,7 +49,7 @@ # 4-nd target (SNMPv3 over IPv4/UDP) (UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), (ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysLocation', 0)))), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py index a5eeb1a3f..7dc8a6789 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/set-multiple-scalar-values.py @@ -6,7 +6,7 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * setting three var-bindings to new values Please note, that in this example MIB lookup is only used @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmpset -v1 -c public demo.snmplabs.com 1.3.6.1.2.1.1.9.1.2.1 o 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.2.1 = 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.3.1 s "new system name" +| $ snmpset -v1 -c public demo-snmp.thola.io 1.3.6.1.2.1.1.9.1.2.1 o 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.2.1 = 1.3.6.1.4.1.20408.1.1 1.3.6.1.2.1.1.9.1.3.1 s "new system name" """# from pysnmp.hlapi import * @@ -23,7 +23,7 @@ iterator = setCmd( SnmpEngine(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType( ObjectIdentity('SNMPv2-MIB', 'sysORID', 1), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py index 36cfc0503..889dba0ae 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/specific-v3-engine-id.py @@ -8,7 +8,7 @@ * a non-existing user * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * if remote SNMP Engine ID is discovered, send SNMP GET request: @@ -22,7 +22,7 @@ snmpEngine = SnmpEngine() -transportTarget = UdpTransportTarget(('demo.snmplabs.com', 161)) +transportTarget = UdpTransportTarget(('demo-snmp.thola.io', 161)) # # To discover remote SNMP EngineID we will tap on SNMP engine inner workings diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-localized-keys.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-localized-keys.py index f5a5d789b..5351f5e5c 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-localized-keys.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-localized-keys.py @@ -8,7 +8,7 @@ * use localized auth and privacy keys instead of pass-phrase or master keys * configure authoritative SNMP engine ID (0x0000000000 can be used as well) * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for SNMPv2-MIB::sysDescr.0 MIB object instance Functionally similar to: @@ -18,7 +18,7 @@ -e 0x80004fb805636c6f75644dab22cc \ -3k 0x6b99c475259ef7976cf8d028a3381eeb \ -3K 0x92b5ef98f0a216885e73944e58c07345 \ - demo.snmplabs.com SNMPv2-MIB::sysDescr.0 + demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi import * @@ -35,7 +35,7 @@ privKeyType=usmKeyTypeLocalized, securityEngineId=OctetString( hexValue='80004fb805636c6f75644dab22cc')), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-master-keys.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-master-keys.py index 7b20095fe..9f4596434 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-master-keys.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-master-keys.py @@ -7,7 +7,7 @@ * with SNMPv3, user 'usr-md5-des', MD5 authentication, DES encryption * use master auth and privacy keys instead of pass-phrase * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for SNMPv2-MIB::sysDescr.0 MIB object instance Functionally similar to: @@ -16,7 +16,7 @@ -u usr-md5-des \ -3m 0x1dcf59e86553b3afa5d32fd5d61bf0cf \ -3M 0xec5ab55e93e1d85cb6846d0f23e845e0 \ - demo.snmplabs.com SNMPv2-MIB::sysDescr.0 + demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi import * @@ -31,7 +31,7 @@ hexValue='ec5ab55e93e1d85cb6846d0f23e845e0'), authKeyType=usmKeyTypeMaster, privKeyType=usmKeyTypeMaster), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py index 6254418c9..285df77a6 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-des.py @@ -6,12 +6,12 @@ * with SNMPv3, user 'usr-md5-des', MD5 authentication, DES encryption * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 MIB object Functionally similar to: -| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py index 724910b58..23ff6bae3 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-md5-none.py @@ -6,12 +6,12 @@ * with SNMPv3, user 'usr-md5-none', MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 MIB object Functionally similar to: -| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py index 8a5589200..404fe9019 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-none-none.py @@ -6,12 +6,12 @@ * with SNMPv3, user 'usr-none-none', no authentication, no encryption * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for IF-MIB::ifInOctets.1 MIB object Functionally similar to: -| $ snmpget -v3 -l noAuthNoPriv -u usr-none-none demo.snmplabs.com IF-MIB::ifInOctets.1 +| $ snmpget -v3 -l noAuthNoPriv -u usr-none-none demo-snmp.thola.io IF-MIB::ifInOctets.1 """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpEngine(), UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('IF-MIB', 'ifInOctets', 1)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py index e30e8239e..0a29aa7da 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/usm-sha-aes128.py @@ -6,7 +6,7 @@ * with SNMPv3, user 'usr-sha-aes', SHA authentication, AES128 encryption * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for SNMPv2-MIB::sysDescr.0 MIB object Available authentication protocols: @@ -30,7 +30,7 @@ Functionally similar to: -| $ snmpget -v3 -l authPriv -u usr-sha-aes -A authkey1 -X privkey1 -a SHA -x AES demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v3 -l authPriv -u usr-sha-aes -A authkey1 -X privkey1 -a SHA -x AES demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi import * @@ -40,7 +40,7 @@ UsmUserData('usr-sha-aes', 'authkey1', 'privkey1', authProtocol=USM_AUTH_HMAC96_SHA, privProtocol=USM_PRIV_CFB128_AES), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py index 55c49735a..58b20d94e 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v1-get.py @@ -6,12 +6,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for two instances of SNMPv2-MIB::sysDescr.0 MIB object, Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpEngine(), CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py index d7676e321..2592533be 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-get.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for two OIDs in string form Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.6.0 +| $ snmpget -v2c -c public demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.6.0 """# from pysnmp.hlapi import * @@ -19,7 +19,7 @@ iterator = getCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6.1.2.1.1.1.0')), ObjectType(ObjectIdentity('1.3.6.1.2.1.1.6.0')) diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-getbulk.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-getbulk.py index 15f684f50..92bfbddc2 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-getbulk.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/v2c-getbulk.py @@ -6,14 +6,14 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * with values non-repeaters = 0, max-repetitions = 25 * for two OIDs in string form * stop when response OIDs leave the scopes of initial OIDs Functionally similar to: -| $ snmpbulkwalk -v2c -c public demo.snmplabs.com -Cn0 -Cr25 1.3.6.1.2.1.2.2 1.3.6.1.2.1.2.3 +| $ snmpbulkwalk -v2c -c public demo-snmp.thola.io -Cn0 -Cr25 1.3.6.1.2.1.2.2 1.3.6.1.2.1.2.3 """# from pysnmp.hlapi import * @@ -21,7 +21,7 @@ iterator = bulkCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 25, ObjectType(ObjectIdentity('1.3.6.1.2.1.2.2')), diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py index c22d7b191..6ff02fecd 100644 --- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py +++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/waive-mib-lookup.py @@ -6,7 +6,7 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for an OID in string form * do not resolve request/response OIDs and values from/toto human-friendly form @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmpwalk -v2c -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1 +| $ snmpwalk -v2c -c public -ObentU demo-snmp.thola.io 1.3.6.1.2.1 """# from pysnmp.hlapi import * @@ -23,7 +23,7 @@ iterator = nextCmd( SnmpEngine(), CommunityData('public'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('1.3.6.1.2.1.1')), lookupMib=False diff --git a/examples/hlapi/v3arch/trollius/agent/ntforg/default-v1-trap.py b/examples/hlapi/v3arch/trollius/agent/ntforg/default-v1-trap.py index 1e74aa553..0b2c51348 100644 --- a/examples/hlapi/v3arch/trollius/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v3arch/trollius/agent/ntforg/default-v1-trap.py @@ -18,7 +18,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# import trollius @@ -32,7 +32,7 @@ def run(): iterator = sendNotification( snmpEngine, CommunityData('public'), # mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 162)), + UdpTransportTarget(('demo-snmp.thola.io', 162)), ContextData(), 'inform', NotificationType( diff --git a/examples/hlapi/v3arch/trollius/manager/cmdgen/getbulk-to-eom.py b/examples/hlapi/v3arch/trollius/manager/cmdgen/getbulk-to-eom.py index 50a773950..dd67cdf82 100644 --- a/examples/hlapi/v3arch/trollius/manager/cmdgen/getbulk-to-eom.py +++ b/examples/hlapi/v3arch/trollius/manager/cmdgen/getbulk-to-eom.py @@ -6,14 +6,14 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * run till end-of-mib condition is reported by Agent * based on trollius I/O framework Functionally similar to: -| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo.snmplabs.com SNMPv2-MIB::system +| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo-snmp.thola.io SNMPv2-MIB::system """# import trollius @@ -30,7 +30,7 @@ def run(varBinds): iterator = bulkCmd( snmpEngine, UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 50, *varBinds diff --git a/examples/hlapi/v3arch/trollius/manager/cmdgen/v1-get.py b/examples/hlapi/v3arch/trollius/manager/cmdgen/v1-get.py index 1e17f34e6..060e0eb33 100644 --- a/examples/hlapi/v3arch/trollius/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v3arch/trollius/manager/cmdgen/v1-get.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for an instance of SNMPv2-MIB::sysDescr.0 MIB object * Based on trollius I/O framework Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# import trollius @@ -27,7 +27,7 @@ def run(): iterator = getCmd( snmpEngine, CommunityData('public', mpModel=0), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)) ) diff --git a/examples/hlapi/v3arch/twisted/agent/ntforg/default-v1-trap.py b/examples/hlapi/v3arch/twisted/agent/ntforg/default-v1-trap.py index bf4095369..78be1957b 100644 --- a/examples/hlapi/v3arch/twisted/agent/ntforg/default-v1-trap.py +++ b/examples/hlapi/v3arch/twisted/agent/ntforg/default-v1-trap.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 0.0.0.0 1 0 0 1.3.6.1.2.1.1.1.0 s "my system" """# from twisted.internet.task import react @@ -68,4 +68,4 @@ def run(reactor, hostname): return deferred -react(run, ['demo.snmplabs.com']) +react(run, ['demo-snmp.thola.io']) diff --git a/examples/hlapi/v3arch/twisted/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/v3arch/twisted/agent/ntforg/multiple-notifications-at-once.py index 29f474a5a..4a16139f9 100644 --- a/examples/hlapi/v3arch/twisted/agent/ntforg/multiple-notifications-at-once.py +++ b/examples/hlapi/v3arch/twisted/agent/ntforg/multiple-notifications-at-once.py @@ -18,8 +18,8 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 -| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 +| $ snmpinform -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 """# from twisted.internet.defer import DeferredList @@ -77,5 +77,5 @@ def sendall(reactor, destinations): ) -react(sendall, [[('demo.snmplabs.com', 'trap'), - ('demo.snmplabs.com', 'inform')]]) +react(sendall, [[('demo-snmp.thola.io', 'trap'), + ('demo-snmp.thola.io', 'inform')]]) diff --git a/examples/hlapi/v3arch/twisted/agent/ntforg/v2c-trap-inline-callbacks.py b/examples/hlapi/v3arch/twisted/agent/ntforg/v2c-trap-inline-callbacks.py index 12a130e85..b42ae56f6 100644 --- a/examples/hlapi/v3arch/twisted/agent/ntforg/v2c-trap-inline-callbacks.py +++ b/examples/hlapi/v3arch/twisted/agent/ntforg/v2c-trap-inline-callbacks.py @@ -14,7 +14,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "Hello from Twisted" +| $ snmptrap -v2c -c public demo-snmp.thola.io 12345 1.3.6.1.6.3.1.1.5.2 1.3.6.1.2.1.1.1.0 s "Hello from Twisted" """# from twisted.internet.task import react, defer @@ -45,4 +45,4 @@ def sendtrap(reactor, snmpEngine, hostname): # Preserve SnmpEngine instance across [potentially] multiple calls to safe on initialization snmpEngine = SnmpEngine() -react(sendtrap, [snmpEngine, 'demo.snmplabs.com']) +react(sendtrap, [snmpEngine, 'demo-snmp.thola.io']) diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/custom-timeout-and-retries.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/custom-timeout-and-retries.py index 96a93749e..2880e6bc1 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/custom-timeout-and-retries.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/custom-timeout-and-retries.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP with non-default timeout and no retries - * to an Agent at demo.snmplabs.com:161 + * to an Agent at demo-snmp.thola.io:161 * for two instances of SNMPv2-MIB::sysDescr.0 MIB object, * based on Twisted I/O framework Functionally similar to: -| $ snmpget -v2c -c public -r 0 -t 2 demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public -r 0 -t 2 demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from twisted.internet.task import react @@ -54,4 +54,4 @@ def getSysDescr(reactor, hostname): return deferred -react(getSysDescr, ['demo.snmplabs.com']) +react(getSysDescr, ['demo-snmp.thola.io']) diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/getbulk-to-eom.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/getbulk-to-eom.py index e558fe89f..fd6a48bf0 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/getbulk-to-eom.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/getbulk-to-eom.py @@ -6,14 +6,14 @@ * with SNMPv3, user 'usr-none-none', no authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs past SNMPv2-MIB::system * run till end-of-mib condition is reported by Agent * based on Twisted I/O framework Functionally similar to: -| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo.snmplabs.com SNMPv2-MIB::system +| $ snmpbulkwalk -v3 -lnoAuthNoPriv -u usr-none-none -Cn0 -Cr50 demo-snmp.thola.io SNMPv2-MIB::system """# from twisted.internet.task import react @@ -45,7 +45,7 @@ def getbulk(reactor, snmpEngine, varBinds): deferred = bulkCmd( snmpEngine, UsmUserData('usr-none-none'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), 0, 50, varBinds diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/multiple-concurrent-queries.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/multiple-concurrent-queries.py index 4e1b3754e..c679eacee 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/multiple-concurrent-queries.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/multiple-concurrent-queries.py @@ -6,15 +6,15 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for two instances of SNMPv2-MIB::sysDescr.0 and SNMPv2-MIB::sysLocation.0 MIB object, * based on Twisted I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 -| $ snmpget -v2c -c public demo.snmplabs.com SNMPv2-MIB::sysLocation.0 +| $ snmpget -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 +| $ snmpget -v2c -c public demo-snmp.thola.io SNMPv2-MIB::sysLocation.0 """# from twisted.internet.defer import DeferredList @@ -62,4 +62,4 @@ def getScalar(objectType): ) -react(getSystem, ['demo.snmplabs.com']) +react(getSystem, ['demo-snmp.thola.io']) diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py index e7776a341..8be4929eb 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-mibs-from-multiple-agents-at-once.py @@ -4,15 +4,15 @@ * with SNMPv3 with user 'usr-md5-none', MD5 auth and no privacy protocols * over IPv4/UDP -* to Agents at demo.snmplabs.com:161 and demo.snmplabs.com:1161 +* to Agents at demo-snmp.thola.io:161 and demo-snmp.thola.io:1161 * for multiple MIB subtrees and tables * for whole MIB * based on Twisted I/O framework Functionally similar to: -| $ snmpget -v2c -c public demo.snmplabs.com:161 SNMPv2-MIB::system -| $ snmpget -v2c -c public demo.snmplabs.comL1161 SNMPv2-MIB::system +| $ snmpget -v2c -c public demo-snmp.thola.io:161 SNMPv2-MIB::system +| $ snmpget -v2c -c public demo-snmp.thola.ioL1161 SNMPv2-MIB::system """# from twisted.internet.defer import DeferredList @@ -67,4 +67,4 @@ def getall(reactor, hostnames): ) -react(getall, [(('demo.snmplabs.com', 161), ('demo.snmplabs.com', 1161))]) +react(getall, [(('demo-snmp.thola.io', 161), ('demo-snmp.thola.io', 1161))]) diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-whole-mib.py index ee1f376f0..c3036d990 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/pull-whole-mib.py @@ -6,13 +6,13 @@ * with SNMPv3, user 'usr-md5-none', MD5 authentication, no privacy * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for all OIDs in IF-MIB * based on Twisted I/O framework Functionally similar to: -| $ snmpwalk -v3 -lauthPriv -u usr-md5-none -A authkey1 -X privkey1 demo.snmplabs.com IF-MIB:: +| $ snmpwalk -v3 -lauthPriv -u usr-md5-none -A authkey1 -X privkey1 demo-snmp.thola.io IF-MIB:: """# from twisted.internet.task import react @@ -44,7 +44,7 @@ def getnext(reactor, snmpEngine, varBinds): deferred = nextCmd( snmpEngine, UsmUserData('usr-md5-none', 'authkey1'), - UdpTransportTarget(('demo.snmplabs.com', 161)), + UdpTransportTarget(('demo-snmp.thola.io', 161)), ContextData(), varBinds ) diff --git a/examples/hlapi/v3arch/twisted/manager/cmdgen/v1-get.py b/examples/hlapi/v3arch/twisted/manager/cmdgen/v1-get.py index 735e146fd..643395436 100644 --- a/examples/hlapi/v3arch/twisted/manager/cmdgen/v1-get.py +++ b/examples/hlapi/v3arch/twisted/manager/cmdgen/v1-get.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for two instances of SNMPv2-MIB::sysDescr.0 MIB object, * based on Twisted I/O framework Functionally similar to: -| $ snmpget -v1 -c public demo.snmplabs.com SNMPv2-MIB::sysDescr.0 +| $ snmpget -v1 -c public demo-snmp.thola.io SNMPv2-MIB::sysDescr.0 """# from twisted.internet.task import react @@ -51,4 +51,4 @@ def getSysDescr(reactor, hostname): return deferred -react(getSysDescr, ['demo.snmplabs.com']) +react(getSysDescr, ['demo-snmp.thola.io']) diff --git a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py index 20056466f..55f018dfa 100644 --- a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py +++ b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py @@ -8,12 +8,12 @@ * with community name 'public' * over IPv4/UDP and IPv6/UDP * send INFORM notification -* to a Manager at demo.snmplabs.com:162 and [::1]:162 +* to a Manager at demo-snmp.thola.io:162 and [::1]:162 * with TRAP ID 'coldStart' specified as an OID The following Net-SNMP command will produce similar SNMP notification: -| $ snmpinform -v2c -c public udp:demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1 +| $ snmpinform -v2c -c public udp:demo-snmp.thola.io 0 1.3.6.1.6.3.1.1.5.1 | $ snmpinform -v2c -c public udp6:[::1] 0 1.3.6.1.6.3.1.1.5.1 """# @@ -77,7 +77,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, udp.DOMAIN_NAME, udp.UdpSocketTransport().openClientMode() ) transportDispatcher.sendMessage( - encoder.encode(trapMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 162) + encoder.encode(trapMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 162) ) transportDispatcher.jobStarted(1) diff --git a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py index 9a689fb36..fd4d26ab6 100644 --- a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py +++ b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py @@ -9,7 +9,7 @@ * with community name 'public' * over IPv4/UDP and IPv6/UDP * send TRAP notification -* to a Manager at demo.snmplabs.com:162 and [::1] +* to a Manager at demo-snmp.thola.io:162 and [::1] * with TRAP ID 'coldStart' specified as an OID * include managed objects information: * with default Uptime value @@ -18,7 +18,7 @@ The following Net-SNMP commands will produce similar SNMP notification: -| $ snmptrap -v1 -c public udp:demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345 +| $ snmptrap -v1 -c public udp:demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345 | $ snmptrap -v1 -c public udp6:[::1] 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345 """# @@ -54,7 +54,7 @@ ) transportDispatcher.sendMessage( - encoder.encode(trapMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 162) + encoder.encode(trapMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 162) ) # UDP/IPv6 diff --git a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py index f0b513735..64db26298 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py +++ b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py @@ -6,12 +6,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for OIDs in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v1 -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0 +| $ snmpget -v1 -c public -ObentU demo-snmp.thola.io 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0 """# from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher @@ -82,7 +82,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, # Pass message to dispatcher transportDispatcher.sendMessage( - encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 161) + encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 161) ) transportDispatcher.jobStarted(1) diff --git a/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py index 031193c48..a9e617a06 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py +++ b/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for OID in tuple form * with non-repeaters=0 and max-repeaters=25 This script performs similar to the following Net-SNMP command: -| $ snmpbulkwalk -v2c -c public -ObentU -Cn0 -Cr25 demo.snmplabs.com 1.3.6 +| $ snmpbulkwalk -v2c -c public -ObentU -Cn0 -Cr25 demo-snmp.thola.io 1.3.6 """# from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher @@ -114,7 +114,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, ) transportDispatcher.sendMessage( - encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 161) + encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 161) ) transportDispatcher.jobStarted(1) diff --git a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py index 3a5439003..ec3de0d8c 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py +++ b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py @@ -6,12 +6,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpwalk -v1 -c public -ObentU demo.snmplabs.com 1.3.6 +| $ snmpwalk -v1 -c public -ObentU demo-snmp.thola.io 1.3.6 """# from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher @@ -112,7 +112,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, ) transportDispatcher.sendMessage( - encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 161) + encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 161) ) transportDispatcher.jobStarted(1) diff --git a/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py b/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py index 24d7a3ebd..70e11f55e 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py +++ b/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * from a non-local, spoofed IP 1.2.3.4 (root and Python 3.3+ required) * for OIDs in string form This script performs similar to the following Net-SNMP command: -| $ snmpget -v2c -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0 +| $ snmpget -v2c -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0 But unlike the above command, this script issues SNMP request from a non-default, non-local IP address. @@ -35,7 +35,7 @@ from time import time # Send request message to this address -transportAddress = udp.UdpTransportAddress(('104.236.166.95', 161)) +transportAddress = udp.UdpTransportAddress(('135.181.62.68', 161)) # Send request message from this non-local (!) IP address transportAddress.setLocalAddress(('1.2.3.4', 0)) diff --git a/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py index 60fb25186..ed4b97b65 100644 --- a/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py +++ b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py @@ -6,12 +6,12 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at demo.snmplabs.com:161 +* to an Agent at demo-snmp.thola.io:161 * for OIDs in string form and values in form of pyasn1 objects This script performs similar to the following Net-SNMP command: -| $ snmpset -v2c -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1.1.9.1.3.1 s 'New description' 1.3.6.1.2.1.1.9.1.4.1 t 12 +| $ snmpset -v2c -c public -ObentU demo-snmp.thola.io 1.3.6.1.2.1.1.9.1.3.1 s 'New description' 1.3.6.1.2.1.1.9.1.4.1 t 12 """# from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher @@ -84,7 +84,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, # Pass message to dispatcher transportDispatcher.sendMessage( - encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo.snmplabs.com', 161) + encoder.encode(reqMsg), udp.DOMAIN_NAME, ('demo-snmp.thola.io', 161) ) transportDispatcher.jobStarted(1) diff --git a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py index 8fb7c4830..cb5a831bb 100644 --- a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py +++ b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py @@ -12,15 +12,15 @@ * with user 'usr-md5-none', auth: MD5, priv NONE * over IPv4/UDP * send INFORM notification -* to multiple Managers at 104.236.166.95:162, 104.236.166.95:162 +* to multiple Managers at 135.181.62.68:162, 135.181.62.68:162 * with TRAP ID 'coldStart' specified as an OID * include managed objects information: 1.3.6.1.2.1.1.1.0 = 'Example Notificator' Functionally similar to: -| $ snmpinform -v3 -l authPriv -u usr-md5-none -A authkey1 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' -| $ snmpinform -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' +| $ snmpinform -v3 -l authPriv -u usr-md5-none -A authkey1 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' +| $ snmpinform -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' """# from pysnmp.entity import engine, config @@ -59,7 +59,7 @@ # First target config.addTargetAddr( snmpEngine, 'my-nms-1', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds-1', tagList='all-my-managers' ) @@ -67,7 +67,7 @@ # Second target config.addTargetAddr( snmpEngine, 'my-nms-2', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds-2', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py index f66b781aa..fd6b241f5 100644 --- a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py +++ b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py @@ -15,7 +15,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1 +| $ snmptrap -v2c -c public demo-snmp.thola.io 0 1.3.6.1.6.3.1.1.5.1 """# from pysnmp.entity import engine, config @@ -43,7 +43,7 @@ # Create named target config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/send-inform-to-multiple-managers.py b/examples/v3arch/asyncore/agent/ntforg/send-inform-to-multiple-managers.py index 3349f4c28..bd0acf66d 100644 --- a/examples/v3arch/asyncore/agent/ntforg/send-inform-to-multiple-managers.py +++ b/examples/v3arch/asyncore/agent/ntforg/send-inform-to-multiple-managers.py @@ -9,7 +9,7 @@ * with community name 'public' * over IPv4/UDP * send TRAP notification -* to multiple Managers at 104.236.166.95:162, 104.236.166.95:162 +* to multiple Managers at 135.181.62.68:162, 135.181.62.68:162 * with TRAP ID 'coldStart' specified as an OID * include managed objects information: 1.3.6.1.2.1.1.1.0 = 'Example Notificator' @@ -17,9 +17,9 @@ Functionally similar to: -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' """# from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ # First target config.addTargetAddr( snmpEngine, 'my-nms-1', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) @@ -55,7 +55,7 @@ # Second target config.addTargetAddr( snmpEngine, 'my-nms-2', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) @@ -63,7 +63,7 @@ # Third target config.addTargetAddr( snmpEngine, 'my-nms-3', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/send-notification-over-ipv4-and-ipv6.py b/examples/v3arch/asyncore/agent/ntforg/send-notification-over-ipv4-and-ipv6.py index c2031bfab..1728a75d7 100644 --- a/examples/v3arch/asyncore/agent/ntforg/send-notification-over-ipv4-and-ipv6.py +++ b/examples/v3arch/asyncore/agent/ntforg/send-notification-over-ipv4-and-ipv6.py @@ -17,7 +17,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public udp:104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public udp:135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' | $ snmptrap -v2c -c public udp6:[::1] 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' """# @@ -47,7 +47,7 @@ config.addTargetAddr( snmpEngine, 'my-nms-1', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/send-packet-from-specific-address.py b/examples/v3arch/asyncore/agent/ntforg/send-packet-from-specific-address.py index 8552c4d9d..f80a5372e 100644 --- a/examples/v3arch/asyncore/agent/ntforg/send-packet-from-specific-address.py +++ b/examples/v3arch/asyncore/agent/ntforg/send-packet-from-specific-address.py @@ -7,14 +7,14 @@ * SNMPv1 * with community name 'public' * over IPv4/UDP -* to a Manager at 104.236.166.95 UDP port 162 +* to a Manager at 135.181.62.68 UDP port 162 * from local address 0.0.0.0, UDP port 61024 * send TRAP notification * with TRAP ID 'coldStart' specified as an OID Functionally similar to: -| $ snmptrap -v1 -c public 104.236.166.95 1.3.6.1.6.3.1.1.5.1 0.0.0.0 1 0 0 +| $ snmptrap -v1 -c public 135.181.62.68 1.3.6.1.6.3.1.1.5.1 0.0.0.0 1 0 0 """# from pysnmp.entity import engine, config @@ -43,7 +43,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/send-trap-to-multiple-managers.py b/examples/v3arch/asyncore/agent/ntforg/send-trap-to-multiple-managers.py index 4ea058f14..2ea2afff5 100644 --- a/examples/v3arch/asyncore/agent/ntforg/send-trap-to-multiple-managers.py +++ b/examples/v3arch/asyncore/agent/ntforg/send-trap-to-multiple-managers.py @@ -9,7 +9,7 @@ * with community name 'public' * over IPv4/UDP * send TRAP notification -* to multiple Managers at 104.236.166.95:162, 104.236.166.95:162 +* to multiple Managers at 135.181.62.68:162, 135.181.62.68:162 * with TRAP ID 'coldStart' specified as an OID * include managed objects information: 1.3.6.1.2.1.1.1.0 = 'Example Notificator' @@ -17,9 +17,9 @@ Functionally similar to: -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example notification' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' """# from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ # First target config.addTargetAddr( snmpEngine, 'my-nms-1', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) @@ -55,7 +55,7 @@ # Second target config.addTargetAddr( snmpEngine, 'my-nms-2', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) @@ -63,7 +63,7 @@ # Third target config.addTargetAddr( snmpEngine, 'my-nms-3', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py index 7a124a36e..3b0c7f578 100644 --- a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py +++ b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py @@ -7,14 +7,14 @@ * SNMPv3 * with user 'usr-md5-none', auth: MD5, priv NONE * over IPv4/UDP -* to a Manager at demo.snmplabs.com:162 +* to a Manager at demo-snmp.thola.io:162 * send INFORM notification * with TRAP ID 'warmStart' specified as an OID * include managed object information 1.3.6.1.2.1.1.5.0 = 'system name' Functionally similar to: -| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.5.0 = 'system name' +| $ snmpinform -v3 -l authNoPriv -u usr-md5-none -A authkey1 demo-snmp.thola.io 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.5.0 = 'system name' """# from pysnmp.entity import engine, config @@ -43,7 +43,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/v1-trap.py b/examples/v3arch/asyncore/agent/ntforg/v1-trap.py index a671fd4bc..94e6ef828 100644 --- a/examples/v3arch/asyncore/agent/ntforg/v1-trap.py +++ b/examples/v3arch/asyncore/agent/ntforg/v1-trap.py @@ -7,18 +7,18 @@ * SNMPv1 * with community name 'public' * over IPv4/UDP -* to a Manager at 104.236.166.95:162 +* to a Manager at 135.181.62.68:162 * send TRAP notification * with TRAP ID 'coldStart' specified as an OID * include managed objects information: * overriding Uptime value with 12345 -* overriding Agent Address with '104.236.166.95' +* overriding Agent Address with '135.181.62.68' * 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' Functionally similar to: -| $ snmptrap -v1 -c public demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 104.236.166.95 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v1 -c public demo-snmp.thola.io 1.3.6.1.4.1.20408.4.1.1.2 135.181.62.68 6 432 12345 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.entity import engine, config @@ -45,7 +45,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py b/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py index 752af9bf4..468645c3a 100644 --- a/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py +++ b/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py @@ -8,7 +8,7 @@ * with community name 'public' * over IPv4/UDP * send INFORM notification -* to a Manager at 104.236.166.95:162 +* to a Manager at 135.181.62.68:162 * with TRAP ID 'coldStart' specified as an OID * include managed objects information: 1.3.6.1.2.1.1.1.0 = 'Example Notificator' @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmpinform -v2c -c public 104.236.166.95 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example Notificator' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' +| $ snmpinform -v2c -c public 135.181.62.68 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s 'Example Notificator' 1.3.6.1.2.1.1.5.0 s 'Notificator Example' """# from pysnmp.entity import engine, config @@ -44,7 +44,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py index e84604906..8cfda12b8 100644 --- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py +++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py @@ -8,7 +8,7 @@ * with community name 'public' * over IPv4/UDP * send TRAP notification -* to a Manager at 104.236.166.95:162 +* to a Manager at 135.181.62.68:162 * with TRAP ID IF-MIB::ifLink as MIB symbol The IF-MIB::ifLink NOTIFICATION-TYPE implies including four other @@ -23,7 +23,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public 104.236.166.95 0 1.3.6.1.6.3.1.1.5.3 IF-MIB::ifIndex."1" IF-MIB::ifAdminStatus."1" IF-MIB::ifOperStatus."1" IF-MIB::ifDescr."1" +| $ snmptrap -v2c -c public 135.181.62.68 0 1.3.6.1.6.3.1.1.5.3 IF-MIB::ifIndex."1" IF-MIB::ifAdminStatus."1" IF-MIB::ifOperStatus."1" IF-MIB::ifDescr."1" """# from pysnmp.entity import engine, config @@ -70,7 +70,7 @@ config.addTargetAddr( snmpEngine, 'my-nms-1', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py index c3ebd2b53..a90abda8e 100644 --- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py +++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py @@ -8,7 +8,7 @@ * with community name 'public' * over IPv4/UDP * send TRAP notification -* to a Manager at 104.236.166.95:162 +* to a Manager at 135.181.62.68:162 * with TRAP ID 'coldStart' specified as an OID * include managed objects information: 1.3.6.1.2.1.1.1.0 = 'Example Notificator' @@ -16,7 +16,7 @@ Functionally similar to: -| $ snmptrap -v2c -c public 104.236.166.95 12345 1.3.6.1.4.1.20408.4.1.1.2 +| $ snmptrap -v2c -c public 135.181.62.68 12345 1.3.6.1.4.1.20408.4.1.1.2 """# from pysnmp.entity import engine, config @@ -43,7 +43,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/agent/ntforg/v3-trap.py b/examples/v3arch/asyncore/agent/ntforg/v3-trap.py index 0acc4a75e..ccc340141 100644 --- a/examples/v3arch/asyncore/agent/ntforg/v3-trap.py +++ b/examples/v3arch/asyncore/agent/ntforg/v3-trap.py @@ -8,13 +8,13 @@ * with user 'usr-md5-des', auth: MD5, priv DES * over IPv4/UDP * send TRAP notification -* to a Manager at 104.236.166.95:162 +* to a Manager at 135.181.62.68:162 * with TRAP ID 'warmStart' specified as an OID * include managed object information 1.3.6.1.2.1.1.5.0 = 'system name' Functionally similar to: -| $ snmptrap -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -e 8000000001020304 demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system" +| $ snmptrap -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -e 8000000001020304 demo-snmp.thola.io 0 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system" """# from pysnmp.entity import engine, config @@ -48,7 +48,7 @@ config.addTargetAddr( snmpEngine, 'my-nms', - udp.DOMAIN_NAME, ('104.236.166.95', 162), + udp.DOMAIN_NAME, ('135.181.62.68', 162), 'my-creds', tagList='all-my-managers' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py index 4ea68110e..01d06679d 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py +++ b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py @@ -9,12 +9,12 @@ * contextEngineId: 0x80004fb805636c6f75644dab22cc, * contextName: da761cfc8c94d3aceef4f60f049105ba * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 80004fb805636c6f75644dab22cc -n da761cfc8c94d3aceef4f60f049105ba -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.1.0 +| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 80004fb805636c6f75644dab22cc -n da761cfc8c94d3aceef4f60f049105ba -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.1.0 """# from pysnmp.entity import engine, config @@ -51,7 +51,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py index b7e137b3a..aec57f6a7 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py +++ b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py @@ -6,13 +6,13 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * wait 3 seconds for response, retry 5 times (plus one initial attempt) * for an OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v2c -c public -ObentU -r 5 -t 1 104.236.166.95 1.3.6.1.2.1.1.1.0 +| $ snmpget -v2c -c public -ObentU -r 5 -t 1 135.181.62.68 1.3.6.1.2.1.1.1.0 """# from pysnmp.entity import engine, config @@ -46,7 +46,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds', timeout=300, # in 1/100 sec retryCount=5 diff --git a/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py b/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py index 499514f38..37b5098b0 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getbulk-fetch-scalar-and-table-variables.py @@ -6,14 +6,14 @@ * with SNMPv3 with user 'usr-md5-des', MD5 auth and DES privacy protocols * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * with values non-repeaters = 1, max-repetitions = 25 * for two OIDs in tuple form (first OID is non-repeating) * stop on end-of-mib condition for both OIDs This script performs similar to the following Net-SNMP command: -| $ snmpbulkwalk -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -C n1 -C r25 -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpbulkwalk -v3 -l authPriv -u usr-md5-des -A authkey1 -X privkey1 -C n1 -C r25 -ObentU 135.181.62.68 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -49,7 +49,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py b/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py index 98a4c42ba..2d02af47c 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getbulk-multiple-oids-to-eom.py @@ -5,14 +5,14 @@ Send a series of SNMP GETBULK requests * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * with values non-repeaters = 0, max-repetitions = 25 * for two OIDs in tuple form * stop on end-of-mib condition for both OIDs This script performs similar to the following Net-SNMP command: -| $ snmpbulkwalk -v2c -c public -C n0 -C r25 -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpbulkwalk -v2c -c public -C n0 -C r25 -ObentU 135.181.62.68 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -46,7 +46,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-and-resolve-with-mib.py b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-and-resolve-with-mib.py index 8fed28c1a..e789f9384 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-and-resolve-with-mib.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-and-resolve-with-mib.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for two OIDs in tuple form * stop on end-of-mib condition for both OIDs This script performs similar to the following Net-SNMP command: -| $ snmpwalk -v1 -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpwalk -v1 -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -57,7 +57,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py index 64e4e19fb..dbc98ce38 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py +++ b/examples/v3arch/asyncore/manager/cmdgen/getnext-multiple-oids-to-eom.py @@ -6,13 +6,13 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for two OIDs in tuple form * stop on end-of-mib condition for both OIDs This script performs similar to the following Net-SNMP command: -| $ snmpwalk -v1 -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpwalk -v1 -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -46,7 +46,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/observe-request-processing.py b/examples/v3arch/asyncore/manager/cmdgen/observe-request-processing.py index 3a8b4f5a1..a144113b5 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/observe-request-processing.py +++ b/examples/v3arch/asyncore/manager/cmdgen/observe-request-processing.py @@ -6,7 +6,7 @@ * with SNMPv3 with user 'usr-sha-aes', SHA auth and AES128 privacy protocols * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form * also registers its own execution observer to snmpEngine @@ -15,7 +15,7 @@ This script performs similar to the following Net-SNMP command: -| $ snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1 -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.1.0 +| $ snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1 -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.1.0 """# from pysnmp.entity import engine, config @@ -76,7 +76,7 @@ def requestObserver(snmpEngine, execpoint, variables, cbCtx): config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py b/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py index 4233356bd..3b8a14046 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py +++ b/examples/v3arch/asyncore/manager/cmdgen/pull-subtree.py @@ -5,13 +5,13 @@ Send a series of SNMP GETNEXT requests * with SNMPv3 with user 'usr-none-none', no auth and no privacy protocols * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in string form * stop whenever received OID goes out of initial prefix (it may be a table) This script performs similar to the following Net-SNMP command: -| $ snmpwalk -v3 -l noAuthNoPriv -u usr-none-none -ObentU 104.236.166.95:161 1.3.6.1.2.1.1 +| $ snmpwalk -v3 -l noAuthNoPriv -u usr-none-none -ObentU 135.181.62.68:161 1.3.6.1.2.1.1 """# from pysnmp.entity import engine, config @@ -50,7 +50,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py index 9342df3ed..aeb79ba9d 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py +++ b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py @@ -6,14 +6,14 @@ * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * sending packets from primary local interface 0.0.0.0, local port 61024 * for two OIDs in tuple form * stop on end-of-mib condition for both OIDs This script performs similar to the following Net-SNMP command: -| $ snmpwalk -v2c -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpwalk -v2c -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py b/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py index c93e142bc..f61281af8 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py +++ b/examples/v3arch/asyncore/manager/cmdgen/set-multiple-scalar-values.py @@ -6,12 +6,12 @@ * with SNMPv1 with community name 'private' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for OIDs in tuple form and an integer and string-typed values This script performs similar to the following Net-SNMP command: -| $ snmpset -v1 -c private -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.9.1.3.1 s 'my value' 1.3.6.1.2.1.1.9.1.4.1 t 123 +| $ snmpset -v1 -c private -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.9.1.3.1 s 'my value' 1.3.6.1.2.1.1.9.1.4.1 t 123 """# from pysnmp.entity import engine, config @@ -46,7 +46,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/spoof-source-address.py b/examples/v3arch/asyncore/manager/cmdgen/spoof-source-address.py index da7878f27..68730e0fc 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/spoof-source-address.py +++ b/examples/v3arch/asyncore/manager/cmdgen/spoof-source-address.py @@ -5,13 +5,13 @@ Send a SNMP GET request * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * from a non-local, spoofed IP 1.2.3.4 (root and Python 3.3+ required) * for an OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v2c -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1.1.0 +| $ snmpget -v2c -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1.1.0 But unlike the above command, this script issues SNMP request from a non-default, non-local IP address. @@ -65,7 +65,7 @@ # Configure destination IPv4 address as well as source IPv4 address config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds', sourceAddress=('1.2.3.4', 0) ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py index 7fb95ead1..20e955e2c 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py +++ b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-aes128.py @@ -5,12 +5,12 @@ Send a SNMP GET request * with SNMPv3 with user 'usr-sha-aes', SHA auth and AES128 privacy protocols * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1 -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.1.0 +| $ snmpget -v3 -l authPriv -u usr-sha-aes -a SHA -A authkey1 -x AES -X privkey1 -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.1.0 """# from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py index 2eba8949d..45e420feb 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py +++ b/examples/v3arch/asyncore/manager/cmdgen/usm-sha-none.py @@ -6,12 +6,12 @@ * with SNMPv3 with user 'usr-sha-none', SHA auth and no privacy protocols * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form and a string-typed value This script performs similar to the following Net-SNMP command: -| $ snmpset -v3 -l authNoPriv -u usr-sha-none -a SHA -A authkey1 -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.9.1.3.1 s 'my new value' +| $ snmpset -v3 -l authNoPriv -u usr-sha-none -a SHA -A authkey1 -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.9.1.3.1 s 'my new value' """# from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/v1-get.py b/examples/v3arch/asyncore/manager/cmdgen/v1-get.py index 20eab6c7e..8a9dd42f7 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/v1-get.py +++ b/examples/v3arch/asyncore/manager/cmdgen/v1-get.py @@ -4,12 +4,12 @@ * with SNMPv1, community 'public' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form This script performs similar to the following Net-SNMP command: -| $ snmpget -v1 -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1.1.0 +| $ snmpget -v1 -c public -ObentU 135.181.62.68 1.3.6.1.2.1.1.1.0 """# from pysnmp.entity import engine, config @@ -43,7 +43,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py index 8e6a1168b..c2f4f449f 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py +++ b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py @@ -5,12 +5,12 @@ Send a SNMP SET request * with SNMPv2c with community name 'private' * over IPv4/UDP -* to an Agent at 104.236.166.95:161 +* to an Agent at 135.181.62.68:161 * for an OID in tuple form and an integer-typed value This script performs similar to the following Net-SNMP command: -| $ snmpset -v2c -c private -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.9.1.4.1 t 123 +| $ snmpset -v2c -c private -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.9.1.4.1 t 123 """# from pysnmp.entity import engine, config @@ -26,7 +26,7 @@ # # SecurityName <-> CommunityName mapping -config.addV1System(snmpEngine, 'my-area', 'private') +config.addV1System(snmpEngine, 'my-area', 'public') # Specify security settings per SecurityName (SNMPv1 - 0, SNMPv2c - 1) config.addTargetParams(snmpEngine, 'my-creds', 'my-area', 'noAuthNoPriv', 1) @@ -45,7 +45,7 @@ config.addTargetAddr( snmpEngine, 'my-router', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'my-creds' ) diff --git a/examples/v3arch/asyncore/proxy/command/ipv6-to-ipv4-conversion.py b/examples/v3arch/asyncore/proxy/command/ipv6-to-ipv4-conversion.py index 2abb1c512..4e2f30fe8 100644 --- a/examples/v3arch/asyncore/proxy/command/ipv6-to-ipv4-conversion.py +++ b/examples/v3arch/asyncore/proxy/command/ipv6-to-ipv4-conversion.py @@ -8,7 +8,7 @@ * with local SNMPv2c community 'public' * local Agent listening at [::1]:161 * remote SNMPv2c community 'public' -* remote Agent listening at 104.236.166.95:161 +* remote Agent listening at 135.181.62.68:161 This script can be queried with the following Net-SNMP command: @@ -16,7 +16,7 @@ due to proxy, it is equivalent to -| $ snmpget -v2c -c public 104.236.166.95:161 sysDescr.0 +| $ snmpget -v2c -c public 135.181.62.68:161 sysDescr.0 Warning: for production operation you would need to modify this script so that it will re-map possible duplicate request-ID values, coming in @@ -82,7 +82,7 @@ config.addTargetAddr( snmpEngine, 'distant-agent', - udp.DOMAIN_NAME, ('104.236.166.95', 161), + udp.DOMAIN_NAME, ('135.181.62.68', 161), 'distant-agent-auth', retryCount=0, tagList='remote' ) diff --git a/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py b/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py index b56e77348..5c70fbd5b 100644 --- a/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py +++ b/examples/v3arch/asyncore/proxy/command/v2c-to-v1-conversion.py @@ -8,7 +8,7 @@ * with local SNMPv2c community public * local Agent listening at 127.0.0.1:161 * remote SNMPv1, community public -* remote Agent listening at 104.236.166.95:161 +* remote Agent listening at 135.181.62.68:161 This script can be queried with the following Net-SNMP command: @@ -16,7 +16,7 @@ due to proxy, it is equivalent to -| $ snmpwalk -v1 -c public 104.236.166.95:161 system +| $ snmpwalk -v1 -c public 135.181.62.68:161 system Warning: for production operation you would need to modify this script so that it will re-map possible duplicate request-ID values, coming in @@ -80,7 +80,7 @@ config.addTargetAddr( snmpEngine, 'distant-agent', - udp.DOMAIN_NAME + (2,), ('104.236.166.95', 161), + udp.DOMAIN_NAME + (2,), ('135.181.62.68', 161), 'distant-agent-auth', retryCount=0, tagList='distant' ) diff --git a/examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py b/examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py index 46e3738fc..073b63b3a 100644 --- a/examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py +++ b/examples/v3arch/asyncore/proxy/command/v2c-to-v3-conversion.py @@ -7,7 +7,7 @@ * with local SNMPv2c community 'public' * local Agent listening at 127.0.0.1:161 * remote SNMPv3 user usr-md5-none, MD5 auth and no privacy protocols -* remote Agent listening at 104.236.166.95:161 +* remote Agent listening at 135.181.62.68:161 This script can be queried with the following Net-SNMP command: @@ -15,7 +15,7 @@ due to proxy, it is equivalent to -| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.1.0 +| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -ObentU 135.181.62.68:161 1.3.6.1.2.1.1.1.0 Warning: for production operation you would need to modify this script so that it will re-map possible duplicate request-ID values, coming in @@ -81,7 +81,7 @@ config.addTargetAddr( snmpEngine, 'distant-agent', - udp.DOMAIN_NAME + (2,), ('104.236.166.95', 161), + udp.DOMAIN_NAME + (2,), ('135.181.62.68', 161), 'distant-agent-auth', retryCount=0 ) diff --git a/examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py b/examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py index 5a2443f31..fd2b98f56 100644 --- a/examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py +++ b/examples/v3arch/asyncore/proxy/command/v3-to-v2c-conversion.py @@ -7,7 +7,7 @@ * with local SNMPv3 user usr-md5-des, MD5 auth and DES privacy protocols * local Agent listening at 127.0.0.1:161 * remote SNMPv1, community public -* remote Agent listening at 104.236.166.95:161 +* remote Agent listening at 135.181.62.68:161 This script can be queried with the following Net-SNMP command: @@ -15,7 +15,7 @@ due to proxy, it is equivalent to -| $ snmpget -v2c -c public 104.236.166.95:161 1.3.6.1.2.1.1.1.0 +| $ snmpget -v2c -c public 135.181.62.68:161 1.3.6.1.2.1.1.1.0 Warning: for production operation you would need to modify this script so that it will re-map possible duplicate request-ID values, coming in @@ -83,7 +83,7 @@ config.addTargetAddr( snmpEngine, 'distant-agent', - udp.DOMAIN_NAME + (2,), ('104.236.166.95', 161), + udp.DOMAIN_NAME + (2,), ('135.181.62.68', 161), 'distant-agent-auth', retryCount=0 ) diff --git a/requirements.txt b/requirements.txt index be42ce0a8..4edaa0c25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ pysmi +pysnmp-mibs pyasn1>=0.2.3 ordereddict; python_version < '2.7' diff --git a/runtests.sh b/runtests.sh index 2293c1780..08637da98 100755 --- a/runtests.sh +++ b/runtests.sh @@ -29,7 +29,9 @@ do continue ;; *) - $PYTHON "${x}" | tail -50 + COMMAND="$PYTHON "${x}" | tail -50" + echo $COMMAND + eval $COMMAND ;; esac done From caa0d7472e0111771dd38aec8555646f86b5ea9f Mon Sep 17 00:00:00 2001 From: Lostboi <60655329+Lostboi@users.noreply.github.com> Date: Wed, 27 Jan 2021 20:08:45 +0100 Subject: [PATCH 4/5] Update python-package.yml --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 010075fda..dd04e84ab 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,4 +35,5 @@ jobs: - name: Test with runtests.sh run: | pip install -U pysnmp + pip install --force-reinstall pysnmp-mibs ./runtests.sh From 67c404edaa248fa05f05a121b85a3d8bb04d85d7 Mon Sep 17 00:00:00 2001 From: Lostboi <60655329+Lostboi@users.noreply.github.com> Date: Wed, 27 Jan 2021 20:33:44 +0100 Subject: [PATCH 5/5] Update python-package.yml --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index dd04e84ab..feff72fce 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,5 +35,5 @@ jobs: - name: Test with runtests.sh run: | pip install -U pysnmp - pip install --force-reinstall pysnmp-mibs + pip install -U pysnmp-mibs ./runtests.sh