On 27 December 2011 12:30, Leila M <mech.lou...@gmail.com> 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

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to