On Mon, 2005-09-26 at 19:28 +0100, Patrick Welche wrote:
> snmpget correctly retrieves an oid I am trying to read.
> If however I try to do what I think is the same thing as
> snmpget inside a program, I get
> 
> Reason 0/2: (noSuchName) There is no such variable name in this MIB.

Two possibilities spring to mind.

Either your program is trying to request a subtly different OID
from the 'snmpget' command.  Or it's using a different community
string, which doesn't have access to this object.


>  Any clues for things to check?

Try running the agent with some debugging turned on,
and see why it rejects the request.

Try dumping the contents of the outgoing requests,
and comparing the two.


> (I use snmp_sess_open, snmpget uses snmp_open, but that should be OK?)

Sure.  That shouldn't affect the results you get.

Dave


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to