Re: [Pysnmp-dev] Pysnmp: Can't receive trap when set privacy protocol as AES
Brought to you by:
elie
From: chengkeke <che...@16...> - 2011-07-14 02:02:05
|
Pysnmp version I used is 4.1.11a. Python 2.5. At 2011-07-14 09:23:46,chengkeke <che...@16...> wrote: Hi All, I have an issue: I can't receive trap when set v3 user privacy protocol as AES. I can receive the trap when set it as None and DES. Could you please help me on it? Thanks a lot. snmp trap command: snmptrap -v3 -u read -l authPriv -a MD5 -A 12345678 -x AES -X 12345678 192.168.0.10 "" .1.3.6.1.4.1.XX.2.2.1.1 1.3.6.1.4.1.XX.2.2.2.18 s "00:24:82:2D:A3:33" Here is the code of add v3 user: [set it as config.usmAesCfb128Protocol] snmpEngine = engine.SnmpEngine() host = '192.168.0.10' port = 162 # Setup transport endpoint config.addSocketTransport( snmpEngine, udp.domainName, udp.UdpSocketTransport().openServerMode((host, port)) ) print 'UDP service [%s:%s] is open' % (host, port) # v1/2 setup config.addV1System(snmpEngine, 'public', 'public') # v3 setup config.addV3User( snmpEngine, 'read', config.usmHMACMD5AuthProtocol, '12345678', config.usmAesCfb128Protocol, '12345678', #'\x80\x00\x1F\x88\x80\x72\x12\x67\xFD\x4D\xF2\x4F\x07', # '\x80\x00\x4f\xb8\x1c\x3d\xaf\xe6' # ContextEngineID of # Notification Originator ) print 'V3 User created successfully' # Apps registration ntfrcv.NotificationReceiver(snmpEngine, cbFun) snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish snmpEngine.transportDispatcher.runDispatcher() Cherry Cheng |