From: Dave S. <D.T...@li...> - 2011-12-28 18:11:22
|
On 27 December 2011 12:30, Leila M <mec...@gm...> wrote: > environment: gcc 4.5 under Ubuntu 11.04 > I'm trying to implement a C application that sends an snmp request > (snmp get) to retrieve some information (variables) from the local MIB > but when executing the program it seems that it is not able to get the > response from the snmp agent It's possible that this is due to a malformed SNMP request, as Mohammad suggests. But personally, I think it's more likely to be issues with a local firewall blocking the request (so the agent never receives it) or access control settings (so the agent receives it, but refuses to process it). See the FAQ entry "Why can't I see anything from the agent?" for details The other way you can test this is to try the same request using the "snmpget" command, rather than your local application. If that reports the values you expect, then the problem is most likely with your code. If that fails as well, then the problem is more likely to be with the configuration of the agent. Dave |