Again its as per you use the API. Infact snmp_send* APIs internally calls the netsnmp_send* APIs.
Go through agent_trap.c Thanks and Regards, Sazid From: Tanisha Kashyap [mailto:tanisha.kash...@aricent.com] Sent: Monday, March 30, 2009 3:34 PM To: Sazid Mahammad (WT01 - Semi Conductor and Peripheral IPG); net-snmp-users@lists.sourceforge.net Subject: RE: sending traps Actually there are a lot of APIs provided by the net-snmp and I cant figure out the difference between them Some APIs start with the keyword netsnmp eg: netsnmp_send_traps, some start with the keyword snmp eg: snmp_send And there are APIs like send_traps. I am confused as to what to go ahead with. "No task is so humble that it does not offer an outlet for individuality" ________________________________ From: sazid.maham...@wipro.com [mailto:sazid.maham...@wipro.com] Sent: Monday, March 30, 2009 3:27 PM To: Tanisha Kashyap; net-snmp-users@lists.sourceforge.net Subject: RE: sending traps Hi, It depends upon you. You can send TRAP in same or write different . Please go throught http://www.net-snmp.org/dev/agent/group__agent__trap.html and use appropriate API. Thanks and Regards, Sazid From: Tanisha Kashyap [mailto:tanisha.kash...@aricent.com] Sent: Monday, March 30, 2009 3:02 PM To: net-snmp-users@lists.sourceforge.net Subject: sending traps Hi, I have written a small c program which parses data received extracts some information and stores it in some variables. Using this information I need to be able to make SNMP traps and forward them to the NMS. Should I use the SNMP trap from within this program or write another c program which would create SNMP traps and send them to the NMS Tanisha "No task is so humble that it does not offer an outlet for individuality" ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should 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. www.wipro.com ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
------------------------------------------------------------------------------
_______________________________________________ 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/listinfo/net-snmp-users