This is a discussion on RE: Sending trap from source code within the SNMP Users forums, part of the Networking and Network Related category; > From: Pranesh Kulkarni [mailto:praneshvk@gmail.com] > After modifying the .c file, where should I integrate so that ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> From: Pranesh Kulkarni [mailto:praneshvk@gmail.com]
> After modifying the .c file, where should I integrate so that I can send the trap ? I'd like to add a "me too" to Pranesh's request. In my case, I have generated our private MIB notification code templates, and filled them in with placeholder data. I was also able to set up an alarm to test trap generation _exclusively within the agent_. All that stuff works fine. My question is: does the generated header then become accessible as a "public" API for the SNMP agent? I would really like to generate these traps from our C++ business logic. Haven't developed the latter to the point where I can test this out yet, although adding "extern "C" { ... }" allows compilation. [Pranesh, try recompiling snmpd with --with-mib-modules="examples/notification" and follow the guidelines in agent/mibgroup/examples/notification.c for your own MIBs.] Many thanks, Ron The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you. ------------------------------------------------------------------------- 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-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 |