Re: [Fwd: Re: Q: how to create a simple agent deals with scalars]

"Xuan Pan" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sorry I didn't paste the object ID but I did in my test. (snmpget -v1 -c
public localhost MY-MIB::serverPort) <-serverPort is the integer that I am
querying

snmpgetnext -v 1 -c public localhost ip
snmpgetnext -v 1 -c public localhost .1.3.6.1.4
They too return noSuchName errors.

I have done more test and I think I can narrow down the problem:

Access control works.

The dump data gives me some hints:
The incoming data is exactly the same as outgoing data when querying the
variable, serverPort in my module. If I run snmpget -d -v1 -c public
localhost sysUpTime.0, the dump data is correct (object values filed is
filled with the returned data).

/Pan


> On 20/12/2007, Xuan Pan <[email protected]> wrote:
>> ran snmpget -v1 -c public localhost ...
>
> That will definitely fail, since you haven't supplied
> an object to retrieve.
>
> What does
>     snmpgetnext -v 1 -c public localhost ip
>
> return?
>
> What about
>     snmpgetnext -v 1 -c public localhost .1.3.6.1.4
> ?
>
> Dave
>



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.