On 24 Feb 2011 at 16:16, Dave Shield wrote:
> On 24 February 2011 15:01, Giuseppe Modugno <[email protected]> wrote:
> > Now I want to create a small program that sends autonomously (outside the
> > agent process) a SMI-v2 notification.
> 
> You mean a program like 'snmptrap' ?

Yes.


> > Can I use the send_v2trap() function call?
> 
> No.
> This relies on elements within the agent
> (e.g for configuring the trap destination)

Ok.


> > So what should I code a "stand-alone" trap generator, such as the snmptrap
> > command line? Is Net-SNMP able to send traps/informs even if no agent is
> > running?
> 
> Yes.
> That's exactly what 'snmptrap' does.

I thought sending traps and managing GET/SET requests were two 
different tasks usually performed by two different processes.

I have already a running agent extended with a private MIB. So I 
think it's better to include in this part of the agent also the trap 
sending.

I'll start another thread with some requests on the better way to 
achieve this in my system.

Thanks for your answer Dave.

  Giuseppe

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to