Hi!
Thanks Dave half a way it helped me, that I'm not linking
properly, now its working fine.
But second point which you mentioned I don't understood.
>> Inside send_ampTempHighMark_trap (int tempVal) this function,
three
>> Net-SNMP Routines I am using that is
>> 1. snmp_varlist_add_variable
>> 2. send_v2trap
>You cannot use this routine in a general application.
>It is only available when developing a MIB module
>within the agent.
Then How to generate Trap code using MIB file, my mib file got
both that is trap information as well as manager request information.
Earlier what I have done is I wrote different mib file for trap and then
using 'mib2c.notify.conf' generated a trap code, generated code has
send_ampTempHighMark_trap in this function there are three net-snmp
routines are used as shown below.
1. Snmp_varlist_add_varaiable
2. Send_v2trap ()
3. Freeing function.
In this file I have added main function, in that main function i
am calling send_ampTempHighMark_trap function that's all i have done.
While compiling I'm getting errors as I have mentioned in earlier mails,
but these errors fixed know, after reading your earlier mails.
Once again thank you for your constant support.
With Regards,
G. Siva Prakash Reddy.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Monday, March 17, 2008 5:43 PM
To: Siva Prakash Reddy G
Cc: [email protected]
Subject: Re: trap error message
On 17/03/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
> I don't understand first point that is.
>
>>> a) you don't appear to be linking your application with the
>>> Net-SNMP library
The Net-SNMP API routines are collected together into the
library 'libnetsnmp'. So if you are writing an application
using these routines, you need to link it with this library,
Your makefile does not seem to link in *any* extra libraries,
so won't pick up these calls.
> Inside send_ampTempHighMark_trap( int tempVal ) this function,three
> net-snmp
> Routines I am using that is
> 1. snmp_varlist_add_variable
> 2. send_v2trap
You cannot use this routine in a general application.
It is only available when developing a MIB module
within the agent.
Dave
This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED
INFORMATION intended for the sole use of the addressee(s). If you have received
it in error, please contact the sender by return email, notify your system
manager and destroy the original message and any copies thereof. Any review,
use, disclosure or distribution is unlawful. Please check this email and any
attachments for the presence of viruses. The Company accepts no liability for
any damage caused by any virus transmitted by this email. The views or opinions
presented in this e-mail are solely those of the author and do not necessarily
represent those of the company.
The Company reserves the right to monitor, review and store the content of all
messages sent to or from this e-mail address.
www.aztecsoft.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders