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' ?


> Can I use the send_v2trap() function call?

No.
This relies on elements within the agent
(e.g for configuring the trap destination)


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

Dave

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