[AGENT++] error on manage when receiving atrap notfication withafinite number of variable bindings

Karthik Venkataraman karthikv at netnumber.com
Tue Sep 11 18:10:34 CEST 2007


Hi Jochen,

After making this change, I am able to receive the trap successfully on the
manager side. Thanks a lot for all your help. Here's the output from my
manager console:

20070911.12:08:06: 26407: (1)DEBUG  : parse length network dd lb 1
20070911.12:08:06: 26407: (1)DEBUG  : parse length host dd000000
20070911.12:08:06: 26407: (1)DEBUG  : parse length shifted 221
asn_length = 2
bufp - data = 2
*datalength = 221
asn_length = 1
bufp - data = 2
*datalength = 217
asn_length = 1
bufp - data = 2
*datalength = 214
20070911.12:08:06: 26407: (1)DEBUG  : parse length network d0 lb 1
20070911.12:08:06: 26407: (1)DEBUG  : parse length host d0000000
20070911.12:08:06: 26407: (1)DEBUG  : parse length shifted 208
asn_length = 2
bufp - data = 2
*datalength = 4096
reason: -7
msg: SNMP++: Received SNMP Notification (trap or inform)
from: 10.100.100.94/1073
ID:  1.3.6.1.4.1.17856.1.1.4.1.4.5.0
Type:167
Oid: 1.3.6.1.4.1.17856.1.1.4.1.3.20
Val: 6004
Oid: 1.3.6.1.4.1.17856.1.1.4.1.3.21
Val: 2007:08:29:12:28:10:EDT
Oid: 1.3.6.1.4.1.17856.1.1.4.1.3.22
Val: Number of Listener threads > thread threshold
Oid: 1.3.6.1.4.1.17856.1.1.4.1.3.23
Val: Replication
pdu type: 167
sending response to inform:


20070911.12:10:26: 26407: (1)DEBUG  : Closing notifications port
0.0.0.0/10162,
fd 4.

Thanks again,
Karthik


-----Original Message-----
From: Jochen Katz [mailto:katz at agentpp.com] 
Sent: Monday, September 10, 2007 4:56 PM
To: Karthik Venkataraman
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] error on manage when receiving atrap notfication
withafinite number of variable bindings

Hi Karthik,

> 20070910.13:08:12: 24797: (1)DEBUG  : parse length network ea lb 1
> 20070910.13:08:12: 24797: (1)DEBUG  : parse length host ea000000
> 20070910.13:08:12: 24797: (1)DEBUG  : sizeof(long) 8
> 20070910.13:08:12: 24797: (1)DEBUG  : parse length shifted 0

ok, now I see that the #ifdef __osf__ is useless. Just replace

#ifdef __osf__
     *length >>= (8 * ((sizeof(int)) - lengthbyte));
#else
     *length >>= (8 * ((sizeof(long)) - lengthbyte));
#endif

with
     *length >>= (8 * ((sizeof(int)) - lengthbyte));

Regards,
  Jochen





More information about the AGENTPP mailing list