Monitoring NTP and SNTP time synchronization software through SNMP
Hello, Does anyone who's subscribed to this list know whether it is possible to monitor the operation of NTP and/or SNTP time synchronization software through Net-SNMP ? I have been able to find out the following about this subject: * An NTP-MIB has been published by David Mills in 1997. It is not clear to me what the standardization status of this MIB is nor whether any implementations are available (http://www.cis.udel.edu/~mills/database/reports/ntp-mib-tr.pdf). * A draft NTPv4 SNMP MIB is in development since 2006 (http://www.ietf.org/html.charters/ntp-charter.html). * I found a reference to an SNTP MIB in the SNTPv4 RFC (http://www.ietf.org/rfc/rfc2030.txt), but I do not know of any such MIB: quoteIt is intended that in-service management of NTP and SNTP Version 4 servers and clients be performed using SNMP and a suitable MIB to be published later./quote Bart. -- ___ 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: Monitoring NTP and SNTP time synchronization software through SNMP
On Tue, Mar 31, 2009 at 3:16 PM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: 2009/3/31 Bart Van Assche bart.vanass...@gmail.com: Does anyone who's subscribed to this list know whether it is possible to monitor the operation of NTP and/or SNTP time synchronization software through Net-SNMP ? There's certainly no support for the NTP MIBs in the agent as distributed. I've just done a quick search of the list archives, and can't find any indication that anyone else has implemented this functionality either. The closest was a thread from last April (with the subject Help Needed) on the -coders list, from someone wanting to do this. But they never followed up with any indication that they'd actually got this working. If you do manage to implement this, please consider feeding it back to the Net-SNMP project, so that other people can benefit from your work. It's not yet clear whether or not I will implement access to the NTP / SNTP status through SNMP. But if I do this, I will certainly consider feeding this work back to the Net-SNMP project. By the way, which process is followed for evaluating and applying submitted Net-SNMP patches ? During the last weeks I have submitted seven patches via the patch tracker. As far as I can see, only one of these seven patches has been processed by this time. Bart. -- ___ 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: Monitoring NTP and SNTP time synchronization software through SNMP
2009/4/1 Fernández Piñas, David dfernand...@indra.es: In case you find it useful, just mention that I monitored the NTP service using MRTG and a perl script some time ago. Here is the reference I used to do it: http://www.satsignal.eu/ntp/NTPandMRTG.txt Thanks for the help. This information looks really useful, but as far as I can see it is specific for the Unix ntpd daemon. I am looking for a way to expose the status of Windows' Time Service through SNMP. A major difficulty in this is obtaining status information. I have posted a message on comp.protocols.time.ntp asking for help about how to query the status of Windows' Time Service. See also http://groups.google.com/group/comp.protocols.time.ntp/browse_thread/thread/f43770a6a242a81e/3300a77aeb862ddc. Bart. -- ___ 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: length of community strings
On Wed, Apr 15, 2009 at 8:20 PM, Mike Ayers mike_ay...@tvworks.com wrote: From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] The specs implicitly allow an arbitrary length string (although there may be some limit imposed by ASN.1 or BER - I'm not sure offhand). Over a million octets, IIRC. Is there some defacto standard for maximum length. The main restriction will be from MIB objects that take a community string as their value. There's another aspect to take into account. SNMP is run over UDP in the (vast) majority of cases, and therefore all information in a request or response must fit into a single UDP packet. I'd have to consult references for the exact number, but there's about 1300+ bytes available for UDP packets over a standard ethernet link. Since you need to put varbinds in the packet, too, the space fills up quickly. An UDP packet can contain at most 65527 bytes data. UDP packets that do not fit in a single Ethernet packet (max. 1500 bytes when not using GbE jumbo frames) get fragmented over multiple Ethernet packets. See also http://en.wikipedia.org/wiki/User_Datagram_Protocol. Bart. -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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: length of community strings
On Thu, Apr 16, 2009 at 8:52 PM, Mike Ayers mike_ay...@tvworks.com wrote: See also http://en.wikipedia.org/wiki/User_Datagram_Protocol. Wikipedia as a technical reference?! Please... If you don't trust Wikipedia, look up the appropriate RFC. You can find a reference to the RFC in which UDP has been defined at the end of the Wikipedia article. Bart. -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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: Issues with agent running on AIX.
On Tue, Apr 28, 2009 at 3:53 PM, Bart Van Assche bart.vanass...@gmail.com wrote: On Tue, Apr 28, 2009 at 2:32 PM, Paul Hogan paul.ho...@haworth.com wrote: I have multiple AIX 5.3.6 boxes running the 5.4.2.1 version of net-snmp. On a majority of them I am seeing the daemon die after running for a short amount of time. I look in the /var/log/snmpd.log file and it just displays the version line and that is it. I then look in the syslog and it gives no indication why the daemon is dying. Any thoughts on how to troubleshoot why this is happening? Compile and make went through with no issues. Running the following command in a shell might help to find the cause: ./snmpd.exe -f -Lo -Dagent Update: the above command was using the Windows syntax -- on a Unix system you can run the following command after having run make install: /usr/local/sbin/snmpd -f -Lo -Dagent Bart. -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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: Issues with agent running on AIX.
On Tue, Apr 28, 2009 at 2:32 PM, Paul Hogan paul.ho...@haworth.com wrote: I have multiple AIX 5.3.6 boxes running the 5.4.2.1 version of net-snmp. On a majority of them I am seeing the daemon die after running for a short amount of time. I look in the /var/log/snmpd.log file and it just displays the version line and that is it. I then look in the syslog and it gives no indication why the daemon is dying. Any thoughts on how to troubleshoot why this is happening? Compile and make went through with no issues. Running the following command in a shell might help to find the cause: ./snmpd.exe -f -Lo -Dagent Bart. -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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 service not starting
On Tue, May 5, 2009 at 12:38 AM, Huber, Andrew andrew.hu...@serco-na.com wrote: I have a question on an error I am receiving. I installed net-snmp on a Windows 2003 Server machine with Windows Extension agents enabled. When trying to run snmpd I get a netsnmp_assert x failed..\..\agent\agent_registry.c:536 message. Also when trying to start the net-snmp service it starts for about 5 seconds then stops. I am also running the Windows Snmp service but on a different port then the net-snmp service. Any ideas what might be causing this? Net-SNMP 5.5 contains several important bugfixes related to Windows SNMP extension DLL's. Alex, is a binary for Net-SNMP 5.5-pre already available or should I generate one ? Bart. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ 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: Segfault in snmp_oid_compare ()
2009/5/6 김성호 soldier...@castis.com: While I run the program, it crashed while updating the table Did you already verify your program with the Valgrind tools memcheck, helgrind and/or drd ? Bart. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ 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: Subagent timeout
On Wed, May 27, 2009 at 1:40 PM, Joan Landry joan.lan...@overturenetworks.com wrote: I found that the actual time or delay is 10 seconds. What I have determined is if the subagent delays for 10 seconds during a get operation net-snmp closes it's pipe and the subagent program receives signal SIGPIPE, Broken pipe. I added a SIGPIPE handler to the subagent to prevent it from being terminated. And the master-agent-subagent reconnect after a period of time. Is this expected behavior from net-snmp. I am running in a system that could have 10 second delays - so there is not much I can do about this aspect of the problem. One possible solution is to perform the table updating in a background thread. Subagents should require not more than one or two seconds to perform any processing. Bart. -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ 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: ucd-snmp vs. net-snmp (foot print)
2009/8/3 Juliana Purjo jpu...@live.com: From: d.t.shi...@liverpool.ac.uk Given that in most environments, run-time size is not a significant concern, using a separate buffer for each object feels to be a simpler, and more (time-)efficient approach. Also in embedded Linux, the executable size is more important than runtime memory size. The flash sizes are still measured in single digit megabytes... And the linked application size seems to be the same whether you have 100kb of static buffer or 1kb of static buffer, probably the number of static buffers also does not make a difference. Regarding runtime size: many embedded systems use SDRAM memory. The smallest SDRAM modules being sold today that I know of are 64 MB in size. And I know of embedded systems with 32 MB RAM in which UCD-SNMP has been deployed successfully. Regarding static buffers: the space occupied in an executable by a static buffer that has been stored by the compiler in a BSS section is independent of the buffer size. Regarding executable size: a filesystem like cramfs, cromfs or squashfs can be a great help to reduce the amount of non-volatile storage occupied by an executable. Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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: ucd-snmp vs. net-snmp (foot print)
On Fri, Jul 24, 2009 at 10:58 PM, Dave Shieldd.t.shi...@liverpool.ac.uk wrote: Unfortunately, we can't really provide you with any significant implementation experience of running the Net-SNMP agent on embedded systems. I keep putting out a plea for those who have done this to report back, but nobody ever seems to bother. One aspect of Net-SNMP that should be documented with regard to embedded systems is whether or not Net-SNMP assumes that the system it is running on has a hostname. On some embedded systems the hostname (the string returned by gethostname()) has been left empty. Additionally, on many embedded systems DNS has not been set up (empty /etc/resolv.conf). People deploying Net-SNMP on such an embedded system need to know which components of Net-SNMP rely on access to a DNS server, if there are any such components. Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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: Does Net-SNMP really work on Windows?
On Mon, Aug 10, 2009 at 4:12 PM, nick.for...@associateddata.co.uk wrote: I have been attempting to get Net-SMTP installed and working on a Win2003 Server for months now, so far without success. Question is does Net-SNMP really work in a Windows 2003 environment or is it mainly suited to Linux environments? My intended use is quite simple, receive a feed from a temperature monitor (AKCP Sensorprobe II) and run a batch file (to shutdown the Server) if it gets too hot in the Server room. Is this likely to be possible or am I wasting my time trying to get this working on a Windows 2003 Server? 32-bit or 64-bit ? Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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: Does Net-SNMP really work on Windows?
On Mon, Aug 10, 2009 at 7:32 PM, nick.for...@associateddata.co.uk wrote: -Original Message- From: Bart Van Assche [mailto:bart.vanass...@gmail.com] Sent: 10 August 2009 15:55 To: nick.for...@associateddata.co.uk Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Does Net-SNMP really work on Windows? On Mon, Aug 10, 2009 at 4:12 PM, nick.for...@associateddata.co.uk wrote: I have been attempting to get Net-SMTP installed and working on a Win2003 Server for months now, so far without success. Question is does Net-SNMP really work in a Windows 2003 environment or is it mainly suited to Linux environments? My intended use is quite simple, receive a feed from a temperature monitor (AKCP Sensorprobe II) and run a batch file (to shutdown the Server) if it gets too hot in the Server room. Is this likely to be possible or am I wasting my time trying to get this working on a Windows 2003 Server? 32-bit or 64-bit ? 32-bit. Net-SNMP 5.5.pre2 is running fine here on several 32-bit Windows 2003 servers. See also http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg21987.html. Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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: PSCMD
On Mon, Aug 17, 2009 at 5:06 PM, Jaskiewicz, Michael-P49499michael.jaskiew...@gdc4s.com wrote: Looking at the net-snmp-config.h file, I noticed that the some of the #defines point to programs like ps for looking at running processes. PSCMD for example points to /bin/ps which isn't available for Win32 (unless maybe I run it in Cygwin). Is it possible in any way to run the program from a normal Win32 cmd line or do I have to use Cygwin? The readme.win32 file led me to believe that Cygwin was not a requirement. In the Net-SNMP project there are separate net-snmp-config.h files for Unix systems and for Windows systems. The file that is relevant for Windows can be found in the win32 directory (http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/win32/net-snmp/net-snmp-config.h?view=log). And for obtaining process information on Windows systems, use the HOST-RESOURCES-MIB via the WinExtDLL module. See also http://www.net-snmp.org/docs/README.win32.html for more information. This approach will obtain process information by calling functions in Microsoft's hostmib.dll SNMP extension DLL and without spawning any new process. Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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: agent_check_and_process: select info
On Tue, Sep 15, 2009 at 1:07 AM, Mike Ayers mike_ay...@tvworks.com wrote: From: Sam V [mailto:sbazd...@hotmail.com] Sent: Monday, September 14, 2009 7:04 AM Thanks, let me know if you have an idea for a fix? It is easy to reproduce. Just let snmp agent run then set the system date and time backwards. What is the operational requirement for setting the clock backwards? A remote-managed time machine? Please make yourself familiar with the operation of the ntpd process. ntpd can set the clock backwards, and this is a well documented aspect of the ntpd process. Bart. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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: agent_check_and_process: select info
On Tue, Sep 15, 2009 at 7:48 PM, Mike Ayers mike_ay...@tvworks.com wrote: From: Bart Van Assche [mailto:bart.vanass...@gmail.com] Sent: Monday, September 14, 2009 11:22 PM Thanks, let me know if you have an idea for a fix? It is easy to reproduce. Just let snmp agent run then set the system date and time backwards. What is the operational requirement for setting the clock backwards? A remote-managed time machine? Please make yourself familiar with the operation of the ntpd process. ntpd can set the clock backwards, and this is a well documented aspect of the ntpd process. Perhaps I misunderstand. NTPD, in normal operation, changes the clocks by tiny amounts. As I read the problem, adjusting the clock backwards by ten microseconds would cause the snmp_select_info() call to not return until at least ten more microseconds had lapsed. This should hardly cause any real problem. Is the issue more severe than this? Small differences between the reference clock and the local clock will be applied gradually, large differences will be applied at once. This is configurable via the tinker step parameter in ntp.conf, which defaults to 0.128s. See also http://www.cis.udel.edu/~mills/ntp/html/miscopt.html. Bart. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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: agent_check_and_process: select info
On Tue, Sep 15, 2009 at 11:16 PM, Mike Ayers mike_ay...@tvworks.com wrote: Then reboot! Apps (any apps) should certainly be able to handle clock changes, forward or back, of a second or less, without blinking. Time zone changes are nice to have, but some things barf on those (I have a cell phone that can't grasp the concept of moving between time zones). Forward time changes should be handled transparently, as the ubiquity of suspendable machines would require, but I'm well accustomed to seeing that mishandled. If you need to make a substantial change backwards to the time setting on your computer, just reboot it, as it's a safe bet that none of your software was tested against that use case. Sorry, but the above is not an acceptable solution. I know of more than one (embedded) device that needs an accurate clock but for which rebooting just to avoid a backward clock jump is unacceptable. Bart. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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: GCC warnings compiling mib2c output
On Wed, Sep 16, 2009 at 2:08 PM, Christopher Nelson chris.nelson.1...@gmail.com wrote: I suppose you could consider tweaking the call to use 'void' rather than 'char' pointers. In retrospect, that would have been a better choice, and might keep your compiler happy. But note that this change would have to be applied throughout the whole codebase. I'm running up against a local rule that requires our code to compile without warnings. I can ask for an exception for the generated code but maybe I'll do the void - char change locally; I can't practically *re*generate the code so I'm not losing any thing. Have you already considered adding -fno-strict-aliasing to the list of gcc compiler flags ? Bart. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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: GCC warnings compiling mib2c output
On Wed, Sep 16, 2009 at 4:07 PM, Christopher Nelson chris.nelson.1...@gmail.com wrote: I suppose you could consider tweaking the call to use 'void' rather than 'char' pointers. In retrospect, that would have been a better choice, and might keep your compiler happy. But note that this change would have to be applied throughout the whole codebase. I'm running up against a local rule that requires our code to compile without warnings. I can ask for an exception for the generated code but maybe I'll do the void - char change locally; I can't practically *re*generate the code so I'm not losing any thing. Have you already considered adding -fno-strict-aliasing to the list of gcc compiler flags ? I guess that'd be the exception I'd ask for. Our standard says -Wall with no warnings. My proposal does not contradict your coding standard. Strict aliasing is a performance optimization present in newer gcc's. According to the mib2c output that has been posted on this list, it is not safe to enable this optimization for code generated by mib2c. So you should disable this optimization via -fno-strict-aliasing. This flag does not disable any compiler warnings, it disables a compiler transformation. Please read the section in the gcc manual about -fno-strict-aliasing / -Wno-strict-aliasing. Bart. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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: hrSystemUptime gives wrong result under Windows box
On Tue, Oct 27, 2009 at 6:18 AM, malar vizhi malar...@gmail.com wrote: hrSystemUptime gives wrong result under Windows box. But its giving accurate result under linux box. Why so??. $ uptime 10:48:37 up 1 day, 55 min, 0 users, load average: 0.00, 0.00, 0.00 C:\snmpget -v 1 -c public localhost .1.3.6.1.2.1.25.1.1.0 HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (89727265) 10 days, 9:14:32.65 uptime command gives a correct uptimeof my windows machine. But the snmp gives me totally different value. Which implementation of the HOST-RESOURCES-MIB are you using ? The one included with Net-SNMP or Microsoft's implementation via WinExtDLL ? If you don't know the answer to this question, please post the contents of the c:\usr\registeragent.bat file you are using. The variable called 'additionaloptions' in this file specifies which of the two HOST-RESOURCES-MIB implementations is loaded. Bart. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ 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: hrSystemUptime gives wrong result under Windows box
On Wed, Oct 28, 2009 at 7:36 AM, malar vizhi malar...@gmail.com wrote: Now also hrSystemUptime giving me the wrong result.Please tell me, where the problem exists?? Good question. I was assuming that switching to winExtDLL would solve this issue, but apparently this is not the case. The tests I ran on Windows 2003 and Windows XP confirm your report: I also see that the value returned for hrSystemUptime is incorrect. It looks like the returned value is ten times larger than the actual value. Some further research showed that this behavior is caused by the extension DLL that implements hrSystemUptime (c:\windows\system32\hostmib.dll). Other reports confirm these findings ( http://fixunix.com/snmp/64367-re-interpreting-hrsystemuptime.html, http://forums.cacti.net/about22137.htmlhighlight=). I have reported this issue to Microsoft -- see also https://connect.microsoft.com/onecare/feedback/ViewFeedback.aspx?FeedbackID=504908 . Alex, can you please add the above information in the README.win32 file ? Thanks, Bart. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ 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: Is net-snmp available for Linux RHEL?
On Wed, Oct 28, 2009 at 9:22 AM, Nadeem Khan kha...@gmail.com wrote: I am new to NET-SNMP and want to know whether there are binaries available for Linux Red Hat Enterprise? If yes, can someone please give me the link. If no, is it correct to say that the only way NET-SNMP can be run on Linux RHEL is by compiling the latest source code? Have you already tried to install the net-snmp RPM included with RHEL ? The version included in RHEL 5.4 is net-snmp-5.3.2.2-7.el5.x86_64.rpm. Bart. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ 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: hrSystemUptime gives wrong result under Windows box
On Wed, Oct 28, 2009 at 8:29 PM, Mike Ayers mike_ay...@tvworks.com wrote: From: malar vizhi [mailto:malar...@gmail.com] Sent: Wednesday, October 28, 2009 2:42 AM This has to be fixed since hrSystemUptime is the very basic property of system monitoring. On Wed, Oct 28, 2009 at 2:53 PM, Bart Van Assche bart.vanass...@gmail.com wrote: Good question. I was assuming that switching to winExtDLL would solve this issue, but apparently this is not the case. The tests I ran on Windows 2003 and Windows XP confirm your report: I also see that the value returned for hrSystemUptime is incorrect. It looks like the returned value is ten times larger than the actual value. Some further research showed that this behavior is caused by the extension DLL that implements hrSystemUptime (c:\windows\system32\hostmib.dll). Other reports confirm these findings (http://fixunix.com/snmp/64367-re- interpreting-hrsystemuptime.html, http://forums.cacti.net/about22137.htmlhighlight=). I have reported this issue to Microsoft -- see also https://connect.microsoft.com/onecare/feedback/ViewFeedback.aspx?Feedba ckID=504908. Please review: http://support.microsoft.com/kb/169847 http://www.ietf.org/rfc/rfc1213.txt?number=1213 Note that the spec indicates TimeTicks are hundredths of a second, but Microsoft's documentation interprets them as milliseconds. This has always been a problem, expect it to always be a problem. Just divide your uptimes by ten for Windows systems. Hello Mike, Thanks for jumping in on this thread. I was already afraid that the chance was small that Microsoft would fix this bug. But regarding the interpretation of the TimeTicks definition, RFC 1213 is very clear about the semantics of TimeTicks. A quote from the TimeTicks definition in RFC 1213: The time (in hundredths of a second) since the network management portion of the system was last re-initialized. Bart. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ 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: hrSystemUptime gives wrong result under Windows box
On Wed, Oct 28, 2009 at 8:29 PM, Mike Ayers mike_ay...@tvworks.com wrote: Please review: http://support.microsoft.com/kb/169847 http://www.ietf.org/rfc/rfc1213.txt?number=1213 Note that the spec indicates TimeTicks are hundredths of a second, but Microsoft's documentation interprets them as milliseconds. This has always been a problem, expect it to always be a problem. Just divide your uptimes by ten for Windows systems. The KB article cited above discusses sysUpTime instead of hrSystemUptime. By searching for hrSystemUptime site:microsoft.com I found out that Microsoft documents hrSystemUptime as follows: *Time since the host was initialized last (1/100 sec)*. So Microsoft's documentation contradicts their implementation. See also http://msdn.microsoft.com/en-us/library/aa915261.aspx. Bart. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ 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: Need information to retrieve etherStatsTable parameters from the linux kernel.
On Fri, Nov 20, 2009 at 8:22 AM, srivardhan hebbar ruinlovewit...@gmail.com wrote: I am trying to implement etherStatsTable of the Rmon mib. I am using Net-SNMP 5.4.2.1. I am implementing it on linux kernel. I can get the values of some parameters from /proc/net/dev. The following are the parameters for which I could not find from where to get the values from the system. Hello Srivardhan, Please have a look at the source files under agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable* first. Is there any functionality missing in these files that you need ? $ ls agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable* agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable.c agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_access.c agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_access.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_get.c agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_get.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_set.c agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_data_set.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_enums.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_interface.c agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_interface.h agent/mibgroup/rmon-mib/etherStatsTable/etherStatsTable_oids.h Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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: sysUpTime question
On Sun, Nov 29, 2009 at 7:39 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: 2009/11/29 a...@lingnu.com: the issue could have been resolved by sampling the system uptime when the snmp daemon starts, and using it to calculate the sysUptime value, instead of relaying on the system clock But the value of system uptime when the agent starts is 0, by definition. The SNMP agent needs to relate this point to future timestamps, and does so by using the local clock. Yes - if that clock time changes, you've got a problem. Computing the system uptime via gettimeofday() is wrong. A better solution would be to let get_uptime() in snmplib/system.c compute the system uptime using methods that do not depend on the wall clock time, e.g. clock_gettime(CLOCK_MONOTONIC) on POSIX systems that support monotonic clocks or GetTickCount() on Windows systems. Note: the clock rate of CLOCK_MONOTONIC takes the clock drift computed by the NTP algorithm in account, while GetTickCount() does not. Bart. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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: Dell Mibs
On Wed, Dec 2, 2009 at 6:39 PM, atlantis o0o.atlantis@gmail.com wrote: I'm trying to get informations from the Dell mibs (MIB-Dell-10892) whithout any chances... I'm runing debian 4.0 (i know, need upgrade...) and my version of net-snmp is 5.2.3. I did place the mib in the right directory but when i try to get some information: # snmpget -v2c -c community ** 1.3.6.1.4.1.674 MIB-Dell-10892::dell = No Such Object available on this agent at this OID Is it possible to use this mibs whithout an openmanage runing? Sorry, but this is not possible. You have to make sure that the Dell OpenManage software has been installed and is working correctly before you can use the Dell MIBs. Bart. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev___ 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: Problem with net snmp extension dll on windows.
On Thu, Dec 3, 2009 at 12:41 PM, rajat.gu...@emulex.com wrote: I am using subagent extension dll on windows 2k3.(32 bit) The subagent dll works perfectly with windows SNMP service. But if I use the same subagent with Net-SNMP I get into following trouble. I am issuing an set and get request to the subagent.(from a SNMP client running on linux) But the subagent is receiving the request of snmp pdu type 224,226 and 160(which is SNMP_PDU_GET) as given by SnmpExtensionQuery call back function, when I should be receiving SNMP_PDU_SET and SNMP_PDU_GET. Wireshark also correctly shows SNMP get and set request received. Which Net-SNMP version are you using ? Bart. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ 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: Problem with net snmp extension dll on windows.
-Original Message- From: bart.vanass...@gmail.com [mailto:bart.vanass...@gmail.com] On Behalf Of Bart Van Assche Sent: Thursday, December 03, 2009 6:14 PM To: Gupta,Rajat Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Problem with net snmp extension dll on windows. On Thu, Dec 3, 2009 at 12:41 PM, rajat.gu...@emulex.com wrote: I am using subagent extension dll on windows 2k3.(32 bit) The subagent dll works perfectly with windows SNMP service. But if I use the same subagent with Net-SNMP I get into following trouble. I am issuing an set and get request to the subagent.(from a SNMP client running on linux) But the subagent is receiving the request of snmp pdu type 224,226 and 160(which is SNMP_PDU_GET) as given by SnmpExtensionQuery call back function, when I should be receiving SNMP_PDU_SET and SNMP_PDU_GET. Wireshark also correctly shows SNMP get and set request received. Which Net-SNMP version are you using ? On Thu, Dec 3, 2009 at 1:45 PM, rajat.gu...@emulex.com wrote: It is the latest 5.5.0-1 If the extension DLL receives a get request, it is because the Net-SNMP core generated a get request. Please make yourself familiar with Net-SNMP's multi-stage commit -- see also http://www.net-snmp.org/tutorial/tutorial-4/agent/08-writing.html. Bart. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ 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
Windows, DISMAN and AgentX
Hello, Can anyone tell me the status of monitoring of AgentX objects via DISMAN in Net-SNMP 5.4.2.1 ? When I add a monitor line to snmpd.conf for observing an AgentX object, the agent locks up when trying to query the AgentX object. The call stack at the time of the lockup is as follows: snmp_synch_response_cb() snmp_synch_response() mte_get_response() mte_run_trigger() run_alarms() receive() SnmpDaemonMain() main() According to the information I found in patch 1918383, DISMAN queries should use an iquery session. iquery sessions have the SNMP_FLAGS_RESP_CALLBACK flag set. What surprised me is that the session passed to snmp_synch_response_cb() did not have this flag set. Does this mean there is something wrong with the session passed to this function ? Have any fixes been checked in recently with regard to DISMAN queries of AgentX objects ? See also: http://sourceforge.net/tracker/?func=detailaid=1918383group_id=12694atid=312694 Bart. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev___ 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: Windows, DISMAN and AgentX
On Mon, Dec 7, 2009 at 12:18 PM, Bart Van Assche bart.vanass...@gmail.com wrote: Can anyone tell me the status of monitoring of AgentX objects via DISMAN in Net-SNMP 5.4.2.1 ? When I add a monitor line to snmpd.conf for observing an AgentX object, the agent locks up when trying to query the AgentX object. The call stack at the time of the lockup is as follows: snmp_synch_response_cb() snmp_synch_response() mte_get_response() mte_run_trigger() run_alarms() receive() SnmpDaemonMain() main() According to the information I found in patch 1918383, DISMAN queries should use an iquery session. iquery sessions have the SNMP_FLAGS_RESP_CALLBACK flag set. What surprised me is that the session passed to snmp_synch_response_cb() did not have this flag set. Does this mean there is something wrong with the session passed to this function ? Have any fixes been checked in recently with regard to DISMAN queries of AgentX objects ? See also: http://sourceforge.net/tracker/?func=detailaid=1918383group_id=12694atid=312694 Submitted a candidate fix on the patch tracker -- see also https://sourceforge.net/tracker/?func=detailaid=2911323group_id=12694atid=312694. Bart. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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: Can snmp support nested tables?
2009/12/10 飞飞 chenyapu1...@qq.com Can anybody tell me whether snmp support nested tables?if so,give me some hints or links, A quote from the excellent book *Understanding SNMP MIBs* (page 277): *The SNMP SMI does not allow a MIB writer to state that an object in a table is an array (an ASN.1 sequence). This restriction, known as no table in a table in the SNMP community, is a frequent source of frustration for beginning SNMP MIB designers. * Bart. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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
Incorrect links in snmpd man page on net-snmp.org
Hello, Several links on http://www.net-snmp.org/docs/man/snmpd.html to the *snmpcmd *man page are incorrect. An example of one such link: http://www.net-snmp.org/docs/man/snmpcmd.html%3Esnmpcmd%3C/A%3E(5)%20for%20details.%3CDT%3E%3CB%3E-m%3C/B%3E%20%3CI%3EMIBLIST%3C/I%3E%3CDD%3ESpecifies%20a%20colon%20separated%20list%20of%20MIB%20modules%20to%20load%20for%20thisapplication.%20%20This%20overrides%20the%20environment%20variable%20MIBS.See%20%3CI%3E%3CA%20HREF= . Bart. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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: snmptrapd 101
On Sat, Dec 19, 2009 at 1:11 PM, Seger, Mark mark.se...@hp.com wrote: I finally found my problem and I don't know if this is a bug, a feature or some sort of configuration error on my part. I decided to try running tcpdump when doing the snmptrap command and sure enough, nothing! For complete grins, to make sure tcpdump was working I went to a different system and did a ping. Worked fine so while there I decided to try snmptrap and lo and behold, I received it! In other works remote traps are being received but local ones aren't. I gotta believe snmptrapd can receive local traps especially since all the examples in the FAQ show sending to 'localhost'. So does anyone have any idea why I can't receive local traps? Which interfaces did you make tcpdump listen to ? Have you tried tcpdump -i any, which also captures traffic sent over the localhost interface ? Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: where is the snmptrap utility?
On Sat, Dec 19, 2009 at 1:45 PM, Seger, Mark mark.se...@hp.com wrote: I just installed net-snmp-5.4.2 for x86_64 with yum on my fedora box and there’s no snmptrap utility with it. In fact none of the utilities like snmpget/set/walk are there either. Was this a packaging problem or do I need to install them separately and if so how? I know when I manually install net-snmp I get all the utilities with it. The following should help (as root): $ yum install net-snmp-utils $ rpm -ql net-snmp-utils /usr/bin/encode_keychange /usr/bin/snmpbulkget /usr/bin/snmpbulkwalk /usr/bin/snmpdelta /usr/bin/snmpdf /usr/bin/snmpget /usr/bin/snmpgetnext /usr/bin/snmpinform /usr/bin/snmpnetstat /usr/bin/snmpset /usr/bin/snmpstatus /usr/bin/snmptable /usr/bin/snmptest /usr/bin/snmptranslate /usr/bin/snmptrap /usr/bin/snmpusm /usr/bin/snmpvacm /usr/bin/snmpwalk /usr/share/man/man1/encode_keychange.1.gz /usr/share/man/man1/snmpbulkget.1.gz /usr/share/man/man1/snmpbulkwalk.1.gz /usr/share/man/man1/snmpcmd.1.gz /usr/share/man/man1/snmpdelta.1.gz /usr/share/man/man1/snmpdf.1.gz /usr/share/man/man1/snmpget.1.gz /usr/share/man/man1/snmpgetnext.1.gz /usr/share/man/man1/snmpinform.1.gz /usr/share/man/man1/snmpnetstat.1.gz /usr/share/man/man1/snmpset.1.gz /usr/share/man/man1/snmpstatus.1.gz /usr/share/man/man1/snmptable.1.gz /usr/share/man/man1/snmptest.1.gz /usr/share/man/man1/snmptranslate.1.gz /usr/share/man/man1/snmptrap.1.gz /usr/share/man/man1/snmpusm.1.gz /usr/share/man/man1/snmpvacm.1.gz /usr/share/man/man1/snmpwalk.1.gz /usr/share/man/man5/snmp.conf.5.gz /usr/share/man/man5/variables.5.gz Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: How to install net-snmp in quiet mode on windows server?
-Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Monday, December 21, 2009 2:47 PM To: sailer shen Cc: net-snmp-users@lists.sourceforge.net Subject: RE: How to install net-snmp in quiet mode on windows server? Both Net-SNMP and the Net-SNMP installer are open source projects. Anyone is welcome to add quiet mode support to the Net-SNMP installer and to contribute it as a patch. See also http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/win32/dist/ Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: How to install net-snmp in quiet mode on windows server?
On Tue, Dec 22, 2009 at 7:19 PM, Mike Ayers mike_ay...@tvworks.com wrote: -Original Message- From: Bart Van Assche [mailto:bart.vanass...@gmail.com] Sent: Monday, December 21, 2009 11:17 PM To: Sorrell, Al Cc: Mike Ayers; sailer shen; net-snmp-users@lists.sourceforge.net Subject: Re: How to install net-snmp in quiet mode on windows server? -Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Monday, December 21, 2009 2:47 PM To: sailer shen Cc: net-snmp-users@lists.sourceforge.net Subject: RE: How to install net-snmp in quiet mode on windows server? Both Net-SNMP and the Net-SNMP installer are open source projects. Anyone is welcome to add quiet mode support to the Net-SNMP installer and to contribute it as a patch. See also http://net- snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/win32/dist/ So... does this mean that you know there not to be quiet mode support at this time? Indeed. As anyone can verify, the command ./net-snmp-5.5.0-1.x86.exe /? does not show any command-line help but brings up the installer GUI instead. This is a strong hint that the current Net-SNMP installer does neither support command-line switches nor a silent mode install. Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: why snmplib/snmp_alarm.c needed in net-snmp agent
On Fri, Dec 11, 2009 at 11:20 AM, bheemesh v bheem...@gmail.com wrote: Attaching call graph of the profiled snmpd daemon. Find the graph in attachment. (replying to an e-mail of two weeks ago) The call graph is interesting. What you did not yet tell us, and what is important in order to interpret the call graph correctly, is how many rows are present on your setup in ipAddressTable. As you can see in the source code of netsnmp_binary_array_insert(), this function adds a new entry at the end of the array and sets the dirty flag. Setting the dirty flag will make the next call of netsnmp_binary_array_get() (which is called by netsnmp_binary_array_insert() to check for duplicate entries) sort the array. It will probably help to modify netsnmp_binary_array_insert() such that if the dirty flag is not set upon entry, it does not set the dirty flag upon exit but instead inserts the new entry at the right position in the array such that it remains sorted. Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: why snmplib/snmp_alarm.c needed in net-snmp agent
On Thu, Dec 24, 2009 at 1:28 PM, bheemesh v bheem...@gmail.com wrote: On Thu, Dec 24, 2009 at 2:53 PM, Bart Van Assche bart.vanass...@gmail.com wrote: On Fri, Dec 11, 2009 at 11:20 AM, bheemesh v bheem...@gmail.com wrote: Attaching call graph of the profiled snmpd daemon. Find the graph in attachment. (replying to an e-mail of two weeks ago) The call graph is interesting. What you did not yet tell us, and what is important in order to interpret the call graph correctly, is how many rows are present on your setup in ipAddressTable. As you can see in the source code of netsnmp_binary_array_insert(), this function adds a new entry at the end of the array and sets the dirty flag. Setting the dirty flag will make the next call of netsnmp_binary_array_get() (which is called by netsnmp_binary_array_insert() to check for duplicate entries) sort the array. It will probably help to modify netsnmp_binary_array_insert() such that if the dirty flag is not set upon entry, it does not set the dirty flag upon exit but instead inserts the new entry at the right position in the array such that it remains sorted. Thanks very much for your inputs. In fact we have 500+ IP's configured on this machine. Meanwhile as a optimization i tried was to avoid the netsnmp_binary_array_get() call from netsnmp_binary_array_insert(), so that sort will be called only when the last entry in the container is being checked. Because this only checks for duplicate entries. Let me know whether this change makes it better? You are welcome to submit a patch that fixes this issue on the Net-SNMP patch tracker. Bart. -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ 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: Snmptrapd losing traps when configured to log via syslog
On Wed, Jan 20, 2010 at 4:02 PM, athulya.naraya...@wipro.com wrote: I am using snmptrapd in order to forward traps to another listening application. I have tested performance by storming *multiple traps per second*, using a trap stormer tool Net-SNMP version used : 5.3.2.2-5 Platform tested : Linux snmptrapd startup options : -Lsd It is noticed that snmptrapd did not log all traps to /var/log/messages, as an example, for 500 traps, it logged details of only 371 traps. Hence, the other listening application also showed that it received 371 traps. However, when snmptrapd is restarted with options to log to a file i.e, -Lf filename, for the same testing, NO trap loss was seen. *I would like help in understanding the reason why logging via syslog is leading to trap loss, to be precise the difference in the logging methods used by snmptrapd for syslog and normal file logging, which could cause trap loss when logging via syslog. Please help.* Also, when snmptrapd is configured to forward as well as invoke traphandler for each trap, even with options to log to file, traps are getting dropped. Is there some information of performance constraints for snmptrapd in terms of trap loss? Since snmptrapd is single-threaded, it can log at most 1 / (time in seconds needed to log a single trap) traps per second. Higher trap rates will cause trap loss. The above means that at least on your setup logging via syslog takes more time than logging to a file. Bart. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ 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 compilation problem
On Mon, Jan 25, 2010 at 3:50 AM, Group mailforgr...@gmail.com wrote: I'm getting compilation error while compiling net-snmp by running command make The following is the configuration operating system: windows vista environment: cygwin net-snmp version: net-snmp-5.5 I have looked through the mailing-list but could not get any lead. From the error, I guess some package is missing. Can any one of you please let me know the package to install and how to resolve this issue. Thanks a lot. gcc -c -I../../include -g -O2 -Ucygwin -Dcygwin=cygwin -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/incl ude -I/usr/lib/perl5/5.10/i686-cygwin/CORE -I. -I/usr/local/include -DPERL_USE_S AFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -I/usr /local/include -DUSEIMPORTLIB -O3 -DVERSION=\5.05\ -DXS_VERSION=\5.05\ - I/usr/lib/perl5/5.10/i686-cygwin/CORE default_store.c rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,838 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector default_st ore.o -o ../blib/arch/auto/NetSNMP/default_store/default_store.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/home/test/ne t-snmp-5.5/perl/default_store/../../snmplib/.libs -L/home/test/net-snmp-5.5/pe rl/default_store/../../snmplib -L/usr/local/lib -lnetsnmp \ /home/test/net-snmp-5.5/perl/default_store/../../snmplib/.libs/libnetsnmp.a(sc api.o): In function `sc_decrypt': /home/test/net-snmp-5.5/snmplib/scapi.c:987: undefined reference to `_DES_key_ sched' [ ... ] Which options did you specify to the configure script ? Did you encounter the following message during the configure step ? configure: WARNING: winsock.h: present but cannot be compiled configure: WARNING: winsock.h: check for missing prerequisite headers? configure: WARNING: winsock.h: see the Autoconf documentation configure: WARNING: winsock.h: section Present But Cannot Be Compiled configure: WARNING: winsock.h: proceeding with the preprocessor's result configure: WARNING: winsock.h: in the future, the compiler will take precedence configure: WARNING: ## ## configure: WARNING: ## Report this to net-snmp-cod...@lists.sourceforge.net ## configure: WARNING: ## ## Bart. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev___ 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 compilation problem
On Mon, Jan 25, 2010 at 11:22 PM, Group mailforgr...@gmail.com wrote: I could see openssl installed from cygwin as (though i haven't explicitly installed) $ openssl version OpenSSL 0.9.8l 5 Nov 2009 Is openssl-devel not included in openssl? If not. Which version do i need to install?. Do we have any version available for cygwin?. Please let me know. Thanks. When using openssl (or any other external library) with Net-SNMP, you need matching binaries and header files. So you can either obtain a development package from the same supplier that provided you OpenSSL 0.9.8l, install this, and tell the Net-SNMP configure script the path of these header files, or you can install the Cygwin packages openssl and openssl-devel via Cygwin's installer (http://www.cygwin.com/setup.exe). Bart. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ 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 compilation problem
On Thu, Jan 28, 2010 at 9:50 AM, Group mailforgr...@gmail.com wrote: 2. Added -lcrypto to LDLOADLIBS as...LDLOADLIBS= existingcode -lcrypto in Makefiles present in perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile The above Makefiles are places where its expecting openssl package, so i added in those locations. [ ... ] Hello, Regarding building the Perl modules for Windows: please have a look at the section Win32 (Cygwin) in perl/SNMP/README. Note: I have not yet tried myself to build the Perl modules on Windows. Bart. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ 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: Building NET_SNMP-5.5 using Visual Studio-2008
On Tue, Feb 9, 2010 at 11:08 AM, ganeshyell...@bel.co.in wrote: i am building netsnmp-5.5( using netsnmp.dll) using Microsoft Visual studio 2008 on windows xp. [ ... ] snmpwalk.obj : error LNK2019: unresolved external symbol _optind referenced in function _optProc snmpwalk.obj : error LNK2019: unresolved external symbol _optarg referenced in function _optProc [ ... ] As far as I know net-snmp 5.5 with winExtDLL enabled builds fine with MSVC 2008. Have you alread tried to extract net-snmp-5.5.zip in a new subdirectory and to build the project with no other modifications than enabling winExtDLL ? The above error message means that neither optind nor optarg have been exported from netsnmp.dll. Have you perhaps modified libsnmp_dll/libsnmp.def ? Bart. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ 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: problem with extend on win32: nsExtendObjects table cut short
On Wed, Feb 10, 2010 at 8:44 PM, Rottenberg, Hal harold_rottenb...@homedepot.com wrote: When I do this: snmpwalk -v2c -c community host nsExtendObjects I am not seeing anything after the nsExtendStatus table. That means no output, and seemingly, the extensions are not being invoked. I tried manually hitting an Output1Line OID and that did not work. This happens on multiple Win32 boxes, yet for the most part, this has worked great in the past. I tried commenting out all of the extend lines, then adding a simple extension which I know has worked before to see what happened. Restarted agent, polled, and-no output. Sample output: § HXRLAP2 {~} snmpwalk -v2c -ccommunity host:3181 nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendCommand.win_svr_bat_test1 = STRING: E:/PROGRA~1/netsnmp_5 -4-2/etc/snmp/extensions/echo1.bat NET-SNMP-EXTEND-MIB::nsExtendArgs.win_svr_bat_test1 = STRING: NET-SNMP-EXTEND-MIB::nsExtendInput.win_svr_bat_test1 = STRING: NET-SNMP-EXTEND-MIB::nsExtendCacheTime.win_svr_bat_test1 = INTEGER: 5 NET-SNMP-EXTEND-MIB::nsExtendExecType.win_svr_bat_test1 = INTEGER: exec(1) NET-SNMP-EXTEND-MIB::nsExtendRunType.win_svr_bat_test1 = INTEGER: run-on-read(1) NET-SNMP-EXTEND-MIB::nsExtendStorage.win_svr_bat_test1 = INTEGER: permanent(4) NET-SNMP-EXTEND-MIB::nsExtendStatus.win_svr_bat_test1 = INTEGER: active(1) Note that right here what I expect to see are lines like this (pasted from another host): NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.win_svr_bat_test1 = STRING: Test1 NET-SNMP-EXTEND-MIB::nsExtendOutputFull.win_svr_bat_test1 = STRING: Test1 NET-SNMP-EXTEND-MIB::nsExtendOutNumLines.win_svr_bat_test1 = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendResult.win_svr_bat_test1 = INTEGER: 0 NET-SNMP-EXTEND-MIB::nsExtendOutLine.win_svr_bat_test1.1 = STRING: Test1 Can you please report this on the Net-SNMP bug tracker, including information about which Net-SNMP version you are using, the contents of snmpd.conf, how you obtained Net-SNMP binaries and whether or not winExtDLL was enabled ? Thanks, Bart. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ 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 on Windows 2008 R2 Server
On Fri, Feb 12, 2010 at 7:50 PM, Frank Feola frank.fe...@aeac.org wrote: What am I doing wrong.? I am installing net-snmp on a Windows 2008 R2 server and I get the error “The application was unable to start correctly (0xc0152)” when running snmptranslate -IR -Td IF-MIB::linkDown as a test to ensure the system is operational . How did you install Net-SNMP ? That error message means that a DLL could not be found. The Net-SNMP installer sets up the system variable PATH properly such that netsnmp.dll can be found. Bart. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ 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: Building NET_SNMP-5.5 using Visual Studio-2008
On Tue, Feb 9, 2010 at 11:08 AM, ganeshyell...@bel.co.in wrote: [ ... ] snmpwalk.obj : error LNK2019: unresolved external symbol _optind referenced in function _optProc [ ... ] You have to modify win32/net-snmp/net-snmp-config.h as follows when building libnetsnmp as a dll: change the line /* #undef NETSNMP_USE_DLL */ into #define NETSNMP_USE_DLL 1 Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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
On Fri, Feb 19, 2010 at 5:12 AM, Вениамин Колесников benko...@mail.ruwrote: I installed net-snmp-5.4.1-3.win32.exe to Windows 2000 Server and i have pare quiestion. Can you answer their, please? 1st question: How i can remote (from network) or localy restart any service on Windows 2000 Server, if one of defined by me processes is down? 2nd question: I made the net-SNMP Agent like windows service (snmpd -register), but when i start is, i get System Error 1067 with note - The processec termonated unexpectedly I haven't yet tried myself to install Net-SNMP 5.4.1-3 on Windows 2000. Net-SNMP 5.5 runs fine on Windows 2000 though - at least after having installed OpenSSL and the MSVC 2008 redistributables. Which output do you get when you start c:\usr\bin\snmpd -f -Lo in a command prompt ? Were there any error messages about snmpd logged in the system log ? Does depends.exe reveal any missing dependencies ? Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: set request received more than once.
On Wed, Feb 24, 2010 at 12:09 PM, Tanisha Kashyap tanisha.kash...@aricent.com wrote: I have defined the following cases in my code for the SET REQUEST: MODE_SET_RESERVE1 MODE_SET_RESERVE2 MODE_SET_FREE - does nothing MODE_SET_ACTION MODE_SET_COMMIT - does nothing MODE_SET_UNDO - does nothing The function that is invoked multiple times is defined under the MODE_SET_ACTION case. Since I have defined all the cases for the Set request so the function under MODE_SET_ACTION case shouldn't be invoked more than once. Is my thought correct? I agree that MODE_SET_ACTION should be invoked only once for each SNMP set request received from the SNMP management software. However, you should keep in mind that SNMP requests are sent over UDP. If the reply gets lost or does not arrive in time at the server running the management software, the set request will be resent. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Error: The Side-by-Side configuration information for AGENT.DLL contains errors on Windows
On Sat, Feb 27, 2010 at 6:43 AM, Patrick H. Piper ppi...@netlinxinc.comwrote: Installed NetSNMP on Windows 2008 Server. C:\usr\binperl -v This is perl, v5.10.1 built for MSWin32-x86-multi-thread (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:48:26 And Net-SNMP 5.5. Then I did: ppm remove NetSNMP to ensure that I removed any previous install. Then ppm install NetSNMP.ppd. No errors. When I attempt to use NetSNMP::agent, I get the following error: Error: The Side-by-Side configuration information for c:\perl\site\lib\auto\netsnmp\agent\AGENT.DLL contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. Can you please file this information as a bug report, including the Net-SNMP version ? The output I got for Net-SNMP 5.5 (net-snmp-5.5.0-1.x86.exe) is as follows: C:\perl extend-agent.pl Can't load 'C:/Perl/site/lib/auto/NetSNMP/agent/agent.dll' for module NetSNMP::agent: load_file:This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem at C:/Perl/lib/DynaLoader.pm line 201. at z:\extend-agent.pl line 2 Compilation failed in require at extend-agent.pl line 2. BEGIN failed--compilation aborted at extend-agent.pl line 2. C:\windbg.exe c:\perl\bin\perl.exe extend-agent.pl [ ... ] 0:000 G ModLoad: 7639 763ad000 C:\WINDOWS\system32\IMM32.DLL ModLoad: 1000 10005000 c:\Perl\lib\auto\Cwd\Cwd.dll ModLoad: 0035 0035a000 c:\Perl\site\lib\auto\NetSNMP\default_store\default_store.dll ModLoad: 01b2 01ba7000 C:\usr\bin\netsnmp.dll ModLoad: 01bb 01cae000 C:\WINDOWS\system32\LIBEAY32.dll ModLoad: 71ad 71ad9000 C:\WINDOWS\system32\WSOCK32.dll ModLoad: 71ab 71ac7000 C:\WINDOWS\system32\WS2_32.dll ModLoad: 71aa 71aa8000 C:\WINDOWS\system32\WS2HELP.dll ModLoad: 7852 785c3000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.dll ModLoad: 01cb 01d53000 C:\usr\bin\MSVCR90.dll ModLoad: 01d6 01d77000 c:\Perl\site\lib\auto\SNMP\SNMP.dll ModLoad: 01d9 01d99000 c:\Perl\site\lib\auto\NetSNMP\OID\OID.dll ModLoad: 01db 01db7000 c:\Perl\site\lib\auto\NetSNMP\agent\default_store\default_store.dll ModLoad: 01dd 01e04000 c:\Perl\site\lib\auto\NetSNMP\agent\agent.dll LDR: LdrpWalkImportDescriptor() failed to probe c:\Perl\site\lib\auto\NetSNMP\agent\agent.dll for its manifest, ntstatus 0xc0150002 eax= ebx= ecx=7c80 edx=7c97e120 esi=7c90de6e edi=0009 eip=7c90e514 esp=0140fe38 ebp=0140ff34 iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs= efl=00200246 ntdll!KiFastSystemCallRet: 7c90e514 c3 ret C:\sigcheck -m c:\Perl\site\lib\auto\NetSNMP\agent\agent.dll Sigcheck v1.65 - File version and signature viewer Copyright (C) 2004-2010 Mark Russinovich Sysinternals - www.sysinternals.com c:\perl\site\lib\auto\netsnmp\agent\agent.dll: Verified: Unsigned File date: 8:45 27/02/2010 Publisher: n/a Description:n/a Product:n/a Version:n/a File version: n/a Thanks, Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Error: The Side-by-Side configuration information for AGENT.DLL contains errors on Windows
On Sat, Feb 27, 2010 at 6:43 AM, Patrick H. Piper ppi...@netlinxinc.comwrote: Installed NetSNMP on Windows 2008 Server. C:\usr\binperl -v This is perl, v5.10.1 built for MSWin32-x86-multi-thread (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:48:26 And Net-SNMP 5.5. Then I did: ppm remove NetSNMP to ensure that I removed any previous install. Then ppm install NetSNMP.ppd. No errors. When I attempt to use NetSNMP::agent, I get the following error: Error: The Side-by-Side configuration information for c:\perl\site\lib\auto\netsnmp\agent\AGENT.DLL contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. Hello Patrick, Has the Windows 2008 Server system on which you installed NetSNMP already been rebooted after installation of ActivePerl ? Rebooting did make the above error message disappear for me. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: -sh: ./snmpd:not found
On Thu, Mar 11, 2010 at 10:28 PM, Sylvain Dery snmpgroupu...@yahoo.cawrote: I'm compiling net-snmp for an arm-linux embedded system. However, when I try to run the snmp daemon on the embedded system, I get: /usr/local/sbin # ./snmpd *-sh: ./snmpd: not found* But it is there!: /usr/local/sbin # ls -la ./snmpd -rwxr-xr-x 1 rootroot 32859 Mar 10 14:40 2010 ./snmpd Any idea what is going on? The output of the command below will tell you which shared libraries are missing: LD_TRACE_LOADED_OBJECTS=1 ./snmpd Bart -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Error: The Side-by-Side configuration information for AGENT.DLL contains errors on Windows
On Sat, Feb 27, 2010 at 6:43 AM, Patrick H. Piper ppi...@netlinxinc.comwrote: Installed NetSNMP on Windows 2008 Server. C:\usr\binperl -v This is perl, v5.10.1 built for MSWin32-x86-multi-thread (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:48:26 And Net-SNMP 5.5. Then I did: ppm remove NetSNMP to ensure that I removed any previous install. Then ppm install NetSNMP.ppd. No errors. When I attempt to use NetSNMP::agent, I get the following error: Error: The Side-by-Side configuration information for c:\perl\site\lib\auto\netsnmp\agent\AGENT.DLL contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. For who has been following this thread: the DLL agent.dll included in the Net-SNMP 5.5 Windows binaries needs both the *Microsoft Visual C++ 2008 SP1 Redistributable Package* and the *Security update for Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package*. See also: - http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2displaylang=en - http://support.microsoft.com/?scid=kb%3Ben-us%3B973552x=10y=10 Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Failed to connect to agentx master agent ([NIL])
On Sun, Mar 14, 2010 at 6:37 PM, ppi...@netlinxinc.com wrote: While using the sample agent code in the Perl NetSNMP::agent POD page, I am getting the following error message on Windows 2008 Server: c:\temp\agent.pl Warning: Failed to connect to the agentx master agent ([NIL]): Warning: Failed to connect to the agentx master agent ([NIL]): This same code, unmodified, runs perfectly on Linux. I have read the FAQ, googled, etc. I added tcp port 705 to my Windows Firewall configuration (jic). I have started the agent by hand with -x tcp:localhost -Dagentx, as well as with the appropriate conf settings, and I get the same results. c:\usr\bin\snmpd -f -L -c c:\usr\share\snmp\snmpd.conf -x localhost:705 -Dagentx registered debug token agentx, 1 agentx_register_app_config_handler: registering .conf token for agentxsocket agentx_register_app_config_handler: registering .conf token for agentxperms agentx_register_app_config_handler: registering .conf token for agentxRetries agentx_register_app_config_handler: registering .conf token for agentxTimeout Turning on AgentX master support. agentx/config: port spec: tcp:localhost:705 agentx/master: initializing... agentx/master: initializing... DONE NET-SNMP version 5.5 Have you already tried to add the following statements in the Perl script that implements the AgentX subagent implementation: use NetSNMP::default_store (':all'); use NetSNMP::agent::default_store (':all'); [ ... ] netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, tcp:localhost:705); Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Failed to connect to agentx master agent ([NIL])
On Mon, Mar 15, 2010 at 3:12 PM, Patrick H. Piper ppi...@netlinxinc.comwrote: Bart, Thanks again. You have been most helpful. I am sure that I am not the first to go thru the pain of the nuiances between Net-SNMP on Linux vs. Windows. I know I am late to the SNMP party, but I do appreciate your help. In summary on the Windows challenges: Agent.dll is not usable on Windows without the 2008 distributables SP1 patch agent code fails without the “use IO::Socket” and gives you the following error: netsnmp_assert GetLastError() != 10093L failed ..\..\snmplib\winpipe.c:46 netsnmp_assert GetLastError() != 10093L failed ..\..\snmplib\winpipe.c:46 select: No such file or directory and lastly, the following code is required on Windows: use NetSNMP::default_store (':all'); use NetSNMP::agent::default_store (':all'); [ ... ] netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, tcp:localhost:705); when you see this erorr: agent.pl Warning: Failed to connect to the agentx master agent ([NIL]): Warning: Failed to connect to the agentx master agent ([NIL]): I'll see what can be done to make sure that neither use IO::Socket nor netsnmp_ds_set_string(NETSNMP_ DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, tcp:localhost:705) are necessary when using Perl on Windows with future Net-SNMP releases. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: -sh: ./snmpd:not found
On Mon, Mar 15, 2010 at 2:52 PM, Sylvain Dery snmpgroupu...@yahoo.cawrote: Setting LD_TRACE_LOADED_OBJECTS did not do anything... any other suggestions are welcome! /usr/local/sbin # LD_TRACE_LOADED_OBJECTS=1 ./snmpd -sh: ./snmpd: not found Printing which shared libraries are necessary by setting LD_TRACE_LOADED_OBJECTS is a glibc feature. So this means that there is either an old glibc version present on the embedded device or, more likely, the C library is not glibc. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: mib file configuration issue
On Fri, Mar 19, 2010 at 3:28 PM, Martz, Peter peter_ma...@cable.comcast.com wrote: I am trying to clean up a 3rd party MIB file so that it compiles correctly. The only error I am now getting is: Did not find 'DisplayString' in module RFC1213-MIB (/usr/share/snmp/mibs/mib.txt.002) All the DisplayString settings **appear** correct to me, but as a newbie there is obviously something I am missing. Would someone please illuminate my dull brain please? Are you familiar with smilint ? The smilint tool can be very helpful when writing a MIB. See also http://net-snmp.sourceforge.net/wiki/index.php/Writing_your_own_MIBs. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: help on linkUpDownNotifications
2010/3/19 X Z b...@live.com I am trying to get the linkUp and linkDown traps sent from the snmpd agent. I use snmptrapd as a listener on the localhost and didn't receive the linkDown event. I started snmpd with option -Ddisman:event The following messages dumped: isman:event:delta: Bool comparison: (2 == 2) 1 disman:event:trigger:fire: Firing boolean test: IF-MIB::ifOperStatus.7 disman:event:fire: Event fired (_snmpd, _linkDown) disman:event:fire: Firing notification event disman:event:fire: Adding event objects (first) disman:event:fire: Adding trigger objects (general) disman:event:fire: Adding trigger objects (specific) .. disman:event:fire: Adding event objects (internal) disman:event:objects: Unknown internal objects tag (_linkUpDown) Does anyone know how to get the linkdown and linkup traps working? I can do a snmpwalk for the ifTable and see the link status is down. Which operating system and which Net-SNMP version are you using ? Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: Can't install Net-SNMP Perl package on Windows 7 system
On Mon, Mar 22, 2010 at 9:42 PM, Fishbeck, John jbfis...@pplant.msu.eduwrote: I did my best to search the bugs database, FAQs and list archives for an answer to this, but if it’s in there somewhere, I missed it. Feel free to direct me to the appropriate resource if so. I have successfully used the Net-SNMP software with the Perl package in Perl scripts on Windows XP SP 3 systems. I am now attempting to use the package on my Windows 7 system, and the Perl NetSNMP package is failing to install with the error message “ppm install failed: The PPD does not provide code to install for this platform”. I’ve downloaded and installed the NetSNMP 5.0 build. The install of the base SNMP code appears successful, as the “snmptranslate -IR -Td IF-MIB::linkDown” post-install test does produce the correct output. I am in the /usr/perl directory when I run the ‘ppm install NetSNMP.ppd’ command, the NetSNMP.ppd file does seem to correctly reference the location of the code files relative to the /usr/perl directory (CODEBASE HREF=x86/NetSNMP.tar.gz /), the /usr/perl/x86 directory does exist, and the NetSNMP.tar.gz is present in the /usr/perl/x86 directory and is valid. So am I to conclude that while the base Net-SNMP package is compatible with Windows 7, the Perl module for interfacing to the Perl scripting environment is not? Please consider switching to Net-SNMP 5.5 -- version 5.0 is no longer maintained. Regarding the actual problem: Perl ppd packages can only be used in combination with the Perl version they have been generated for. So you have probably installed another Perl version than the Perl version indicated in the ppd description. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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-snmpd v5.5 build fails with undefined reference to `pthread_create'
On Fri, Apr 2, 2010 at 10:17 PM, Wes Hardaker harda...@users.sourceforge.net wrote: On Wed, 31 Mar 2010 15:34:00 +, James Howarth jhowa...@arbor.net said: JH ./configure --enable-ipv6 --disable-embedded-perl Are you sure that's *all* the options you used? Because this error: JH ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create' Seems to indicate that a mib module was compiled in that wants threads support, and none of the base distribution modules should require it. I'm not sure that I understood the above correctly, but there is a pthread_create() call present in the source file agent/mibgroup/if-mib/data_access/interface_linux.c. Shouldn't an AC_CHECK_LIB test for libpthread be added to configure.d/config_os_libs ? Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: how to configure net-snmp on uclinux(fork vfork)
2010/4/6 黎明傲子 ll_j...@163.com I'm an embedded software engineer,recently I'm porting net-snmp on uclinux,my cross-compilation tools is arm-elf-, the configuration as follows: *./configure --build=i386-linux --host=arm-elf --target=arm-uclinux --disable-manuals --disable-applications --disable-scripts -enable-debugging --disable-testing --with-endianness=little --with-cc=arm-elf-gcc --with-ar=arm-elf-ar --prefix=/home/uClinux/AMLY/net-snmp-5.2.5.1/install --with-persistent-directory=/var/net-snmp --with-default-snmp-version=3 --with-sys-contact=contact --with-sys-location=location --enable-shared=no --enable-mini-agent --with-ldflags=-elf2flt -Bstatic * * * My build process is successful,but when I run snmpd on my board(CPU:S3C2510)failed,as follows: *snmpd *[ ... ] As I know that uClinux does not implement fork(),so I modified the file $(net-snmp-5.2.5.1)/ include/net-snmp/net-snmp-config.h add a line #define fork vfork, however,I also can’t run snmpd on my board and deadlocks happened,so I hope you can give my some advices about this,thanks! Have you already tried to pass flag -f to snmpd ? That way snmpd doesn't invoke fork() or vfork(). You can start snmpd e.g. as follows if your shell supports : snmpd -f Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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-snmpd v5.5 build fails with undefined reference to `pthread_create'
On Tue, Apr 6, 2010 at 5:54 PM, Howarth, James jhowa...@arbor.net wrote: I do not quite follow your response. Are you suggesting that this is bug and config_os_libs should be modified? If so should I create a bug for this? Or are you suggesting that I have not configured the build correctly via the configure command? Sorry for the naive questions but I am sure how to move forward on this problem. Yes, I consider this as a bug in the Net-SNMP configure scripts. Please create a bug report. I have been able to reproduce the issue you reported with r18453 of the source code on the 5.5 branch. Apparently it's the configure option --disable-embedded-perl that triggers the breakage. A possible workaround is to use the following configure command: ./configure --enable-ipv6 --disable-embedded-perl --with-libs=-lpthread Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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: what reason causes echo some date after command line snmpd
2010/4/7 黎明傲子 ll_j...@163.com When I port net-snmp to my board(uClinux),the compile process is successful,but if I enter the command line snmpd ,always some date appears, like # snmpd -f 36 I want to know why this happened, Is there anything I can do for it? what “36 “ is stand for ? In addition,if I enter the command line # snmpd -c /etc/snmpd.conf -f 39 # ps ……. 51 S0 Z 0K 0K 8.3 snmpd ……. Why not echo “snmpd -c /etc/snmpd.conf –f”? You didn't tell us yet which shell you are using. The number displayed when a process is started as a background process is printed by the shell and hence its meaning depends on the shell. As an example, bash prints both the job number and the process ID when starting a background process. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Sat, Apr 10, 2010 at 12:50 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc1 versions are: - Proper handling of multiple matching VACM entries (using the best match rather than the first one seen) This could potentially affect the behaviour of existing access control configurations. - Usage statistics for large disks are latched at 2Tb (2^31) rather than wrapping - The default AgentX target for Windows systems will listen on the localhost interface only rather than on all network interfaces. (5.4.3 only) This does not affect the default on Unix-based systems, which still use a named socket. The 5.2.6 release is envisaged as being the final version on the 5.2.x line. No further development is planned for this branch. It is hoped that these candidates can be released as the full versions as soon as possible, assuming no major issues come to light. Please test them out and report any problems that you might encounter. Download URLs: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.2.6_pre-releases/ http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3_pre-releases/ Building 5.4.3.rc2 on Windows via build.bat fails: [ ... ] cl.exe /nologo /MD /W3 /GX /O2 /I . /I .. /I ..\..\snmplib /I ..\.. /I ..\..\include /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /D NETSNMP_DLL /Fp.\release\libsnmp_dll.pch /YX /Fo.\release\\ /Fd.\release\\ /FD /c ..\..\snmplib\snmpTCPDomain.c ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(187) : error C2146: syntax error : missing ';' before identifier 'farendlen' ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'farendlen' : undeclared identifier [ ... ] Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Mon, Apr 12, 2010 at 4:20 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 10 April 2010 08:53, Bart Van Assche bvanass...@acm.org wrote: Building 5.4.3.rc2 on Windows via build.bat fails: [ ... ] cl.exe /nologo /MD /W3 /GX /O2 /I . /I .. /I ..\..\snmplib /I ..\.. /I ..\..\include /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /D NETSNMP_DLL /Fp.\release\libsnmp_dll.pch /YX /Fo.\release\\ /Fd.\release\\ /FD /c ..\..\snmplib\snmpTCPDomain.c ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(187) : error C2146: syntax error : missing ';' before identifier 'farendlen' ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'farendlen' : undeclared identifier Can I check the exact settings you are working with, please. What version of Visual Studio are you using? What changes (if any) did you make to the build settings? I've just tried with a fresh tarball, using Visual Studio 2008 Professional, and accepting the default build settings. This ran into a couple of problems - but not anything like the errors shown above. Firstly, I found that 'build.pl' complained about needing to run the VCVARS32.bat script - despite the fact that I'd already run this. Then there were errors about inconsistent definitions within VC header files, which turned out to be due to the entry #define vsnprintf _vsnprintf within win32/net-snmp/net-snmp-config.h{,.in} Deleting this allowed the software to build OK. I don't know whether these are common problems, or related to our setup here. But I haven't been able to reproduce the error you list above. As far as I know win32/build.bat on the V5.4 branch only works with Visual Studio 6. This is what I get with default build settings for win32/build.bat: [ ... ] netsnmpmibs.lib(snmpNotifyTable.obj) : error LNK2001: unresolved external symbol _log_notification ..\bin\.\release/snmpd.exe : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Stop. And this is what I get with Platform SDK Support, IPv6 support enabled and link type set to DLL, as shown above: [ ... ] cl.exe /nologo /MD /W3 /GX /O2 /I . /I .. /I ..\..\snmplib /I ..\.. /I ..\..\include /D WIN32 /D NDEBUG /D _CONSOLE /D _MBCS /D NETSNMP_DLL /Fp.\release\libsnmp_dll.pch /YX /Fo.\release\\ /Fd.\release\\ /FD /c ..\..\snmplib\snmpTCPDomain.c snmpTCPDomain.c ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared identifier [ ... ] These results have been produced with the source code obtained from https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-4-patches/net-snmp, r18491. No Subversion-administered files were modified except those overwritten by the build process (win32/libsnmp_dll/libsnmp.def and win32/net-snmp/net-snmp-config.h). Note: win32/win32.dsw builds fine with VS6, at least on my setup. Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Sat, Apr 10, 2010 at 12:50 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc1 versions are: - Proper handling of multiple matching VACM entries (using the best match rather than the first one seen) This could potentially affect the behaviour of existing access control configurations. - Usage statistics for large disks are latched at 2Tb (2^31) rather than wrapping - The default AgentX target for Windows systems will listen on the localhost interface only rather than on all network interfaces. (5.4.3 only) This does not affect the default on Unix-based systems, which still use a named socket. The 5.2.6 release is envisaged as being the final version on the 5.2.x line. No further development is planned for this branch. It is hoped that these candidates can be released as the full versions as soon as possible, assuming no major issues come to light. Please test them out and report any problems that you might encounter. Download URLs: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.2.6_pre-releases/ http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3_pre-releases/ I just noticed that the perl modules are broken on the V5.4 branch when building on Win32. From win32/perlmake.out: [ ... ] agent.obj : error LNK2019: unresolved external symbol _strtoull referenced in function _XS_NetSNMP__agent__netsnmp_request_infoPtr_setValue [ ... ] Bart. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ 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, Compile error.
2010/4/22 wangdaobang wan...@toyou.com.cn I'm new here, would you like to help me about the net snmp compile with vc6.0? the output is followed: Compiling... snmptest.c C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock.h(49) : error C2011: 'fd_set' : 'struct' type redefinition [ ... ] Which version of Net-SNMP have you tried to compile ? Which directories have been configured in MSVC 6 under Tools / Options / Directories / Include files ? Bart. -- ___ 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, Compile error.
Hello Mr. Wang, Does the patch below make the Net-SNMP source code build ? (You can also obtain this patch by running the command svn diff -c18565 https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-5-patches .) Index: win32/net-snmp/net-snmp-config.h === --- win32/net-snmp/net-snmp-config.h(revision 18564) +++ win32/net-snmp/net-snmp-config.h(revision 18565) @@ -32,10 +32,15 @@ /* #undef NETSNMP_ENABLE_IPV6 */ /* Only use Windows API functions available on Windows 2000 SP4 or later. - * We need at least SP1 for some IPv6 defines in ws2ipdef.h + * We need at least SP1 for some IPv6 defines in ws2ipdef.h. + * Only define _WIN32_WINNT when not being compiled with MSVC 6 without PSDK + * because there is a bug in the MSVC 6 header winsock.h that causes + * inclusion of winsock2.h. */ +#if defined(HAVE_WIN32_PLATFORM_SDK) || !defined(_MSC_VER) || _MSC_VER 1200 #define _WIN32_WINNT 0x500 /*_WIN32_WINNT_WIN2K*/ #define NTDDI_VERSION 0x05000400 /* NTDDI_WIN2KSP4 */ +#endif #define INSTALL_BASE c:/usr Bart. On Mon, Apr 26, 2010 at 7:25 AM, wdb wan...@toyou.com.cn wrote: Hi Bart, Thanks for your reply, I downloaded 5.5, and the includes directory is: net-snmp5.5/include. Would you like to give me more detail about this? Thank you very much, Daobang Wang. - Original Message - *From:* Bart Van Assche bvanass...@acm.org *To:* wangdaobang wan...@toyou.com.cn *Cc:* net-snmp-users@lists.sourceforge.net *Sent:* Friday, April 23, 2010 6:04 PM *Subject:* Re: net snmp, Compile error. 2010/4/22 wangdaobang wan...@toyou.com.cn I'm new here, would you like to help me about the net snmp compile with vc6.0? the output is followed: Compiling... snmptest.c C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock.h(49) : error C2011: 'fd_set' : 'struct' type redefinition [ ... ] Which version of Net-SNMP have you tried to compile ? Which directories have been configured in MSVC 6 under Tools / Options / Directories / Include files ? Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Sat, Apr 10, 2010 at 12:50 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc1 versions are: - Proper handling of multiple matching VACM entries (using the best match rather than the first one seen) This could potentially affect the behaviour of existing access control configurations. - Usage statistics for large disks are latched at 2Tb (2^31) rather than wrapping - The default AgentX target for Windows systems will listen on the localhost interface only rather than on all network interfaces. (5.4.3 only) This does not affect the default on Unix-based systems, which still use a named socket. The 5.2.6 release is envisaged as being the final version on the 5.2.x line. No further development is planned for this branch. It is hoped that these candidates can be released as the full versions as soon as possible, assuming no major issues come to light. Please test them out and report any problems that you might encounter. Download URLs: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.2.6_pre-releases/ http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3_pre-releases/ The 5.4.3rc2 Cygwin IPv6 build was broken but has been fixed via r18607. Regression tests do not yet pass though -- see also https://sourceforge.net/tracker/?func=detailaid=2993522group_id=12694atid=112694 . Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Thu, Apr 29, 2010 at 11:27 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 28 April 2010 12:02, Bart Van Assche bvanass...@acm.org wrote: The 5.4.3rc2 Cygwin IPv6 build was broken but has been fixed via r18607. Regression tests do not yet pass though -- see also https://sourceforge.net/tracker/?func=detailaid=2993522group_id=12694atid=112694 . Can you attach the logs from the tests that fail to the tracker entry, please. Under Unix-style systems, I'd expect these to be found under /tmp (one directory per failed test). I'm not sure whether this is the same for Cygwin. Do the regression tests succeed for a non-IPv6 build? If so, then I can probably investigate these problems myself. Unfortunately, our version of Cygwin does not include IPv6 support. The regression test output has been added to the Net-SNMP bug tracker. Regarding the non-IPv6 build: the results of the regression tests are the same as for the IPv6-enabled build (Summary: 41 / 59 succeeded.). Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Sat, Apr 10, 2010 at 12:50 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc1 versions are: - Proper handling of multiple matching VACM entries (using the best match rather than the first one seen) This could potentially affect the behaviour of existing access control configurations. - Usage statistics for large disks are latched at 2Tb (2^31) rather than wrapping - The default AgentX target for Windows systems will listen on the localhost interface only rather than on all network interfaces. (5.4.3 only) This does not affect the default on Unix-based systems, which still use a named socket. The 5.2.6 release is envisaged as being the final version on the 5.2.x line. No further development is planned for this branch. It is hoped that these candidates can be released as the full versions as soon as possible, assuming no major issues come to light. Please test them out and report any problems that you might encounter. Download URLs: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.2.6_pre-releases/ http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3_pre-releases/ The 5.4.3 pre-release didn't build on MinGW. This has been fixed in r18631. Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Fri, Apr 30, 2010 at 9:22 PM, Bart Van Assche bart.vanass...@gmail.comwrote: On Sat, Apr 10, 2010 at 12:50 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: New release candidate versions of the 5.4.x and 5.2.x packages are now available from the SourceForge download servers. The main changes since the rc1 versions are: - Proper handling of multiple matching VACM entries (using the best match rather than the first one seen) This could potentially affect the behaviour of existing access control configurations. - Usage statistics for large disks are latched at 2Tb (2^31) rather than wrapping - The default AgentX target for Windows systems will listen on the localhost interface only rather than on all network interfaces. (5.4.3 only) This does not affect the default on Unix-based systems, which still use a named socket. The 5.2.6 release is envisaged as being the final version on the 5.2.x line. No further development is planned for this branch. It is hoped that these candidates can be released as the full versions as soon as possible, assuming no major issues come to light. Please test them out and report any problems that you might encounter. Download URLs: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.2.6_pre-releases/ http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3_pre-releases/ The 5.4.3 pre-release didn't build on MinGW. This has been fixed in r18631. Note: the 5.4 configure script fails to detect that recent MinGW versions supports IPv6. This issue has been fixed on the 5.5 branch and on the trunk. Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Wed, May 5, 2010 at 5:14 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 30 April 2010 11:07, Bart Van Assche bvanass...@acm.org wrote: The 5.4.3rc2 Cygwin IPv6 build was broken but has been fixed via r18607. Regression tests do not yet pass though -- see also https://sourceforge.net/tracker/?func=detailaid=2993522group_id=12694atid=112694 . I've now had a chance to look at your logs, as well as running my own tests. The results I'm seeing aren't quite as bad as yours - there are only five tests that fail (#s 19, 35, 45, 46 58) Checking the output, there seem to be two separate problems: a) Test 19 (T030) works fine until the agent is signalled with HUP to reload the configuration. The query that follows then fails. This is the first test that signals such a reload. This also appears to underly my failure for test 35 (but the logs from the tracker entry show a different problem) b) All tests attempt to use the utility function PROBE_FOR_PORT to identify suitable, unused port numbers for the various servers. This consistently fails. (Or rather, identifying a port number works, OK but assigning this to the variables SNMP_SNMPD_PORT, SNMP_SNMPTRAPD_PORT, etc fails) All tests therefore try to run both agent and trap receiver using the listening socket address udp:localhost: rather than udp:localhost:$PORT In the case of tests 45 46 (T120/121), this means that the second proxy agent attempts to listen on the same port as the master agent is already using. It cannot, and hence the proxy delegation fails. This problem also explains the failure of test 58 (T160) - the client command walks the UDP listening table, and looks for an entry with the port number SNMP_SNMPD_PORT. But since this variable is empty, there is no such matching entry in the table. I believe that the same problem underlies the rest of the failures that you are seeing. In each case, snmptrapd.log complains couldn't open udp:localhost: -- errno 1 (Operation not permitted) so the trap receiver isn't listening for incoming traps. I strongly suspect that hardwiring a suitable port number would allow these tests to succeed. (That's probably the next thing to check) I'm also seeing complaints from our anti-virus software whenever backquotes are used to invoke a sub-command (both here, and when running config.status). I don't know if this is causing the second problem, or whether this is a red herring. How do you want to proceed? Assuming that hardcoding port numbers will allow the tests to succeed, is this problem serious enough to warrent delaying the releases until it's fixed? The free port number detection issue has been fixed in r18651. With this fix the only test that still fails is test 58 because the Cygwin port of snmpd.exe reports incorrect information in the udpTable. See also https://sourceforge.net/tracker/?func=detailaid=2997492group_id=12694atid=112694. Another issue that I discovered and that is not covered by any regression test is that the information reported in tcpConnTable does not match the output of netstat. See also https://sourceforge.net/tracker/?func=detailaid=2997495group_id=12694atid=112694 . Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Thu, May 6, 2010 at 5:54 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 6 May 2010 11:07, Bart Van Assche bvanass...@acm.org wrote: The free port number detection issue has been fixed in r18651. Good work. I've ported this (and other related patches) to the other relevant branches. The 5.2.x branch passes Cygwin regression tests OK (though not with IPv6 support). Something is odd wrt 53x, but that's less urgent, since it's not in release freeze mode. With this fix the only test that still fails is test 58 because the Cygwin port of snmpd.exe reports incorrect information in the udpTable. Another issue that I discovered and that is not covered by any regression test is that the information reported in tcpConnTable does not match the output of netstat. I'm inclined to suggest that these two problems shouldn't hold up the 5.4.3 (and 5.2.6) releases any longer - this process has dragged on long enough already! I'm proposing to package up the current code as rc3 tarballs tomorrow, with a view to these being the final releases. Yell now if you strongly disagree :-) There is one open issue for the V5.4 branch I'm absolutely not happy with: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg25049.html . Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Thu, May 6, 2010 at 10:50 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 6 May 2010 17:12, Bart Van Assche bvanass...@acm.org wrote: There is one open issue for the V5.4 branch I'm absolutely not happy with: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg25049.html . Which style(s) of build does this refer to? The steps I followed are: 1. Removed C:\usr\bin recursively. 2. Verified that there were no copies left of netsnmp.dll anywhere in PATH. 3. Opened a command prompt and selected MSVC 6 by running C:\Program Files\Microsoft Visual Studio\vc98\bin\VCVARS32.BAT. 4. Started win32\build.bat, enabled option 5 (Perl modules) and started the batch build. 5. Results: a dialog complaining about netsnmp_gethostbyname_v4 not found and build.bat finished with the following message: Build error (see perlmake.out) at build.pl line 249, line 2. The dialog that appeared: [image: dialog.png] Bart. dialog.png-- ___ 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 compilation problem still unresolved
On Fri, May 7, 2010 at 11:59 PM, Group mailforgr...@gmail.com wrote: My Configuration: net-snmp version: net-snmp-5.4.2.1 environment: cygwin operating system: windows XP ran configure command: $ ./configure --without-perl-modules --disable-embedded-perl --without-openssl -with-out-mib-module s=snmpv3mibs ucd_snmp mibII notification utilities disman/event agentx agent_mibs disman/schedule ran make command $ make I'm getting following warnings...and ending up with undefined references... Warnings: /bin/sh ../libtool --mode=link gcc -g -O2 -Ucygwin -Dcygwin=cygwin -rpath /usr/local/lib -version- info 16:2:1 -o libnetsnmpagent.la snmp_agent.lo snmp_vars.lo agent_read_config.lo agent_registry.lo agent_index.lo agent_trap.lo kernel.lo agent_handler.lo ../snmplib/ libnetsnmp.la *** Warning: This system can not link to static lib archive ../snmplib/ libnetsnmp.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries ar cru .libs/libnetsnmpagent.a snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o agent_ index.o agent_trap.o kernel.o agent_handler.o ... *** Warning: This system can not link to static lib archive helpers/ libnetsnmphelpers.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This system can not link to static lib archive libnetsnmpagent.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This system can not link to static lib archive ../snmplib/ libnetsnmp.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries ar cru .libs/libnetsnmpmibs.a mibgroup/notification-log-mib/notification_log.o mibgroup/notificatio n/snmpNotifyTable.o mibgroup/target/snmpTargetAddrEntry.o mibgroup/target/snmpTargetParamsEntry.o mi bgroup/target/target.o mibgroup/target/target_counters.o mibgroup/header_complex.o mibgroup/util_fun cs.o mib_modules.o auto_nlist.o ranlib .libs/libnetsnmpmibs.a creating libnetsnmpmibs.la (cd .libs rm -f libnetsnmpmibs.la ln -s ../libnetsnmpmibs.la libnetsnmpmibs.la) : libnetsnmpmibs.la /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Ucygwin -Dcygwin=cygwin -c -o snmpd.lo snmpd.c gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Ucygwin -Dcygwin=cygwin -c snmpd.c -DDLL_EXPORT -DPIC -o .libs/snmpd.o snmpd.c: In function `main': snmpd.c:963: warning: assignment discards qualifiers from pointer target type gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Ucygwin -Dcygwin=cygwin -c snmpd.c -o snmpd.o /dev/null 21 /bin/sh ../libtool --mode=link gcc -g -O2 -Ucygwin -Dcygwin=cygwin -o snmpd.exe snmpd.lo -L../snm plib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers libnetsnmpagent.la helpers/libnetsn mphelpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -liphlpapi gcc -g -O2 -Ucygwin -Dcygwin=cygwin -o snmpd.exe .libs/snmpd.o -L/home/test/net-snmp-5.4.2.1/agen t/.libs -L/home/test/net-snmp-5.4.2.1/agent/helpers/.libs -L/home/test/net-snmp-5.4.2.1/snmplib/ .libs -L/home/test/net-snmp-5.4.2.1/snmplib -L/home/test/net-snmp-5.4.2.1/agent/helpers ./.libs/ libnetsnmpagent.a helpers/.libs/libnetsnmphelpers.a ./.libs/libnetsnmpmibs.a /home/test/net-snmp-5 .4.2.1/agent/helpers/.libs/libnetsnmphelpers.a /home/test/net-snmp-5.4.2.1/agent/.libs/libnetsnmpa gent.a /home/test/net-snmp-5.4.2.1/snmplib/.libs/libnetsnmp.a ../snmplib/.libs/libnetsnmp.a -liphl papi .libs/snmpd.o(.text+0x1ee4): In function `receive': /home/test/net-snmp-5.4.2.1/agent/snmpd.c:1112: undefined reference to `_sigrelse' ./.libs/libnetsnmpagent.a(agent_read_config.o)(.text+0x550): In function `update_config': /home/test/net-snmp-5.4.2.1/agent/agent_read_config.c:285: undefined reference to `_vacm_standard_ views' ./.libs/libnetsnmpmibs.a(util_funcs.o)(.text+0x3d1): In function `get_exec_output': /home/test/net-snmp-5.4.2.1/agent/mibgroup/util_funcs.c:277: undefined reference to `_run_exec_com mand' ./.libs/libnetsnmpmibs.a(snmpNotifyTable.o)(.text+0x4a): In function `_checkFilter':
Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Fri, May 7, 2010 at 3:55 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 6 May 2010 17:12, Bart Van Assche bvanass...@acm.org wrote: There is one open issue for the V5.4 branch I'm absolutely not happy with: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg25049.html . That seems to be a consequence of patch #2890931 (to add support of Counter64 values within the perl module). I've had a quick attempt to add 'snmplib/strtoull.c' to the Win32 build environment, but without any success. I'm inclined to reverse the above patch (and re-open the tracker entry), so that we can get the releases out with no further delay. Unless anyone can provide a fix for the strtoull compilation problem Note that the only other occurance of this call are as follows: mibgroup/util_funcs sctp-mib/sctp{Scalars,Tables}_linux.c udp-mib/data_access/udp_endpoint_linux.c (all Linux-only code) if-mib/data_access_interface.c (any architecture) The Perl Counter64 code is buggy anyway, with or without patch #2890931. According to the strtoul() and strtoull() man pages, it is not guaranteed that errno is set when the conversion of a non-zero argument succeeded. See also http://www.opengroup.org/onlinepubs/95399/functions/strtoul.html. Bart. -- ___ 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 compilation problem still unresolved
On Sat, May 8, 2010 at 10:25 PM, Group mailforgr...@gmail.com wrote: My Configuration: net-snmp version: net-snmp-5.4.2.1 environment: cygwin operating system: windows XP Now i would like to run the snmp agent on windows. I created a snmpd.conf file in /usr/local/share/snmp with following entry: rocommunity private When i tried to do a snmpget i'm getting the following error. $ snmpget -c private localhost sysUpTime Timeout: No Response from localhost. I assume that sysUpTime should have been sysUpTime.0 ? Anyway, the timeout error message means that there is either a network problem, a problem with the configuration of snmpd or that snmpd was not running. and when i do a snmpget for netSnmpExampleInteger, i'm getting the following error: (i have compiled this by including in ./configure ... -with-mib-modulesexamples/ static_int) $ snmpget -c private localhost netSnmpExampleInteger.0 netSnmpExampleInteger.0: Unknown Object Identifier (Sub-id not found: (top) - netSnmpExampleInteger ) I'm not sure whether snmp agent is running or not. How can i check this. I make sure that snmp port is not blocked (I allowed UDP port 161 in firewall settings). You can debug the access control setup of snmpd together with the network setup as follows: * Start snmpd with packet tracing enabled, e.g. as follows: agent/snmpd -Mmibs -f -d -Lo * Run snmpgetnext in another shell, e.g. as follows: apps/snmpgetnext -Mmibs -cprivate localhost .1 * Inspect the snmpd output. If no output is printed, this means that the UDP packets sent by snmpgetnext do not arrive at snmpd and hence that the network setup should be inspected. If snmpd reports that it received the packets sent by snmpgetnext but did not send any packets back, then there is a mismatch between the access control information passed to snmpgetnext and the access control information in snmpd.conf. If snmpd reports that it received and sent packets, then this means that the access control information passed to snmpgetnext and snmpd did match. An example of how the snmpd output should look like (on a Linux system): [ ... ] Received 37 byte packet from UDP: [127.0.0.1]:60541-[127.0.0.1] : 30 23 02 01 01 04 07 70 72 69 76 61 74 65 A1 150#.private.. 0016: 02 04 46 52 36 BF 02 01 00 02 01 00 30 07 30 05..FR6...0.0. 0032: 06 01 01 05 00 . Received SNMP packet(s) from UDP: [127.0.0.1]:60541-[127.0.0.1] GETNEXT message -- ccitt.1 Sending 119 bytes to UDP: [127.0.0.1]:60541-[127.0.0.1] : 30 75 02 01 01 04 07 70 72 69 76 61 74 65 A2 670u.private.g 0016: 02 04 46 52 36 BF 02 01 00 02 01 00 30 59 30 57..FR6...0Y0W 0032: 06 08 2B 06 01 02 01 01 01 00 04 4B 4C 69 6E 75..+KLinu 0048: 78 20 61 73 75 73 20 32 2E 36 2E 33 33 2E 32 2Dx asus 2.6.33.2- 0064: 73 63 73 74 20 23 31 20 53 4D 50 20 50 52 45 45scst #1 SMP PREE 0080: 4D 50 54 20 53 61 74 20 41 70 72 20 33 20 32 31MPT Sat Apr 3 21 0096: 3A 31 30 3A 35 38 20 43 45 53 54 20 32 30 31 30:10:58 CEST 2010 0112: 20 78 38 36 5F 36 34 x86_64 [ ... ] Bart. -- ___ 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 compilation problem still unresolved
On Tue, May 11, 2010 at 3:51 AM, Group mailforgr...@gmail.com wrote: Thanks for the command. I could see the debug messages now. I have added a new MIB. To add those objects to snmpd. Do i need to do configure again?. Is there any other way to do this. You have to write code in order to add support for a new MIB to snmpd. For more information, see also http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module. Bart. -- ___ 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-Bugs-2999463 ] why snmpget display string instead of hex-string
On Tue, May 11, 2010 at 8:45 AM, thierry.caze...@googlemail.com wrote: I apology creating a ticket but I'm not familiar with the process. In fact I want to know how it is choiced to display information in string format instead of hex-string? snmpset -v 2c -t 3 -r 1 -m all -O sq -c private 192.168.100.1 1.3.6.1.4.1..2.99.1.1.2.1.4.1.2.8 x %1 %1 is once 7071BCF87B36 once 7071BCF87B1F Answer is once in string format and once in Hex-String format. No problem. When no output format is specified, snmpget application prints strings that contain non-printable characters in hex and strings that only contain printable characters in ASCII. If you want hex-only output, use option -Ox with snmpget. For more information, see also man snmpcmd or http://www.net-snmp.org/docs/man/snmpcmd.html. Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Tue, May 11, 2010 at 5:51 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 8 May 2010 12:40, Bart Van Assche bvanass...@acm.org wrote: The Perl Counter64 code is buggy anyway, with or without patch #2890931. According to the strtoul() and strtoull() man pages, it is not guaranteed that errno is set when the conversion of a non-zero argument succeeded. See also http://www.opengroup.org/onlinepubs/95399/functions/strtoul.html. As far as I can tell - that's an issue with both strtoull and strtoul. Reverting to the 32-bit version wouldn't change anything as far as this is concerned. I've applied a simple patch to revert to strtoul whem compiling under Windows This allows the build.bat build to succeed when perl is enabled, while still allowing 64-bit support on other architectures. I'm not sure whether this also affect Cygwin and/or MinGW builds. (Or even whether the perl modules build at all in these environments). If you can let me know the status of the perl support with these builds, we can extend the patch if necessary. Otherwise I'm looking to cut the final final release candidates later this week. Although I consider r18689 as an ugly change, it should be sufficient to address the strtoull() linker errors that were reported by the MSVC batch build. Please note that this change must not be applied to the trunk or to the V5.5 branches since the strtoull.c source file is being compiled and linked by the Win32 batch build for these branches. After having applied patch r18692 the Perl modules do now build with MSVC 6 and MSVC 2008. The MSVC 6 build went fine. Several crashes were reported however during the perl tests run as part of the MSVC 2008 build. These crashes have been fixed on the trunk and V5.5 branches via revisions r18375, r18369 and probably a few more commits. Bart. -- ___ 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 5.4.3.rc2 and 5.2.6.rc2 available for testing
On Wed, May 12, 2010 at 4:31 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 11 May 2010 18:51, Bart Van Assche bvanass...@acm.org wrote: After having applied patch r18692 the Perl modules do now build with MSVC 6 and MSVC 2008. The MSVC 6 build went fine. Several crashes were reported however during the perl tests run as part of the MSVC 2008 build. These crashes have been fixed on the trunk and V5.5 branches via revisions r18375, r18369 and probably a few more commits. I've just tried building the 54x and 55x branches using MSVC 2008 (build.bat, including both Platform SDK and Perl support. In both cases, everything compiles OK, but the perl testing crashes out when it gets to the SNMP module. (Your vendor has not defined SNMP macro SNMP_DEFAULT_RETRIES) Right, I had already finished the default_store, ASN, OID and agent Perl modules but not yet the SNMP Perl module. I have added the details of the Win32 Perl regression test output on the bug tracker -- see also https://sourceforge.net/tracker/index.php?func=detailaid=3001079group_id=12694atid=112694 . Given that the errors are the same for both 54x and 55x lines, and in view of the length of time that the 54x release freeze has been in place, I'm inclined to the view that this probably isn't sufficient to delay the release any longer. We're never going to get all of the bugs out, but things feel good enough to run with. I understand this, but this also raises the question whether it will be possible to generate working Windows binaries for the upcoming 5.4 release. Bart. -- ___ 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: Perl-module:make test failure
On Tue, May 18, 2010 at 11:15 PM, vineet gehlot vineetgehlot9...@yahoo.com wrote: hello everyone... i m presently working with net-snmp-5.5 i insatlled it properly but while i was trying to install a perl-module present in its extracted folder i faced the afolowwing error.. PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/lib -I../blib/arch test.pl 1..90 Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203. at test.pl line 97 Compilation failed in require at test.pl line 97. BEGIN failed--compilation aborted at test.pl line 97. not ok 1 make[1]: *** [test_dynamic] Error 2 make[1]: Leaving directory `/home/vin/Desktop/net-snmp-5.5/perl/default_store' make: *** [subdirs-test] Error 2 You must either install Net-SNMP (make install) or set LD_LIBRARY_PATH properly before you run make perltest. Bart. -- ___ 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: Perl-module:make test failure
Hello, You can run the perl tests e.g. as follows on a Unix system (assuming you are using a POSIX-compliant shell, all on one line): LD_LIBRARY_PATH=$PWD/agent/helpers/.libs:$PWD/agent/.libs:$PWD/snmplib/.libs: make -C perl test Bart. On Wed, May 19, 2010 at 7:19 PM, vineet gehlot vineetgehlot9...@yahoo.comwrote: hi.. plz tell me abt how to set LD_LIBRARY_PATH Regards, Vineet Gehlot --- On *Tue, 18/5/10, Bart Van Assche bvanass...@acm.org* wrote: From: Bart Van Assche bvanass...@acm.org Subject: Re: Perl-module:make test failure To: vineet gehlot vineetgehlot9...@yahoo.com Cc: net-snmp-users@lists.sourceforge.net, Thomas Anders thomas.and...@blue-cable.de Date: Tuesday, 18 May, 2010, 10:57 PM On Tue, May 18, 2010 at 11:15 PM, vineet gehlot vineetgehlot9...@yahoo.comhttp://mc/compose?to=vineetgehlot9...@yahoo.com wrote: hello everyone... i m presently working with net-snmp-5.5 i insatlled it properly but while i was trying to install a perl-module present in its extracted folder i faced the afolowwing error.. PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/lib -I../blib/arch test.pl 1..90 Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.20: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203. at test.pl line 97 Compilation failed in require at test.pl line 97. BEGIN failed--compilation aborted at test.pl line 97. not ok 1 make[1]: *** [test_dynamic] Error 2 make[1]: Leaving directory `/home/vin/Desktop/net-snmp-5.5/perl/default_store' make: *** [subdirs-test] Error 2 You must either install Net-SNMP (make install) or set LD_LIBRARY_PATH properly before you run make perltest. Bart. -- ___ 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: stop trapd serivce on windows timeout?
On Fri, May 21, 2010 at 7:38 PM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: Stop net-snmp trapd on windows timeout and it think it hang on the select. Does anyone have run into the same issue? or have a solution to solve it? I haven't seen this so far. With which version did this occur ? And how does your snmptrapd.conf look like ? Bart. -- ___ 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: stop trapd serivce on windows timeout?
Hello Huy, The Win32 snmptrapd calls closesocket() on the UDP socket(s) owned by snmptrapd to make select() stop. While this seems to work with some Windows versions (e.g. Windows XP), this is undocumented Winsock behavior. So whether or not this works may depend on the Windows version. On which Windows version did you observe this behavior ? Bart. On Fri, May 21, 2010 at 9:54 PM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: Hi Bart, It is net-snmp-5.4.2.1 and the conf file contains just these two lines: authCommunity log, net, execute public snmpTrapdAddr udp:137.69.187.10:666 regards, Huy -- *From:* Bart Van Assche bvanass...@acm.org *To:* Snmp Nmcsnmp nmc4s...@yahoo.com *Cc:* net-snmp-users@lists.sourceforge.net *Sent:* Fri, May 21, 2010 11:53:33 AM *Subject:* Re: stop trapd serivce on windows timeout? On Fri, May 21, 2010 at 7:38 PM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: Stop net-snmp trapd on windows timeout and it think it hang on the select. Does anyone have run into the same issue? or have a solution to solve it? I haven't seen this so far. With which version did this occur ? And how does your snmptrapd.conf look like ? Bart. -- ___ 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: valgrind reporting invalid read error in table_helper_handler()
On Fri, May 21, 2010 at 2:42 PM, Nick Chalk n...@loadbalancer.org wrote: Afternoon all. Whilst using valgrind to track down a memory leak in the LVS SNMP module, we noticed an unrelated error report in snmpd 5.5 itself. ==26885== Invalid read of size 4 ==26885==at 0x4E6A8A3: table_helper_handler (table.c:620) ==26885==by 0x4C34436: netsnmp_call_handlers (agent_handler.c:440) ==26885==by 0x4C24BAE: handle_var_requests (snmp_agent.c:2611) ==26885==by 0x4C26660: handle_pdu (snmp_agent.c:3363) ==26885==by 0x4C28697: netsnmp_handle_request (snmp_agent.c:3203) ==26885==by 0x4C28AF6: handle_snmp_packet (snmp_agent.c:1929) ==26885==by 0x545088E: _sess_process_packet (snmp_api.c:5604) ==26885==by 0x5451FB4: _sess_read (snmp_api.c:6043) ==26885==by 0x5452898: snmp_sess_read2 (snmp_api.c:6075) ==26885==by 0x5452952: snmp_read2 (snmp_api.c:5667) ==26885==by 0x40486D: main (snmpd.c:1221) ==26885== Address 0xabc7714 is 4 bytes inside a block of size 1,056 free'd ==26885==at 0x4A05A31: free (vg_replace_malloc.c:325) ==26885==by 0x547380F: netsnmp_free_all_list_data (data_list.c:29) ==26885==by 0x4C32A36: netsnmp_free_request_data_sets (agent_handler.c:840) ==26885==by 0x4E69CC0: table_helper_cleanup (table.c:1028) ==26885==by 0x4E6A842: table_helper_handler (table.c:542) ==26885==by 0x4C34436: netsnmp_call_handlers (agent_handler.c:440) ==26885==by 0x4C24BAE: handle_var_requests (snmp_agent.c:2611) ==26885==by 0x4C26660: handle_pdu (snmp_agent.c:3363) ==26885==by 0x4C28697: netsnmp_handle_request (snmp_agent.c:3203) ==26885==by 0x4C28AF6: handle_snmp_packet (snmp_agent.c:1929) ==26885==by 0x545088E: _sess_process_packet (snmp_api.c:5604) ==26885==by 0x5451FB4: _sess_read (snmp_api.c:6043) We have seen no external symptoms, but would like to confirm that this is an innocuous problem. It appears that, in table_helper_handler() in agent/helpers/table.c, tbl_req_info is being used in a test after the pointer has been freed. The test is on line 619: if ((reqinfo-mode != MODE_GETNEXT) ((tbl_req_info-number_indexes != tbl_info-number_indexes) || (tmp_len != -1))) { DEBUGMSGTL((helper:table, invalid index(es) for table - skipping\n)); table_helper_cleanup(reqinfo, request, SNMP_NOSUCHINSTANCE); continue; } However, it appears this memory has been freed on line 541 in the same function: if (reqinfo-mode != MODE_GETNEXT) { table_helper_cleanup(reqinfo, requests, SNMP_NOSUCHINSTANCE); cleaned_up = 1; } Setting tbl_req_info to NULL after the call to table_helper_cleanup(), and testing for this in the if statement, clears the valgrind error report. However, I do not know if this is a good solution, or indeed if a solution is required. Thanks for the detailed report. Can you please post the changes you described above as a patch on the Net-SNMP patch tracker ( http://sourceforge.net/tracker/?group_id=12694atid=312694) ? Bart. -- ___ 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: stop trapd serivce on windows timeout?
Hello Huy, Are you aware that WSACancelBlockingCall() has been removed from Winsock 2, and that Net-SNMP needs Winsock 2 in order to support IPv6 ? See also http://msdn.microsoft.com/en-us/library/ms741547%28VS.85%29.aspx. So two possible solutions are: * Add a Windows-specific alarm to snmptrapd that is triggered e.g. once per second. This will limit the timeout argument of select(). See also the documentation of snmp_alarm_register() on http://www.net-snmp.org/dev/agent/group__snmp__alarm.html. * Or, more elegant, use a socket pair to let select() return when a service stop is requested. A socket pair can be created by calling create_winpipe_transport() (see also snmplib/winpipe.c). The read end of the socket pair can be registered for use in the select() call by calling register_readfd(). Bart. On Mon, May 24, 2010 at 6:31 AM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: On windows XP service pack 3 it does not seem to stop in a timely manner. If I put in the call WSACancelBlockingCall() then it break out fine. I will test it on several version of windows and will broadcast what I learn from it. thanks, Huy -- *From:* Bart Van Assche bvanass...@acm.org *To:* Snmp Nmcsnmp nmc4s...@yahoo.com *Cc:* net-snmp-users@lists.sourceforge.net *Sent:* Sat, May 22, 2010 3:44:07 AM *Subject:* Re: stop trapd serivce on windows timeout? Hello Huy, The Win32 snmptrapd calls closesocket() on the UDP socket(s) owned by snmptrapd to make select() stop. While this seems to work with some Windows versions (e.g. Windows XP), this is undocumented Winsock behavior. So whether or not this works may depend on the Windows version. On which Windows version did you observe this behavior ? -- ___ 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 win32 compile issues
On Mon, May 24, 2010 at 3:17 PM, John Stacey john.sta...@ies-us.com wrote: Windows XP Pro SP3 MSVC 2005 v 8.0 Microsoft Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1. Net-snmp v 5.5 Active Perl v 5.10.1 OpenSSL 1.0.0 Net-snmp-config.h: #define PACKAGE_VERSION 5.5 ln 19 #define HAVE_WIN32_PLATFORM_SDK 1 ln 28 #define _WIN32_WINNT 0x501 /*_WIN32_WINNT_WINXP*/ ln 37 #define NTDDI_VERSION 0x05010300 /* NTDDI_WINXPSP3 */ ln 38 #define NETSNMP_USE_OPENSSL 1 ln 1368 #define NETSNMP_USE_DLL 1 ln 1594 Microsoft Visual C++ - Workspace - Building the DLL – Compiles and Builds This is as far as I have been able to get attempting a dynamic build using win32sdk.dsw (build.bat fails as well) Error Buffer: [ ... ] Error 39 error LNK2019: unresolved external symbol _init_var_route referenced in function _init_mib_modules netsnmpmibs.lib Error 40 error LNK2019: unresolved external symbol _init_udpTable referenced in function _init_mib_modules netsnmpmibs.lib Error 41 error LNK2019: unresolved external symbol _init_udp referenced in function _init_mib_modules netsnmpmibs.lib Error 42 error LNK2019: unresolved external symbol _init_ip referenced in function _init_mib_modules netsnmpmibs.lib Error 43 error LNK2019: unresolved external symbol _init_icmp referenced in function _init_mib_modules netsnmpmibs.lib Error 44 error LNK2019: unresolved external symbol _init_tcpTable referenced in function _init_mib_modules netsnmpmibs.lib Error 45 error LNK2019: unresolved external symbol _init_tcp referenced in function _init_mib_modules netsnmpmibs.lib Error 46 error LNK2019: unresolved external symbol _init_interfaces referenced in function _init_mib_modules netsnmpmibs.lib Error 47 error LNK2019: unresolved external symbol _init_at referenced in function _init_mib_modulesnetsnmpmibs.lib Error 48 fatal error LNK1120: 9 unresolved externals ../bin/release/snmpd.exe All these compilation errors have been fixed on the 5.5 branch after version 5.5 was released (svn co https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-5-patches ). Bart. -- ___ 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 win32 compile issues
On Wed, May 26, 2010 at 9:31 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: [ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 25 May 2010 16:03, John Stacey john.sta...@ies-us.com wrote: Windows XP Pro SP3 MSVC 2005 v 8.0 Net-snmp v 5.4.3 Build.bat compiles and installs. Registering the net-snmpd service fails looking for msvcr80.dll. After copying the ms dll to usr/bin I get an application failed to initialize error. I'll let Bart or one of the other respond to that. I'm not really an expert on the Windows side - I've just been working with Bart to get the recent releases as solid as possible. The most likely cause is that no manifest has been included in snmpd.exe / snmptrapd.exe. Has manifest generation been enabled in Visual Studio ? A screenshot from MSVC 2005: [image: linker-settings-dialog.PNG] Bart. linker-settings-dialog.PNG-- ___ 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 in windows vista
On Thu, May 27, 2010 at 10:50 AM, Toro torocat...@gmail.com wrote: Myabe I forget something, but, I remember how I installed NET-SNMP agent in Windows XP. Now, I'm trying to install the NET-SNMP agent in Windows Vista, but I'm unable to do it. I only get a bunch of errors, I googled for it, but no luck. So, the question is, Is possible to install NET-SNMP agent on a MS Windows Vista machine?, and, if it's possible, I can get help with my error on this mailing list? The following worked for me: * Run the Net-SNMP 5.4.2.1 installer (see also http://sourceforge.net/projects/net-snmp/files/). * Open the Windows explorer and go to C:\usr. * Right-click on registeragent.bat and select Run as administrator. * Right-click on registertrapd.bat and select Run as administrator. Bart. -- ___ 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 in windows vista
On Thu, May 27, 2010 at 4:32 PM, Toro torocat...@gmail.com wrote: Thanks for the answer, I try it, and the result is: * Original: C:\Users\victornet start net-snmp agent El servicio de Net-SNMP Agent está iniciándose. El servicio de Net-SNMP Agent no ha podido iniciarse. Error de sistema. Error de sistema 1067. El proceso ha terminado de forma inesperada. * --Translated: *C:\Users\victornet start net-snmp agent Starting Net-SNMP Agent service. Could not start Net-SNMP Agent service. System error. System error 1067. Unexpected en of process. * Which output appears or which dialogs pop up if you run the following command in a command window: c:\usr\bin\snmpd.exe -f -Lo ? -- ___ 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 in windows vista
Hello Toro, Please verify whether all Net-SNMP service settings are OK and also check the security settings of snmpd.exe. Has everyone been granted execute access on snmpd.exe instead of only a single user ? Bart. On Thu, May 27, 2010 at 5:34 PM, Toro torocat...@gmail.com wrote: Thanks again, I try that command and the result is: *Microsoft Windows [Versión 6.0.6001] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\victorc:\usr\bin\snmpd.exe -f -Lo _ *-blink And just stop there, nothing more is showed. Then, i open and other CMD windows an try the other command (net start net-snmp agent) but the result was the same. 2010/5/27 Bart Van Assche bvanass...@acm.org On Thu, May 27, 2010 at 4:32 PM, Toro torocat...@gmail.com wrote: Thanks for the answer, I try it, and the result is: * Original: C:\Users\victornet start net-snmp agent El servicio de Net-SNMP Agent está iniciándose. El servicio de Net-SNMP Agent no ha podido iniciarse. Error de sistema. Error de sistema 1067. El proceso ha terminado de forma inesperada. * --Translated: *C:\Users\victornet start net-snmp agent Starting Net-SNMP Agent service. Could not start Net-SNMP Agent service. System error. System error 1067. Unexpected en of process. * Which output appears or which dialogs pop up if you run the following command in a command window: c:\usr\bin\snmpd.exe -f -Lo ? -- ___ 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: stop trapd serivce on windows timeout?
Hello Huy, Please file a bug report or a patch for this issue such that it doesn't get forgotten. Bart. On Mon, May 24, 2010 at 6:31 AM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: On windows XP service pack 3 it does not seem to stop in a timely manner. If I put in the call WSACancelBlockingCall() then it break out fine. I will test it on several version of windows and will broadcast what I learn from it. thanks, Huy -- *From:* Bart Van Assche bvanass...@acm.org *To:* Snmp Nmcsnmp nmc4s...@yahoo.com *Cc:* net-snmp-users@lists.sourceforge.net *Sent:* Sat, May 22, 2010 3:44:07 AM *Subject:* Re: stop trapd serivce on windows timeout? Hello Huy, The Win32 snmptrapd calls closesocket() on the UDP socket(s) owned by snmptrapd to make select() stop. While this seems to work with some Windows versions (e.g. Windows XP), this is undocumented Winsock behavior. So whether or not this works may depend on the Windows version. On which Windows version did you observe this behavior ? Bart. On Fri, May 21, 2010 at 9:54 PM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: Hi Bart, It is net-snmp-5.4.2.1 and the conf file contains just these two lines: authCommunity log, net, execute public snmpTrapdAddr udp:137.69.187.10:666 regards, Huy -- *From:* Bart Van Assche bvanass...@acm.org *To:* Snmp Nmcsnmp nmc4s...@yahoo.com *Cc:* net-snmp-users@lists.sourceforge.net *Sent:* Fri, May 21, 2010 11:53:33 AM *Subject:* Re: stop trapd serivce on windows timeout? On Fri, May 21, 2010 at 7:38 PM, Snmp Nmcsnmp nmc4s...@yahoo.com wrote: Stop net-snmp trapd on windows timeout and it think it hang on the select. Does anyone have run into the same issue? or have a solution to solve it? I haven't seen this so far. With which version did this occur ? And how does your snmptrapd.conf look like ? Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ 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: thread safe question
On Mon, Jun 7, 2010 at 5:45 PM, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time, or do they get processed together. I.e., do I have to have locking around my static variables? In case of doubt you can analyze your application with a thread checker like DRD or Helgrind (Linux, included in Valgrind) or Intel Parallel Studio (Windows). Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ 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: subagent core dump at startup
On Mon, Jun 14, 2010 at 8:53 PM, W Z lh_1...@hotmail.com wrote: We use net-snmp 5.4.2.1. We had a subagent core dump at system start up. This happens rarely, i.e., cannot reproduce. After gdb core file, backtrace shows: == Program terminated with signal 11, Segmentation fault. [New process 3632] #0 0xf757b871 in abort () from /lib/libc.so.6 (gdb) bt #0 0xf757b871 in abort () from /lib/libc.so.6 #1 0xf75b22db in __libc_message () from /lib/libc.so.6 #2 0xf75ba5e5 in _int_free () from /lib/libc.so.6 #3 0xf75baa29 in free () from /lib/libc.so.6 #4 0xf7d58ac7 in snmp_free_pdu (pdu=0x93d3dc8) at snmp_api.c:5088 #5 0xf7d594ba in _sess_process_packet (sessp=0x93600e0, sp=0x93b4d18, isp=0x936a518, transport=0x9372040, opaque=0x93d15b0, olength=110, packetptr=0x93f2370 \001\022, length=72) at snmp_api.c:5354 #6 0xf7d5a7a4 in _sess_read (sessp=0x93600e0, fdset=0xfff1dcec) at snmp_api.c:5707 #7 0xf7d5ac1b in snmp_sess_read (sessp=0x93600e0, fdset=0xfff1dcec) at snmp_api.c:5806 #8 0xf7d596de in snmp_read (fdset=0xfff1dcec) at snmp_api.c:5423 #9 0xf7d2c5aa in snmp_synch_response_cb (ss=0x93b4d18, pdu=0x93d53b8, response=0xfff1de08, pcb=0xf7f4fd90 agentx_check_packet+3) at snmp_client.c:1016 #10 0xf7f50039 in agentx_synch_input (op=154881304, session=0x93d53b8, reqid=-926200, pdu=0x0, magic=0xf7f23192) at mibgroup/agentx/client.c:100 #11 0xf7f506f7 in agentx_register (ss=0x93b4d18, start=0x90ba098, startlen=12, priority=127, range_subid=0, range_ubound=0, timeout=-1, flags=0 '\0', contextName=0x90b9ff0 ) at mibgroup/agentx/client.c:213 #12 0xf7f3d99e in agentx_registration_callback (majorID=1, minorID=1, serverarg=0xfff1ded0, clientarg=0x93b4d18) at mibgroup/agentx/subagent.c:632 #13 0xf7d7e217 in snmp_call_callbacks (major=1, minor=1, caller_arg=0xfff1ded0) at callback.c:341 #14 0xf7f30de0 in register_mib_reattach_node (s=0x90ba038) at agent_registry.c:768 #15 0xf7f30e2e in register_mib_reattach_node (s=0xfff1df58) at agent_registry.c:772 #16 0xf7f3e752 in agentx_reopen_session (clientreg=0, clientarg=0x0) at mibgroup/agentx/subagent.c:869 #17 0xf7f3b8b7 in subagent_startup (majorID=0, minorID=0, serverarg=0x0, clientarg=0x0) at mibgroup/agentx/subagent.c:99 #18 0xf7d7e217 in snmp_call_callbacks (major=0, minor=0, caller_arg=0x0) at callback.c:341 #19 0xf7d7013d in read_configs () at read_config.c:877 #20 0xf7d4a107 in init_snmp (type=0x824f33c subsnmpd) at snmp_api.c:811 #21 0x0805005f in main (argc=7, argv=0xfff22194) at main.c:573 == I suspect there is a NULL pointer passed to free(). However, by looking at function snmp_free_pdu(), it does pointer check before calling free function. So, what is the other cause that free() abort? Also, notice something weird in backtrace #14 and #15, function register_mib_reattach_node() stacked twice? How could this be? We only run snmpd and subagent once. There should be no multi-thread issue, I would assume. What does Valgrind report when you try to reproduce this issue with snmpd running under Valgrind ? Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ 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: v5.5 configure patch sparks another problem
On Fri, Jun 18, 2010 at 6:51 PM, Ron Rader ron.ra...@cipheroptics.comwrote: I encountered a problem building the net-snmp v5.5 source (archive downloaded this morning 18 Jun 2010) on a system that builds correctly using v5.4.1. The archive appears to be the same v5.5.rc3 generated on 23 Sept 2009. Searching the list archives, the same problem appeared back in early April: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg2490 0.htmlhttp://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg2490%0A0.html where Bart Van Assche described it as a bug in the net-snmp configure scripts. Found the corresponding bug tracker entry: http://sourceforge.net/tracker/index.php?func=detailaid=2985915group_i d=12694atid=112694http://sourceforge.net/tracker/index.php?func=detailaid=2985915group_i%0Ad=12694atid=112694 and the associated patch to fix the problem (revision 18721): http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=revisionrevisi on=18721http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=revisionrevisi%0Aon=18721 I downloaded the patch and applied it to my local build directory, but now my net-snmp configure is broken: configure: error: Cannon find file ./snmplib/transports/snmpCallbackDomain.c to support SNMP transport domain Callback. Have I entered a patch-chasing death spiral? Are my only alternatives to attempt the workaround described in the bug, or download the v5.6 release candidate? Two alternatives are: * Run the command below and apply the resulting patch on your local source tree: svn diff -c18721 https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk/net-snmpr18721.patch * Download the source code of the V5.5 branch (svn co https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-5-patches-- I have just backported r18721 to the V5.5 branch). Any feedback is welcome. Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ 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 compilation including perl module
On Fri, Jan 29, 2010 at 1:39 AM, Group mailforgr...@gmail.com wrote: Hi, I 'm getting compilation issues, i couldnot proceed from here. Here are the steps which i ran: $ ./configure --with-perl-modules --with-openssl=/usr $ make [Getting errors related to openssl package] -Added -lcrypto to LDLOADLIBS as...LDLOADLIBS= existingcode -lcrypto in Makefiles present in perl/ASN/Makefile ; OID/Makefile ; SNMP/Makefile ; TrapReceiver/Makefile agent/default_store/Makefile ; agent/Makefile ; default_store/Makefile The above Makefiles are places where its expecting openssl package, so i added in those locations. Ran the command again $ make Now i'm getting the following errors: [ ... ] /home/test/net-snmp-5.5/agent/agent_handler.c:251: undefined reference to `_ne tsnmp_get_bulk_to_next_handler' collect2: ld returned 1 exit status make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.dll] Error 1 make[2]: Leaving directory `/home/test/net-snmp-5.5/perl/TrapReceiver' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/home/test/net-snmp-5.5/perl' make: *** [perlmodules] Error 1 Please help me out on how to resolve this issue. Thanks. (replying to an e-mail of about six months ago) This has been fixed on the trunk. Perl support - both the Perl modules and embedding Perl - works fine in my tests as long as I do not restart snmpd or snmptrapd via SIGHUP. The Net-SNMP trunk source code, which is currently in 5.6 prerelease stage, can be obtained by running the following command: svn co https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk/net-snmp Any feedback is welcome. Bart. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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 Trap Agent start error
On Tue, Jul 13, 2010 at 12:23 PM, Markus Hofer markus_ho...@gmx.at wrote: I got a problem with starting the Net-SNMP Trap Agent under windows xp I use the Net-SNMP version 5.4.2.1 I have the following configurations in C:\usr\etc\snmp\snmptrapd.conf createUser -e 0x81020304 snmpv3_MD5_trap_log_w MD5 helloworld authUser log snmpv3_MD5_trap_log createUser -e 0x81020304 snmpv3_SHA_trap_log_w SHA helloworld authUser log snmpv3_SHA_trap_log after registering snmptrapd as admin with the command snmptrapd -register -Lf C:\testsnmptrapd.log i try to start the NET-SNMP Handler by net start Net-SNMP Trap Handler which terminates with: System error 1067 has occured. The log file states: NET-SNMP version 5.4.2.1 couldn't open udp:162 -- errno 2 (No such file or directory) and netstat -a -f | find 162 it gives me back TCP ipaddress1:1625 ipaddress2 22 ESTABLISHED UPD 0.0.0.0:162 *.* What am I doing wrong? Greetings MAX BTW: The Net-SNMP Agent is started as well The above output means that another process is listening on UDP port 162. That is why the Net-SNMP trap service can't start. Was the Microsoft *SNMP Trap Service* still running ? Note: you can find out the process ID of the process that is listening on port 162 by running the following command: netstat -ano | find :162 Bart. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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