RE: Query regarding ASYNC GET calls
"Rahul Ravikanth Anneboina" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CCEE49B9CE065146BA4FE34B2748A53210E6FCE5@CEL-BANGT-M01.celstream-in.com> |
Thank you Xiang, that worked! From: Xiang Li [mailto:[email protected]] Sent: Monday, May 16, 2011 1:40 AM To: Rahul Ravikanth Anneboina Cc: [email protected] Subject: Re: Query regarding ASYNC GET calls Hi On 5/11/2011 6:34 AM, Rahul Ravikanth Anneboina wrote: Hi … Need help from you’ll ….. I have a piece of code (attached below) that sends out SNMP_MSG_GET requests to an entire subnet. I am using snmp_async_send() to send out the requests and the responses are read in the callback function asynch_response(). The OID’s correspond to printer details and there are about 10 printers within that subnet. Every time the callback is triggered with NETSNMP_CALLBACK_OP_TIMED_OUT and all the 255 IP’s time out. Ideally it should get values for those 10 printers and time out the rest of the IPs. Wireshark packets show that all 256 requests have been sent and responses from the 10 printers have been received. If I break down the IP list to a bunch of 50 at a time, then I’m able to get accurate results. But when I query all 256 at one go, I have this problem. Please point me to where I am going wrong. Assuming there are no problems in your piece of code then I am guessing this behavior might have something to do with select() call and FD_SETSIZE (64) limit on Windows systems. http://net-snmp.sourceforge.net/dev/agent/structnetsnmp__large__fd__set__s.html You may want to try using netsnmp_large_fd_set, snmp_select_info2 etc. and see if that makes any difference. -- Xiang Li http://www.champnms.com ______________________________________________________________________________ DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Pvt Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or [email protected] immediately. ______________________________________________________________________________ ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ 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