I am receiving traps by implementing SnmpClient (which means writing the methods for authenticate, debugPrint, and callback). It works fine for v2 traps and some v3 traps. From a particular device however, when a v3 trap comes in, the 'authenticate' method does not get executed, and the PDU in the callback is null. I see the trap come in and get decoded using wireshark, and I was able to turn on debugging and see the trap data (in hex) be written to the log file in the debugPrint method in the receiver. I also (sometimes) see an error in the log: 'Error decoding Packet: Parse Auth: Incorrect VarBind'.
How do I get more information about this though? What exactly is wrong with the packet? It appears fine in Wireshark. I can't find anything online about this particular error message.
Below is an example from the log file:
Packet from: 10.132.80.219:161 MessageID: 928129001
Received Time: Tue Nov 07 15:34:42:649 PST 2017
Length of SNMP DATA: 485
DATA:
30 82 01 e1 02 01 03 30 11 02 04 37 52 1f e9 02 03 00 ff e3
04 01 01 02 01 03 04 33 30 31 04 0d 80 00 96 2e 80 58 d8 48
68 44 a4 64 24 02 01 00 02 01 00 04 0a 61 75 74 68 6e 6f 70
72 69 76 04 0c a1 d7 73 1b 19 77 4c d4 90 b2 e4 19 04 00 30
82 01 92 04 0d 80 00 96 2e 80 58 d8 48 68 44 a4 64 24 04 00
a7 82 01 7d 02 04 03 aa f6 6b 02 01 00 02 01 00 30 82 01 6d
30 10 06 08 2b 06 01 02 01 01 03 00 43 04 01 24 d6 37 30 1a
06 0a 2b 06 01 06 03 01 01 04 01 00 06 0c 2b 06 01 04 01 81
68 81 25 0b 06 02 30 13 06 0d 2b 06 01 04 01 81 68 81 25 01
01 01 00 02 02 00 d5 30 81 a5 06 0d 2b 06 01 04 01 81 68 81
25 01 01 02 00 04 81 93 31 33 2f 30 39 2f 32 30 31 36 20 20
20 20 20 20 31 30 3a 31 38 3a 35 31 20 20 20 20 20 20 20 20
49 6e 70 75 74 20 50 68 61 73 65 20 4d 65 61 73 75 72 65 6d
65 6e 74 20 20 20 20 20 20 20 20 20 43 75 72 72 65 6e 74 20
6f 6e 20 49 6e 70 75 74 20 50 68 61 73 65 20 31 20 6f 66 20
50 44 55 20 31 20 4f 75 74 6c 65 74 20 4d 65 74 65 72 65 64
20 50 44 55 20 61 73 73 65 72 74 65 64 20 62 65 6c 6f 77 20
6c 6f 77 65 72 20 77 61 72 6e 69 6e 67 0d 0a 30 1c 06 0d 2b
06 01 04 01 81 68 81 25 01 01 03 00 04 0b 4d 65 74 65 72 65
64 20 50 44 55 30 3b 06 0d 2b 06 01 04 01 81 68 81 25 01 01
04 00 04 2a 53 4e 3a 43 4e 31 37 38 53 36 30 30 32 20 50 4e
3a 50 34 38 46 58 31 4d 20 4d 4e 3a 4f 75 74 6c 65 74 20 4d
65 74 65 72 65 64 30 25 06 0d 2b 06 01 04 01 81 68 81 25 01
01 05 00 04 14 68 74 74 70 3a 2f 2f 31 30 2e 31 33 32 2e 38
30 2e 32 31 39
Any help is appreciated. Thanks!