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
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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