Re:problem with the embedded snmpd
Goodshirly <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Dave,hi all I've configured the net-snmp with --sysconfdir=/tmp/yaffs --datadir=/tmp/yaffs in PC. And I see there is a document named "mibs" be created under /tmp/yaffs/snmp. After that,i copy the snmpd.o and snmpd.conf into the embedded device under the directory:/tmp/yaffs. but it still doesn't work. when I run the command %./snmpd -f -L DmyMibModule it gives me the output as follows: myMibModule:Initializing Warning:no access control information configured. It's unlikely this agent can serve any useful purpose in this agent. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent Creating directory:/var/net-snmp Failed to create the persistent directory for /var/net-snmp/snmpd.conf read_config_store open failure on /var/net-snmp/snmpd.conf Creating directory:/var/net-snmp Failed to create the persistent directory for /var/net-snmp/snmpd.conf read_config_store open failure on /var/net-snmp/snmpd.conf Creating directory:/var/net-snmp Failed to create the persistent directory for /var/net-snmp/snmpd.conf read_config_store open failure on /var/net-snmp/snmpd.conf NET-SNMP version 5.1.4 --- It seems that the snmpd still can not find the snmpd.conf. How to fix this problem? Must I create a new file system which include the snmpd under /usr/local/sbin and the snmpd.conf under /usr/local/share/snmp for the embedded device? Thanks a lot! --------original message------------------- On 21/06/07, Goodshirly <[email protected]> wrote:> Can I change the default directory where snmpd often search for its> snmpd.conf? $ cd net-snmp-5.4 $ ./configure --help : --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --datadir=DIR read-only architecture-independentdata [PREFIX/share] Dave _________________________________________________________________ 中国十大热门旅游景点 http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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