I have completely uninstalled vendor-supplied snmpd to get any conflict with source compiled snmpd. now i have only one snmpd installed.
/root/software/net-snmp>whereis snmpd snmpd: /usr/local/sbin/snmpd /root/software/net-snmp> I have used following configure option for compilation ./configure \ --with-out-mib-modules="" \ --with-mib-modules="Rmon agentx host examples target notification disman notification-log-mib ip-mib" \ --with-default-snmp-version="3" \ --with-sys-location="india" \ --with-logfile="/var/log/snmpd.log" \ --with-sys-contact="r...@gmail.com" \ --with-persistent-directory="/var/net-snmp" \ --with-mibdirs="/usr/local/share/snmp/mibs/" \ --enable-static --disable-shared \ --with-cflags=-g \ --with-ldflags=-Bstatic \ --disable-manuals \ --disable-scripts \ --without-root-access \ still I am getting following warnings while running ./snmpd /usr/local/share/snmp/mibs>/usr/local/sbin/snmpd buffer too small to read octet string (13 < 13) ============================================> MIB search path: /usr/local/share/snmp/mibs/ Cannot find module (SNMPv2-SMI): At line 6 in /usr/local/share/snmp/mibs//RMON-MIB.txt Cannot find module (SNMPv2-TC): At line 8 in /usr/local/share/snmp/mibs//RMON-MIB.txt Cannot find module (RMON-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 12 in /usr/local/share/snmp/mibs//IF-MIB.txt Cannot find module (IANAifType-MIB): At line 13 in /usr/local/share/snmp/mibs//IF-MIB.txt Cannot find module (IF-MIB): At line 12 in /usr/local/share/snmp/mibs//HOST-RESOURCES-MIB.txt Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 24 in /usr/local/share/snmp/mibs//SNMP-TARGET-MIB.txt Cannot find module (SNMP-TARGET-MIB): At line 0 in (none) Cannot find module (INET-ADDRESS-MIB): At line 15 in /usr/local/share/snmp/mibs//IP-MIB.txt Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (DISMAN-EXPRESSION-MIB): At line 0 in (none) Cannot find module (UCD-SNMP-MIB): At line 0 in (none) Cannot find module (UCD-DEMO-MIB): At line 0 in (none) Cannot find module (NET-SNMP-MIB): At line 12 in /usr/local/share/snmp/mibs//NET-SNMP-AGENT-MIB.txt Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (IANA-RTPROTO-MIB): At line 12 in /usr/local/share/snmp/mibs//IP-FORWARD-MIB.txt Cannot find module (IP-FORWARD-MIB): At line 0 in (none) Cannot find module (NET-SNMP-EXAMPLES-MIB): At line 11 in /usr/local/share/snmp/mibs//NET-SNMP-PASS-MIB.txt Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none) Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none) Cannot find module (TRANSPORT-ADDRESS-MIB): At line 0 in (none) Cannot find module (SNMP-USM-DH-OBJECTS-MIB): At line 0 in (none) Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none) Cannot find module (IPV6-TC): At line 7 in /usr/local/share/snmp/mibs//IPV6-TCP-MIB.txt Cannot find module (IPV6-TCP-MIB): At line 0 in (none) Cannot find module (IPV6-MIB): At line 0 in (none) Cannot find module (TUNNEL-MIB): At line 0 in (none) Cannot find module (SNMPv2-CONF): At line 0 in (none) Cannot find module (UCD-DISKIO-MIB): At line 0 in (none) Cannot find module (IANA-LANGUAGE-MIB): At line 0 in (none) Cannot find module (NET-SNMP-TC): At line 0 in (none) Cannot find module (HCNUM-TC): At line 0 in (none) Cannot find module (SNMP-PROXY-MIB): At line 0 in (none) Cannot find module (IPV6-UDP-MIB): At line 0 in (none) Cannot find module (SMUX-MIB): At line 0 in (none) Cannot find module (RFC-1215): At line 0 in (none) Cannot find module (IPV6-ICMP-MIB): At line 0 in (none) Cannot find module (UCD-IPFWACC-MIB): At line 0 in (none) Cannot find module (DISMAN-SCRIPT-MIB): At line 0 in (none) Cannot find module (AGENTX-MIB): At line 0 in (none) Cannot find module (IF-INVERTED-STACK-MIB): At line 0 in (none) Cannot find module (SCTP-MIB): At line 0 in (none) Cannot find module (EtherLike-MIB): At line 0 in (none) Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB): At line 0 in (none) Cannot find module (SNMP-USM-AES-MIB): At line 0 in (none) Cannot find module (BRIDGE-MIB): At line 0 in (none) /usr/local/share/snmp/snmpd.conf: line 22: Warning: Unknown token: syslocation. =============================> /usr/local/share/snmp/snmpd.conf: line 33: Warning: Unknown token: syscontact. /var/net-snmp/snmpd.conf: line 39: Warning: Unknown token: setserialno. /var/net-snmp/snmpd.conf: line 44: Warning: Unknown token: ifXTable. /var/net-snmp/snmpd.conf: line 45: Warning: Unknown token: ifXTable. /root/software/net-snmp> default mib dir set is /usr/local/share/snmp/mibs/ I do not understand why these message are still coming after removing other conflicting vendor supplied snmpd. It would be really great if i get any help on this to fix. Thanks................ On Thu, Mar 22, 2012 at 10:26 PM, Ravi Kumar <mynets...@gmail.com> wrote: > versions and branch details are below. > > ./snmpd -v > > NET-SNMP version: 5.7.rc1 > Web: http://www.net-snmp.org/ > Email: net-snmp-coders@lists.sourceforge.net > > > >>svn info > Path: . > URL: > https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk/net-snmp/agent > Repository Root: https://net-snmp.svn.sourceforge.net/svnroot/net-snmp > Repository UUID: 06827809-a52a-0410-b366-d66718629ded > Revision: 20533 > Node Kind: directory > Schedule: normal > Last Changed Author: dts12 > Last Changed Rev: 20513 > Last Changed Date: 2011-06-21 19:58:48 +0530 (Tue, 21 Jun 2011) > > > Thanks,,,,, > > > > > > On Thu, Mar 22, 2012 at 4:37 AM, Niels Baggesen > <n...@users.sourceforge.net> wrote: >> On Thu, Mar 22, 2012 at 12:52:37AM +0530, Ravi Kumar wrote: >>> I have two versions of snmpd in my machine.One which is shipped with >>> fedora OS and another which i checked >>> out from svn repository and installed after compilation. >> >> svn was replaced with git some time ago. What version / revision >> is the source that you have? >> >> /Niels >> >> -- >> Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net >> The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders