[AGENT++] error on manage when receiving a trap notfication withafinite number of variable bindings
Karthik Venkataraman
karthikv at netnumber.com
Thu Aug 30 20:19:16 CEST 2007
Hi Jochen,
I rebuilt the receive_trap src with _DEBUG and here's what I see now:
20070830.14:11:07: 9448: (1)DEBUG : ++ SNMP++: data received from
10.100.100.94
/1049.
20070830.14:11:07: 9448: (3)DEBUG : 30 81 EA 02 01 01 04 06 70 75 62 6C
69 6
3 A7 81
20070830.14:11:07: 9448: (3)DEBUG : DC 02 02 11 36 02 01 00 02 01 00 30
81 C
F 30 0D
20070830.14:11:07: 9448: (3)DEBUG : 06 08 2B 06 01 02 01 01 03 00 43 01
68 3
0 1D 06
20070830.14:11:07: 9448: (3)DEBUG : 0A 2B 06 01 06 03 01 01 04 01 00 06
0F 2
B 06 01
20070830.14:11:07: 9448: (3)DEBUG : 04 01 81 8B 40 01 01 04 01 04 05 00
30 1
4 06 0E
20070830.14:11:07: 9448: (3)DEBUG : 2B 06 01 04 01 81 8B 40 01 01 04 01
03 1
4 02 02
20070830.14:11:07: 9448: (3)DEBUG : 17 74 30 29 06 0E 2B 06 01 04 01 81
8B 4
0 01 01
20070830.14:11:07: 9448: (3)DEBUG : 04 01 03 15 04 17 32 30 30 37 3A 30
38 3
A 32 39
20070830.14:11:07: 9448: (3)DEBUG : 3A 31 32 3A 32 38 3A 31 30 3A 45 44
54 3
0 3F 06
20070830.14:11:07: 9448: (3)DEBUG : 0E 2B 06 01 04 01 81 8B 40 01 01 04
01 0
3 16 04
20070830.14:11:07: 9448: (3)DEBUG : 2D 4E 75 6D 62 65 72 20 6F 66 20 4C
69 7
3 74 65
20070830.14:11:07: 9448: (3)DEBUG : 6E 65 72 20 74 68 72 65 61 64 73 20
3E 2
0 74 68
20070830.14:11:07: 9448: (3)DEBUG : 72 65 61 64 20 74 68 72 65 73 68 6F
6C 6
4 30 1D
20070830.14:11:07: 9448: (3)DEBUG : 06 0E 2B 06 01 04 01 81 8B 40 01 01
04 0
1 03 17
20070830.14:11:07: 9448: (3)DEBUG : 04 0B 52 65 70 6C 69 63 61 74 69 6F
6E
20070830.14:11:07: 9448: (1)DEBUG : ASN parse error (overflow of message)
20070830.14:11:07: 9448: (1)WARNING: Testing for v3 message: Bad parse of
versio
n
20070830.14:11:07: 9448: (1)DEBUG : ASN parse error (overflow of message)
20070830.14:11:07: 9448: (1)DEBUG : ASN parse error (bad parse of version)
20070830.14:11:16: 9448: (1)DEBUG : Closing notifications port
0.0.0.0/10162, f
d 4.
One other question: On the agent side, I am using the sample agent.cpp file
under agent++/agentgen/agent/src. I imported my MIB and I've loaded the MIB
in agent.cpp and I am trying to send a v2 trap from my agent for one of the
MIB objects with 4 variable bindings. Here's the output that I see from my
agent:
20070830.14:11:06: 9471: (3)INFO : AuthPriv: Added default Auth and Priv
proto
cols.
20070830.14:11:07: 9471: (1)ERROR : UsmUserTable: Unsupported privProtocol:
(9)
20070830.14:11:07: 9471: (1)ERROR : UsmUserTable: Unsupported privProtocol:
(9)
20070830.14:11:07: 9471: (1)EVENT : NotificationGenerator: sent trap
(vers)(id)
(tdomain)(addr)(vbs)(community/secName)(status): (1),
(1.3.6.1.4.1.17856.1.1.4.1.4.5.0), (1), (127.0.0.1/10162), (4), (public),(0)
20070830.14:11:17: 9471: (1)EVENT : NotificationGenerator: sent trap
(vers)(id)(tdomain)(addr)(vbs)(community/secName)(status): (1),
(1.3.6.1.4.1.17856.1.1.4.1.4.5.0), (1), (127.0.0.1/10162), (4), (public),
(0)
If you look at the messages above, the version shows up as 1, but am sending
a v2 trap using the following code on the agent:
no.add_v2_trap_destination (dest, "defaultV2Trap", "v2trap", "public");
Oidx oid("1.3.6.1.4.1.17856.1.1.4.1.4.5.0");
mib->notify("",oid , vbs, 4);
Do you know why this would happen???
Thanks a lot for your help,
Karthik
-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org] On
Behalf Of Jochen Katz
Sent: Thursday, August 30, 2007 1:52 PM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] error on manage when receiving a trap notfication
withafinite number of variable bindings
Hi Karthik,
> Thanks for your quick response. I downloaded SNMP v 3.2 from the
> website and built it. I built the snmp library with the _DEBUG option
> and added the lines that you mentioned to the "receive_trap.cpp"
> program, but I don't see any packet dump information. Please let me
> know what I can do to solve this
did you add a call to debug_set_level()? It seems that all "old-style"
debugprintf() messages are disabled. This can be caused by either a call
to debug_set_level(), a not complete clean rebuild after setting _DEBUG,
or if at runtime receive_trap loads a dll/.so with _DEBUG undefined.
Regards,
Jochen
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp
More information about the AGENTPP
mailing list