On Thu, 24 Jun 2004 21:59:54 +0530 Nakul wrote: NA> In the program "asyncapp.c" (as given on site) I have list of 1583 NA> hosts and in oid list just 1 oid.but when i send request to these hosts NA> after a value of "1021" which is fixed for the remaining hosts it gives NA> the following error NA> NA> "snmp_open" error : Unknown host
You've hit the limit on the number of open file descriptors. It's possible that you may be able to up the limit per process, depending on your os. Other wise, try sending out the first 1000 or so, and as you get responses, close the session and re-open a new one. Or, even better, re-use one session, instead of creating a new one for each host. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- 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-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders