Hi Marian, I do not have an answer, though two minor things I wanted to note:
* You are sending packets from a “privileged” port 162 rather than an ephemeral one * Well-formed TRAP message should include a bunch of well-known OIDs at fixed positions of the PDU (refer to SNMP RFCs for details) > On 6 Oct 2017, at 11:23, marian szczepkowski <mar...@jozep.com.au> wrote: > > We have a small device that send a trap on events I have configured > anmptrapd to pass traps generated manually but snmptrapd doesn't pass > the events generated by our devices the event doesn't show up when run > with -d so I'm guessing it's some thing fundamental. The following is > the wireshark trace of our snmp event and I'm hoping someone can shed > light on what we are doing wrong. > > Raw > > 0000 00 24 1d 89 13 1d 00 18 1f 02 3a 9e 08 00 45 00 .$........:...E. > 0010 00 64 00 46 00 00 80 11 26 39 0a 00 00 0a 0a 00 .d.F....&9...... > 0020 00 01 00 a2 00 a2 00 50 80 b6 30 46 02 01 01 04 .......P..0F.... > 0030 06 70 75 62 6c 69 63 a7 39 02 04 00 00 00 03 02 .public.9....... > 0040 01 00 02 01 00 30 2b 30 10 06 08 2b 06 01 02 01 .....0+0...+.... > 0050 01 03 00 43 04 00 00 0d 0d 30 17 06 09 2b 06 01 ...C.....0...+.. > 0060 06 03 01 01 04 03 04 0a 48 61 6e 64 73 65 74 20 ........Handset > 0070 75 70 up > > > > Decoded, the interesting bits. > > Frame 11: 114 bytes on wire (912 bits), 114 bytes captured (912 bits) > Ethernet II, Src: Palmmicr_02:3a:9e (00:18:1f:02:3a:9e), Dst: > Giga-Byt_89:13:1d (00:24:1d:89:13:1d) > Internet Protocol Version 4, Src: 10.0.0.10, Dst: 10.0.0.1 > User Datagram Protocol, Src Port: snmptrap (162), Dst Port: snmptrap (162) > Source Port: snmptrap (162) > Destination Port: snmptrap (162) > Length: 80 > Checksum: 0x80b6 [unverified] > [Checksum Status: Unverified] > [Stream index: 3] > Simple Network Management Protocol > version: v2c (1) > community: public > data: snmpV2-trap (7) > snmpV2-trap > request-id: 3 > error-status: noError (0) > error-index: 0 > variable-bindings: 2 items > 1.3.6.1.2.1.1.3.0: 3341 > Object Name: 1.3.6.1.2.1.1.3.0 (iso.3.6.1.2.1.1.3.0) > Value (Timeticks): 3341 > 1.3.6.1.6.3.1.1.4.3: 48616e64736574207570 > Object Name: 1.3.6.1.6.3.1.1.4.3 (iso.3.6.1.6.3.1.1.4.3) > Value (OctetString): 48616e64736574207570 > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! > http://sdm.link/slashdot_______________________________________________ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users