Dear Dave:

Thanks a lot, Dave. It works.
But if I compile the snmpd agent statically(./configure --enable-shared=no
--enable-static=yes),     why it has the same problem,
even I give the command /etc/init.d/snmpd start, it still has the same
problem
of access mibs. Can you instruct me how to solve it , thank you


Best Regards,
Clement Hsu



2006/12/27, Dave Shield <[EMAIL PROTECTED]>:

On 26/12/06, Clement Hsu <[EMAIL PROTECTED]> wrote:
> Thanks, and the full text of the file is as follow:
>
> !/bin/bash
> # ucd-snmp init file for snmpd
    [snip]
> OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd -a"

So that is where the OPTIONS variable is set.
If you need to change the startup options,
you should change things here,



> I don't really the exact meaning of /usr/sbin/snmpd $OPTIONS;

This tells the system to start the SNMP agent using the command
line options listed earlier.
i.e.
    /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a

The most important thing here is that it's running /usr/sbin/snmpd
(which is the vendor-supplied agent) rather than /usr/local/sbin/snmpd
(the version you have compiled).

Try running /etc/init.d/snmpd stop,
then edit this file and change the daemon line to read

    daemon /usr/local/sbin/snmpd $OPTIONS

and the kill line to read

    kill /usr/local/sbin/snmpd

Then run /etc/init.d/snmpd start

Can you see the HostRes information now?

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to