I have found the answer.
I added
authUser log david
to the snmptrapd.conf. I knew it was something simple.
Thanks,
David
On Wed, Oct 6, 2010 at 4:54 PM, David Taylor <[email protected]> wrote:
> Hello,
>
> I am trying to get SNMPv3 traps received in snmptrapd.exe on Net-SNMP
> 5.4.1.2. I am using
> snmptrap to send the trap.
>
> The following is my snmptrapd.conf:
>
> authCommunity log public
> doNotLogTraps false
> doNotFork yes
> agentxsocket tcp:127.0.0.1:705
> createUser -e 0x80001F8804307830313032303330343035 david MD5 mypassword
> createUser -e 0x80001F8804307830313032303330343035 taylor MD5 mypassword
> createUser myuser MD5 mypassword
> createUser -e 0x0102030405 bubba MD5 mypassword DES myotherpassword
>
> The snmptrapd command line is: snmptrapd.exe -c snmptrapd.conf -d -L o -L f
> output.txt -D "usm"
>
> Which prints out the following:
> registered debug token usm, 1
> usmUser: created a new user david at 80 00 1F 88 04 30 78 30 31 30 32 30 33
> 30 34 30
> 35
> usmUser: created a new user taylor at 80 00 1F 88 04 30 78 30 31 30 32 30
> 33 30 34 30
> 35
> usmUser: created a new user myuser at 80 00 1F 88 80 1D 75 00 00 31 ED AC
> 4C
> usmUser: created a new user bubba at 01 02 03 04 05
> NET-SNMP version 5.4.2.1
>
>
> I send the snmptrap for version 2c:
> snmptrap -c public -v 2c 127.0.0.1 42 1.3.6.1.4.1.8888.88.1.9
>
> The snmptrapd output to this snmptrap is:
> Received 68 bytes from UDP: [0.0.0.0]->[127.0.0.1]:3971
> 0000: 30 42 02 01 01 04 06 70 75 62 6C 69 63 A7 35 02
> 0B.....public§5.
> 0016: 02 0D FD 02 01 00 02 01 00 30 29 30 0D 06 08 2B
> ..ý......0)0...+
> 0032: 06 01 02 01 01 03 00 43 01 2A 30 18 06 0A 2B 06
> .......C.*0...+.
> 0048: 01 06 03 01 01 04 01 00 06 0A 2B 06 01 04 01 C5
> ..........+....Å
> 0064: 38 58 01 09 8X.
>
> 2010-10-06 16:44:34 localhost [UDP: [0.0.0.0]->[127.0.0.1]:3971]:
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42)
> 0:00:00.42 SNMPv2-MIB::snmpTrapOID.0 = OID:
> SNMPv2-SMI::enterprises.8888.88.1.9
>
>
> This is good.
>
> Now, I send a snmptrap for version 3:
> snmptrap -e 0x80001F8804307830313032303330343035 -v 3 -u david -a MD5 -A
> mypassword -l authNoPriv 127.0.0.1 42 1.3.6.1.4.1.8888.88.1.9
>
> The snmptrapd output to this snmptrap is:
> Received 149 bytes from UDP: [0.0.0.0]->[127.0.0.1]:3972
> 0000: 30 81 92 02 01 03 30 0F 02 02 1D A8 02 03 00 FF
> 0.’...0....¨...ÿ
> 0016: E3 04 01 01 02 01 03 04 32 30 30 04 11 80 00 1F
> ã.......200.....
> 0032: 88 04 30 78 30 31 30 32 30 33 30 34 30 35 02 01
> ..0x0102030405..
> 0048: 00 02 01 00 04 05 64 61 76 69 64 04 0C 31 5B D8
> ......david..1[Ø
> 0064: DE 29 C5 1C C1 F2 B6 0F 73 04 00 30 48 04 0D 80
> Þ)Å.Áò¶.s..0H...
> 0080: 00 1F 88 80 31 3F 00 00 87 EE AC 4C 04 00 A7 35
> ....1?..‡î¬L..§5
> 0096: 02 02 3F 32 02 01 00 02 01 00 30 29 30 0D 06 08
> ..?2......0)0...
> 0112: 2B 06 01 02 01 01 03 00 43 01 2A 30 18 06 0A 2B
> +.......C.*0...+
> 0128: 06 01 06 03 01 01 04 01 00 06 0A 2B 06 01 04 01
> ...........+....
> 0144: C5 38 58 01 09 Å8X.
> usm: USM processing begun...
> usm: match on user david
> usm: Verification succeeded.
> usm: USM processing completed.
>
> This is not being successful. I believe that is failing with something to
> do with the view access control, but
> am not sure.
>
> Does anyone see anything that I am doing wrong?
>
> Thanks,
> David
>
>
>
>
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users