Re: Agent (snmpd) seems to have cache
Simon Chamlian <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJTs9VnZ6g5TtYPYVvazBGjEu5RQfHBTzRq9yXeap9k=T-cL7w@mail.gmail.com> |
Since there is no answer, I should presume there is no way to compile the libraries into one application: snmpd? On Wed, Jan 25, 2012 at 4:46 PM, Simon Chamlian <[email protected]>wrote: > Just a clarification. I am downloading the snmpd onto a board (embedded > Linux). > > I realized that under /usr/lib, there are several loadable module : > Jan 11 2012 libnetsnmp.so.30.0.1 > Jan 11 2012 libnetsnmpagent.so.30.0.1 > Jan 11 2012 libnetsnmphelpers.so.30.0.1 > Jan 11 2012 libnetsnmpmibs.so.30.0.1 > Jan 11 2012 libnetsnmptrapd.so.30.0.1 > > I guess I have to download all these files as well?!? > > Is there a way of compiling snmpd to not use loadable modules? > > Presently, I have the following config parameters. > > *./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} > --disable-embedded-perl \ > --without-perl-modules with_endianness=big --enable-mini-agent > --with-default-snmp-version="3" --disable-des --disable-debugging \ > --with-sys-contact="who@where" --with-logfile="/var/log/snmp" > --with-transports="UDP TCP" \ > --with-defaults --with-mib-modules="mpbcRMHDateTime mpbcRMHHpuState > mpbcRMHMonHpuState" > * > Thanks, > S > > > On Wed, Jan 25, 2012 at 3:11 PM, Simon Chamlian <[email protected]>wrote: > >> Hi, >> >> I have the weirdest problem ever! >> >> *I had a MIB (say MIB1) that I compiled. Works fine.* >> >> *I made a new MIB (say MIB2). * >> >> 1. Created new C/h files >> 2. Changed the ./configure --with-mib-modules=" ..." to use the new >> files >> 3. Deleted all the c and header files related to MIB1. >> 4. Recompiled successfully (snmpd has new date and time) >> 5. Deleted MIB1 in /usr/share/snmp/mibs >> 6. Added MIB2 in /usr/share/snmp/mibs >> 7. KILLED snmpd >> 8. re-launched the new snmpd >> >> snmptranslate works fine. >> >> Nevertheless, when I do a Get(walk) from my browser, it still returns the >> MIB1 scalar values (and OIDs)?!? >> >> It seems like the problem is in compilation phase where old c/h files are >> being used even though I deleted all the objects and lo files. >> >> What am I missing? >> >> As if *./configure --with-mib-modules=".."* saves modules permanently >> somewhere? >> >> Thanks, >> S >> >> > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ 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