Thanks for that important pointer. It works now.
Edison
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Thursday, September 06, 2007 2:34 PM
To: Edison C.
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Multiple traps in a session
On 06/09/07, Edison C. <[EMAIL PROTECTED]> wrote:
> ss = snmp_open (&session);
> pdu = snmp_pdu_create (SNMP_MSG_TRAP);
> /* First trap*/
> status = snmp_send (ss, pdu) == 0;
> /* Second trap*/
> status = snmp_send (ss, pdu) == 0;
$ man snmp_send
Error return status from snmp
snmp_sess_perror ("snmpapp ", &session);
printf ("1\n");
snmp_free_pdu (pdu);
exitval = 1;
}
snmp_close (ss);
snmp_shutdown ("snmpapp ");
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent:
On 05/09/07, Edison C. <[EMAIL PROTECTED]> wrote:
> Is there a way to send multiple traps in a session?
> Can some one give some pointers?
It's certainly possible - that's exactly what the current
agent trap sessions do.
> If I opened a session & tried sending multi
Is there a way to send multiple traps in a session?
Can some one give some pointers?
If I opened a session & tried sending multiple traps I get a " *** glibc
detected *** double free or corruption" error when attempting to send
the second trap