To start up the daemon I use: /usr/local/sbin/snmpd -d -Le I think the snmpd.conf file used by the daemon should be located in /usr/local/share/snmp/snmpd.conf which contains the following information: rocommunity public rwcommunity private sysservice 79
One thing I found out this morning that I have to name my init function as init_FILENAME() in order to get it called by the daemon. After I changed it to comply with this rule, I got another symptom: 1. when snmpget objects from the system group-- everything is fine 2. when snmpget objects from other group but not my module like ip -- noSuchName error (possiblly as you said my configuration is wrong) 3. when snmpget objects from my module. After receiving the snmpget packets, the snmpd is terminated immediately(possibly something wrong with my implementation) Thanks for being so helpful. /Pan > On 20/12/2007, Xuan Pan <[EMAIL PROTECTED]> wrote: >> snmpgetnext -v 1 -c public localhost ip >> snmpgetnext -v 1 -c public localhost .1.3.6.1.4 >> They too return noSuchName errors. > > Then this is almost certainly an access control problem. > The agent that you are running is probably picking up > a vendor-supplied snmpd.conf file, which is configured > to only allow access to the system group. > > How exactly did you start the snmpd agent? > > 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
