RE: Payload for Traps

"Srivastava, Namburi (IE10)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <7BADC3AE4B177E4EB91BFF3E227E6BDC27B3E9@IE10EV801.global.ds.honeywell.com>
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: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Monday, November 06, 2006 8:14 PM
To: Srivastava, Namburi (IE10)
Cc: [email protected]
Subject: Re: Payload for Traps

On 02/11/06, Srivastava, Namburi (IE10)
<[email protected]> 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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.