[ Sorry for the delay in responding to this ] > In agent/example/notification.c > The example make the agent send notification every 30 seconds. > But if I want the agent send notification by some event,(the other process > tell the agent to send notification, through IPC or something else)
There are two apects involved to doing this. Firtly there's the question of *how* to send such a trap. Then there's the question of *when* to send it. You can use the 'notification.c' code as a template for describing how to send such a trap. Alternatively, if you've got a MIB file defining the trap that you want to send, then running mib2c -c mib2c.notify.conf {trap} would also generate a suitable template routine for sending this trap. Your IPC call can then trigger a call to this routine. Dave ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders