RE: Sending trap from source code

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2008
Ron Rader
 
Posts: n/a
Default RE: Sending trap from source code

> 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0