diff options
author | elie <elie> | 2013-01-05 14:33:16 +0000 |
---|---|---|
committer | elie <elie> | 2013-01-05 14:33:16 +0000 |
commit | fbcfe5b1b92c67e570b60bbcb804edc73bd873be (patch) | |
tree | ef6012c1a6cae8231e689f0c54dedf200c8fc0f1 /examples | |
parent | 0629ac3bca6038a1abedbd50290574f8332f2de8 (diff) | |
download | pysnmp-fbcfe5b1b92c67e570b60bbcb804edc73bd873be.tar.gz |
uniform AES user
Diffstat (limited to 'examples')
-rw-r--r-- | examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py b/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py index 669c66d..7aa72f4 100644 --- a/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py +++ b/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py @@ -5,8 +5,8 @@ # # * SNMPv3 # * with local snmpEngineId = 0x8000000001020304 -# * with user 'usr-sha-aes', auth: SHA, priv: AES128 -# * over IPv6/UDP +# * with user 'usr-sha-aes128', auth: SHA, priv: AES128 +# * over IPv4/UDP # * send TRAP notification # * with TRAP ID 'authenticationFailure' specified as a MIB symbol # * do not include any additional managed object information @@ -25,10 +25,10 @@ snmpEngineId = rfc1902.OctetString(hexValue='8000000001020304') ntfOrg = ntforg.NotificationOriginator(engine.SnmpEngine(snmpEngineId)) errorIndication = ntfOrg.sendNotification( - ntforg.UsmUserData('usr-sha-aes', 'authkey1', 'privkey1', + ntforg.UsmUserData('usr-sha-aes128', 'authkey1', 'privkey1', authProtocol=ntforg.usmHMACSHAAuthProtocol, privProtocol=ntforg.usmAesCfb128Protocol), - ntforg.Udp6TransportTarget(('::1', 162)), + ntforg.UdpTransportTarget(('127.0.0.1', 162)), 'trap', ntforg.MibVariable('SNMPv2-MIB', 'authenticationFailure') ) |