Re: How to clean USM config
If you want to delete the existing v3 user list, then you can delete/move/rename the persistent snmpd.conf file (typically in /var/net-snmp/ folder) which contains the hashed list of the users. On Wed, Feb 22, 2017 at 9:03 PM, 徐 勇wrote: > Hi, > > > I used Net-SNMP in my project, and I found that when I had added an snmpv3 > user by snmpd.conf (createUser directive), I cannot change the auth/priv > password of the user by updating snmpd.conf, even have a restarting the > snmpd process. > > > And then I found this is caused by the usm lists. it seems a global usm > lists is used to stored the password, and the list is not belong to snmpd. > Even when I stop snmpd, or delete the v3 user, I can get the system usm > record which is added by the createUser directive ( I use snmp-walk on > 1.3.6.1.6.3.15.1.2.2.1 > for checking this). > > > I know snmpusm tool can update the usm password, but that tool need > another RW v3 user. I'm wondering if there's a convenient method to modify > the password of an existed v3 user, or delete/cleanup the exited usm list ? > > > Thanks > > Yong > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: net-snmp make error : cannot find -lperl
This indicates that perl is missing on the system. Depending on the package manager for your system, you can use yum/apt/others to install perl first and then later try to build net-snmp. You could also try to build without perl support but you will lose some utilities ./configure --prefix=/tmp/local/ --with-defaults --disable-embedded-perl --without-perl-modules On Tue, Jan 10, 2017 at 11:35 AM, deepak.sachan deepak.sachan < deepak.sac...@deal.drdo.in> wrote: > > Hello friends > During net-snmp installation following error message shows. I think this > must some library linking issue. > Need help to resolve this > > > up/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o > mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o > mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o > mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o > -Wl,-rpath -Wl,/home/deepak/Desktop/net-snmp-5.7.3/snmplib/.libs > ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE > -lperl -ldl -lpthread -lc -lcrypt -lm -O2 -fstack-protector -Wl,-E > -fstack-protector -Wl,-soname -Wl,libnetsnmpagent.so.30 -o > .libs/libnetsnmpagent.so.30.0.3 > /usr/bin/ld: cannot find -lperl > collect2: error: ld returned 1 exit status > make[1]: *** [libnetsnmpagent.la] Error 1 > make[1]: Leaving directory `/home/deepak/Desktop/net-snmp-5.7.3/agent' > make: *** [subdirs] Error 1 > > > > > Thanks > > > The contents of this Email communication are confidential to the > addressee. If you > are not the intended recipient you may not disclose or distribute this > communication > in any form should immediately contact the sender. The information, > images, documents > and views expressed in this Email are personal to the Sender and do not > expressly or > implicitly represent official positions of DRDO and no authority exists on > behalf of > DRDO to make any agreements, or other binding commitment by means of Email. > > > > -- > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
multiple redundant redeclaration of functions
Hi, I am looking to build an app using the libnetsnmp library and observed that there are multiple redundant redeclarations of functions. I have pasted some of them which are output by the compiler. Why are there multiple declarations for the same functions? Is there any way to avoid these warnings (say by disabling UCD)? Thanks, Rajmohan ../../../net-snmp/include/net-snmp/net-snmp-includes.h:54:5: error: "HAVE_DMALLOC_H" is not defined [-Werror=undef] #if HAVE_DMALLOC_H ^ In file included from ../../../net-snmp/include/net-snmp/output_api.h:151:0, from ../../../net-snmp/include/net-snmp/library/snmp_client.h:32, from ../../../net-snmp/include/net-snmp/varbind_api.h:102, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/library/snmp_logging.h:122:6: *error: redundant redeclaration of ‘netsnmp_logging_restart’ * [-Werror=redundant-decls] void netsnmp_logging_restart(void); ^ In file included from ../../../net-snmp/include/net-snmp/library/snmp_client.h:32:0, from ../../../net-snmp/include/net-snmp/varbind_api.h:102, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/output_api.h:54:10: *note: previous declaration of ‘netsnmp_logging_restart’ was here* void netsnmp_logging_restart(void); ^ In file included from ../../../net-snmp/include/net-snmp/library/mib.h:37:0, from ../../../net-snmp/include/net-snmp/varbind_api.h:103, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/mib_api.h:48:21: *error: redundant redeclaration of ‘snmp_set_mib_warnings’* [-Werror=redundant-decls] voidsnmp_set_mib_warnings(int); ^ In file included from ../../../net-snmp/include/net-snmp/session_api.h:309:0, from ../../../net-snmp/include/net-snmp/library/snmp_client.h:33, from ../../../net-snmp/include/net-snmp/varbind_api.h:102, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/library/ucd_compat.h:40:17: *note: previous declaration of ‘snmp_set_mib_warnings’ was here* voidsnmp_set_mib_warnings(int); ^ In file included from ../../../net-snmp/include/net-snmp/library/mib.h:37:0, from ../../../net-snmp/include/net-snmp/varbind_api.h:103, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/mib_api.h:50:21: *error: redundant redeclaration of ‘snmp_set_mib_errors’* [-Werror=redundant-decls] voidsnmp_set_mib_errors(int); ^ In file included from ../../../net-snmp/include/net-snmp/session_api.h:309:0, from ../../../net-snmp/include/net-snmp/library/snmp_client.h:33, from ../../../net-snmp/include/net-snmp/varbind_api.h:102, from ../../../net-snmp/include/net-snmp/library/snmp_api.h:28, from ../../../net-snmp/include/net-snmp/types.h:421, from ../../../net-snmp/include/net-snmp/definitions.h:22, from ../../../net-snmp/include/net-snmp/net-snmp-includes.h:67, from test.c:52: ../../../net-snmp/include/net-snmp/library/ucd_compat.h:42:17: *note: previous declaration of ‘snmp_set_mib_errors’ was here* voidsnmp_set_mib_errors(int); ^ In file included from ../../../net-snmp/include/net-snmp/library/mib.h:37:0, from