Hi Dave,
              *Thanks for your valuable feedback.*
*  *
* * I am able  to send SNMPv2 trap using DisMan Event MIB with your great
support.

  I have gone through FAQ* How  can i get the agent to generate a trap ( or
inform) ?*


*Now suggest me on following things*
*
*
1)  What is the actual difference between  generating traps by using DisMan
Event MIB and by using *'mib2c.notify.conf' configuration file *?
*     *Only these two methods are there in net-snmp  for trap generation ?

2) Now i want to generate SNMPv2 trap by the SNMP agent using
*'mib2c.notify.conf'
configuration file. *How to do that ?
*  *
*
*
*
*
*Thanks in Advance*
*Prashant Nirni*



On 28 November 2011 15:20, prashant n <[email protected]> wrote:
> 1) How to add variable bindings to trap ?

Please read the snmpd.conf(5) man page.
In particular, the section describing OPTIONS to the "monitor" directive


> 2) ...
> But my application requires that DisMan Event MIB must generate a trap
when
> the expression  matches desired condition unlike as given in snmpd.conf(5)
> i,e when we update new value to the object if it satisfies expression then
> it must send trap instead of  previous  monitored condition becoming false
> and matching again. How to do that ?

The closest supported mechanism would be to use the expression

   monitor -r 10 -e ScalarEvent2 myScalarTest  .1.3.6.1.4.1.38151.1.1.1 !=

which would generate a trap whenever the value of the object changes.


Dave
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to