summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py')
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py
index b72c5a7d..4d8f1756 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-via-notification-type.py
@@ -8,7 +8,7 @@ Send SNMP TRAP notification using the following options:
* with community name 'public'
* over IPv4/UDP
* send TRAP notification
-* to a Manager at 127.0.0.1:162
+* to a Manager at 195.218.195.228:162
* with TRAP ID IF-MIB::ifLink as MIB symbol
The IF-MIB::ifLink NOTIFICATION-TYPE implies including four other
@@ -23,7 +23,7 @@ Where "x" is MIB table index (instance index).
Functionally similar to:
-| $ snmptrap -v2c -c public 127.0.0.1 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 195.218.195.228 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
@@ -68,7 +68,7 @@ config.addTransport(
)
config.addTargetAddr(
snmpEngine, 'my-nms-1',
- udp.domainName, ('127.0.0.1', 162),
+ udp.domainName, ('195.218.195.228', 162),
'my-creds',
tagList='all-my-managers'
)