[ Re-posting since the sourceforge mailserver
          seemed to be playing up yesterday]

> I need to send traps as soon as variables change

That really splits into two separate questions:
  -  how to send a trap, and
  -  when to send the trap.


The tutorial example should be useful in showing you *how* to send
the trap - the code that you will need.   Alternatively, you could
use "mib2c -c mib2c.notify.conf XXX-MIB::xxxTrap' to generate a
routine (template) that will do precisely this.

The second question - *when* to send the trap - is a different matter.
What do you mean by "as soon as variables change" ?
Do you mean that the trap should be sent following a SET request?
Or are the variables under the control of some other subsystem,
and you're trying to spot when they change automatically?

In the second case, you probably don't need to write any new code
at all.  Have a look at the 'snmpd.conf' man page, under
        "DISMAN-EVENT-MIB SUPPORT"

Dave



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to