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]>
> OK.
> Just to confirm - does
>    "snmpgetnext -v 1 -c public localhost ip"
>
> still return a noSuchName error?
>

This one seems to work. It returns IP-MIB::ipForwarding.0 = INTEGER:
notForwarding(2)

and

snmpget -v 1 -c public localhost ipForwarding.0 also works (but not the
object ipForwarding. I also walked further to get some other objects such
as ipDefaultTTL.0, ipInReceives.0... It seems they have a sub-identifier
'.0' for each of the objects)


>
> What do you see if you restart the agent using
>    /usr/local/sbin/snmpd -f -Le -Dread_config
>

It returns that it can not find configuration settings from some default
directories and it reads information from the following directories
/usr/local/share/snmp/snmpd.conf
/var/net-snmp
and so on...

/Pan


-------------------------------------------------------------------------
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.