Re: Re: Re: Who can help me to let net-snmp working in arm-linux?
"Jason" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | 北京东华威视科技有限公司 |
| Message-ID | <[email protected]> |
Hi, The snmpd.conf: # sec.name source community com2sec all 0.0.0.0/0 public #### # Second, map the security names into group names: # sec.model sec.name group MyRWGroup v1 all group MyRWGroup v2c all group MyRWGroup usm all group MyROGroup v1 mynetwork group MyROGroup v2c mynetwork group MyROGroup usm mynetwork #### # Third, create a view for us to let the groups have rights to: # incl/excl subtree mask view all included .1 80 #### # Finally, grant the 2 groups access to the 1 view with different # write permissions: # context sec.model sec.level match read write notif access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none # ----------------------------------------------------------------------------- Is it OK? By the way, I executed snmpd with root. Regards, Jason 发件人: rakesh zingade 发送时间: 2010-11-29 16:11:38 收件人: Jason 抄送: net-snmp-users 主题: Re: Re: Who can help me to let net-snmp working in arm-linux? 2010/11/29 Jason <[email protected]> Hi, I cross-compiled the net-snmp with arm-linux-gcc in static mode, and it successfully generated a snmpd, but I thought it was not a static binary. ./configure -prefix=/usr/local/snmp-test --enable-static --disable-shared --enable-mini-agent --disable-applications --disable-des --disable-privacy --disable-md5 --disable-manuals --with-ldflags=-Bstatic --with-cc=/usr/local/arm/3.3.5/bin/arm-linux-gcc --with-ar=/usr/local/arm/3.3.5/bin/arm-linux-ar --with-ld=/usr/local/arm/3.3.5/bin/arm-linux-ld --with-endianness=little --with-defaults --without-perl-modules --build=i386-linux --host=arm-linux --target=arm-linux --without-openssl --with-logfile="/var/log/ snmpd.log" --with-default-snmp-version=2 --disable-mib-loading --with-mib-modules="mibII ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib snmpv3mibs notification" [root@localhost sbin]# file snmpd snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), not stripped [root@localhost sbin]# ldd snmpd not a dynamic executable I don't know why the command file display dynamically linked, but the command ldd display it was not a dynamic executable? When I copied it to my target system and run it, it displayed "No such Files". After I copied some lib file to my target system, it can be runed and auto exited immediately. The log display: "Encryption support not enabled. /usr/local/snmp-test/share/snmp/snmp.conf: line 25: Warning: Unknown token: mibs. Encryption support not enabled. > The encryption support warning is I guess because of SSL is not enabled. Encryption support not enabled. Error opening specified endpoint "" Server Exiting with code 1" > check snmpd.conf .. try executing snmpd with some other user Thanks Regards, Jason 发件人: rakesh zingade 发送时间: 2010-11-29 15:04:49 收件人: Jason 抄送: net-snmp-users 主题: Re: Who can help me to let net-snmp working in arm-linux? On Mon, Nov 29, 2010 at 11:38 AM, Jason <[email protected]> wrote: Dear all, I tried to cross-compile net-snmp with arm-linux v3.3.2, it is ok, Whats the errors displayed when you start cross-compiled snmpd on arm-linux board? You may have to cross-compile the required libs and create a static binary. but it can not work in my target. Who can help me? Any body can let net-snmp working well in arm-linux system? Thank you very much~ Regards, Jason ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ 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 -- Rakesh P. Zingade +919420626099 -- Rakesh P. Zingade +919420626099 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ 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