Dave Wrote:
How are you currently sending the trap?

I have figured the way to do it.
I am adding the pay load to the variable list using the method given
below

snmp_varlist_add_variable(&var_list,

myTrapPayLoad_oid,
OID_LENGTH(myTrapPayLoad_oid),
ASN_INTEGER,
(u_char *)&id, sizeof(id));
In the above function call, the argument id contains the value.

By including the following option in snmptrapd %v, I am able to retrieve
the value at the Manager end.

But now, I have to add payloads of size more than 30-40 bytes. How can
I do that... ???

Regards,
Sri.


************************************************** **********************
************************************************** **********************
************************************************** **********************
*****
This e-mail, and any attachments thereto, are intended only for use by
the addressee(s) named herein and may contain privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified that any dissemination, distribution or
copying of this e-mail, and any attachments thereto, is illegal and
strictly prohibited. If you have received this e-mail in error, please
immediately notify me by telephone and permanently delete the original
and any copy of any e-mail and any printout thereof.


-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Monday, November 06, 2006 8:14 PM
To: Srivastava, Namburi (IE10)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Payload for Traps

On 02/11/06, Srivastava, Namburi (IE10)
wrote:
> Is it possible to send a payload as part of a Trap????


Yes.

> If yes, How can I do it.




Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
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/...net-snmp-users