RE: Installing Perl SNMP support on Windows

Vinod Nanjaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1B3CA99331DE5E47BB89385002F8D1EF115DB67974@MTW02MSG02.mindtree.com>
Hi,
I was not able to proceed further with building the perl snmp modules. I tried installing it on another system also, but got stuck at the same point.
One deviation I did from the README file is to install regex from a different source. The link provided to gnu_regex.exe downloads a corrupt file.
I hope this has nothing to do with the perl snmp build failure.

I tried an alternate way -
used source code of my subagent generated on linux and compiled it as windows service. But I am not able to run it.
Even on registering the service with the command "my_subagent.exe -register", I don't see it in the list of services.

Another problem is that without completing the perl snmp installation, snmpconf is not available; without which snmpd throws up some warnings as shown below.

 > snmpd
                No log handling enabled - turning on stderr logging
                iquerySecName has not been configured - internal queries will fail
                Warning: no access control information configured.
                  (Config search path: c:/usr/etc/snmp;c:/usr/share/snmp;c:/usr/lib)
                  It's unlikely this agent can serve any useful purpose in this state.
                  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for th
                is agent.
                NET-SNMP version 5.4.3


I could not find any information on how to go about running subagents on windows or how to get over the perl snmp build problem.
Appreciate any pointers.

Thank you,
Vinod

From: [email protected] [mailto:[email protected]] On Behalf Of Bart Van Assche
Sent: Monday, September 06, 2010 8:47 PM
To: Vinod Nanjaiah
Cc: [email protected]
Subject: Re: Installing Perl SNMP support on Windows

On Mon, Sep 6, 2010 at 1:04 PM, Vinod Nanjaiah <[email protected]<mailto:[email protected]>> wrote:

On Mon, Sep 6, 2010 at 12:55 PM, Vinod Nanjaiah <[email protected]<mailto:[email protected]>> wrote:
Just to add to this, I am running net-snmp-5.4.3 as suggested by Bart Van Assche
[ ... ]

As far as I know version 5.4.3 builds fine, so there might be a problem with the setup of the PC you are using for building Net-SNMP.

Bart.


Thanks Bart.

I will probably try installing the same on another PC.
BTW, which library has the definitions for
_RegisterService, _UnregisterService, _RunAsService, etc.


That's an easy question:

$ find-svn | xargs grep -w RegisterService
apps/snmptrapd.c:        exit (RegisterService(lpszServiceName,
snmplib/winservice.c:RegisterService (LPCTSTR lpszServiceName, LPCTSTR lpszServiceDisplayName,
include/net-snmp/library/winservice.h:  int RegisterService (LPCTSTR lpszServiceName,
agent/snmpd.c:        exit (RegisterService(lpszServiceName,
$ find-svn win32 | xargs grep -i winservice.c
win32/snmptrapd/Makefile.in:SOURCE=..\..\snmplib\winservice.c
win32/snmptrapd/snmptrapd.dsp:SOURCE=..\..\snmplib\winservice.c
win32/snmpd/Makefile.in:SOURCE=..\..\snmplib\winservice.c
win32/snmpd/snmpd.dsp:SOURCE=..\..\snmplib\winservice.c
win32/libnetsnmptrapd/Makefile.in:SOURCE=..\..\snmplib\winservice.c

So the answer is: at least the function RegisterService() is defined in the source file snmplib/winservice.c, and this source file is included in libnetsnmptrapd.

Bart.

________________________________
http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.