SNMP timeout problem
David Menéndez <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi I am developing a simple C++ program with the latest release of NET SNMP (5.5) and I am having a problem while connecting to some SNMP devices... but it works well with almost all examples I tried. The program tries to connect to the target via IP and returns a "snmp walk": all oids list and values. It works perfectly well with almost all devices I tried. The problem I am observing is as follows: struct snmp_session session; snmp_sess_init(&session); ... .... session.timeout = very long integer!!! void* ss = snmp_sess_open(&session); // This executes ok ... ... status = snmp_sess_synch_response(ss, pdu, &response); At this time it returns STAT_TIMEOUT ( http://netsnmpj.sourceforge.net/docs/org/netsnmp/NetSNMP.html#STAT_TIMEOUT) with the failing devices. No matter how big is "session.timeout" parameter. The devices have SNMP enabled, SNMP v1 compliant, and no network problem at all. In fact, some free snmp utilities are able to connect and obtain info. Can anybody help? Any ideas? Thank you very much Best regards!! David ------------------------------------------------------------------------------ _______________________________________________ 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