Hello all, I've posted this question on the users list, but did not find the most correct approach to do this. My problem is simple: my application needs to request snmpd to send a trap.
Is there an API to ask the agent to send a trap (I do not mean an API to send the trap... I mean an API to ask the agent to send it.... or to ask the agent to execute some C code in which I would program my trap sending...) I guess asking the agent to send the trap would avoid me having to go through all the trapsinks/informsynks in snmpd.conf myself... much more eficient. On the users list someone said I could alter the agent's code to open a socket and add it to the select() call, and so on. It will work, but isn't there be a better approach for this ? Thank you very much Joao jmf Some time ago, in a similar situation I've used a timed callback - snmp_alarm_register(5,SA_REPEAT,do_traps,NULL) - and it worked fine but this time I need the inverse approach. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
