I am trying to run snmp trap receiver program, modifying netsnmp source
code.
But its not going into listen mode.
Can I get any suggestion where can be the error.
Regards
Trupti
On 1/28/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
Send Net-snmp-coders mailing list submissions to
net-snmp-coders@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Net-snmp-coders digest..."
Today's Topics:
1. Re: Visual C++ Express and net-snmp (Alex Burger)
2. Re: Visual C++ Express and net-snmp (Daniel Lacey)
3. Re: ethtool test fails (Thomas Anders)
4. Re: configuring /etc/defualt/snmpd (Andrej Ota)
----------------------------------------------------------------------
Message: 1
Date: Fri, 26 Jan 2007 19:50:41 -0500
From: Alex Burger <[EMAIL PROTECTED]>
Subject: Re: Visual C++ Express and net-snmp
To: Daniel Lacey <[EMAIL PROTECTED]>
Cc: net-snmp-coders@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Daniel Lacey wrote:
> I tried to compile net-snmp as in section "Win32\build.bat script" and
> using the Visual C++ application.
> The BAT method gives me an error caused by:
>
> if (! (-d $ENV{MSVCDir})) {
> print "\nPlease run VCVARS32.BAT first to set up the Visual Studio
> build\n" .
> "environment.\n\n";
> system("pause");
> exit;
> }
Just remove that section of code, or change MSVCDir to VCINSTALLDIR.
It's just a simple check to make sure the user ran vcvars32 or opened a
proper MSVC command prompt. I will fix this for the next release.
> When trying from Visual C++, I get errors about not being able to find
> winsock.h...
> It is in the PSDK under Server 2003 R2...
> Is there something obvious I missed in setting up the PSDK for XP?
> (I did read the docs, and setup VC++ paths to put the SDK before the
> VC++ for exe, includes, etc.)
It's strange that the PSDK is not included by default. I think I had
the same problem with the full MSVC 2005. With MSVC and the downloaded
PSDK, there are build command prompts under Start - Programs - Microsoft
Platform SDK February 2003 that include the PSDK folder. Is there
something similar in C++ Express?
Alex
------------------------------
Message: 2
Date: Fri, 26 Jan 2007 17:53:07 -0800
From: Daniel Lacey <[EMAIL PROTECTED]>
Subject: Re: Visual C++ Express and net-snmp
To: net-snmp-coders@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20070126/a03105cd/attachment.html
------------------------------
Message: 3
Date: Sat, 27 Jan 2007 15:31:25 +0100
From: Thomas Anders <[EMAIL PROTECTED]>
Subject: Re: ethtool test fails
To: net-snmp-coders@lists.sourceforge.net
Cc: Magnus Fromreide <[EMAIL PROTECTED]>, l <[EMAIL PROTECTED]>,
Radek Vok?
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
Thomas Anders wrote:
> Magnus Fromreide wrote:
>> Further checking shows that <linux/types.h> showed up between 1.0.9 and
>> 1.2.13 while <linux/ethtool.h> showed up between 2.2.26 and 2.4.18 so
if
>> ethtool.h exists then types.h also exists.
>> types.h have always declared the __uN versions.
>>
>> Thus the attached patch should work for all versions (Tested on kernel
>> 2.6.18.6, if someone could test it on older versions as well then that
>> would be nice)
>
> Committed to 5.[234].x CVS and CVS MAIN. Thanks for the patch.
Unfortunately this patch seems to break my CVS MAIN build on RH9 (2.4.20):
/usr/include/linux/ethtool.h:23: parse error before "autoneg"
/usr/include/linux/ethtool.h:24: parse error before "maxtxpkt"
/usr/include/linux/ethtool.h:25: parse error before "maxrxpkt"
/usr/include/linux/ethtool.h:26: parse error before "reserved"
/usr/include/linux/ethtool.h:27: parse error before '}' token
/usr/include/linux/ethtool.h:32: parse error before "u32"
/usr/include/linux/ethtool.h:40: parse error before "eedump_len"
/usr/include/linux/ethtool.h:41: parse error before "regdump_len"
/usr/include/linux/ethtool.h:47: parse error before "u32"
/usr/include/linux/ethtool.h:49: parse error before "wolopts"
/usr/include/linux/ethtool.h:50: parse error before "sopass"
/usr/include/linux/ethtool.h:51: parse error before '}' token
/usr/include/linux/ethtool.h:55: parse error before "u32"
/usr/include/linux/ethtool.h:61: parse error before "u32"
/usr/include/linux/ethtool.h:63: parse error before "len"
/usr/include/linux/ethtool.h:64: parse error before "data"
/usr/include/linux/ethtool.h:65: parse error before '}' token
/usr/include/linux/ethtool.h:69: parse error before "u32"
/usr/include/linux/ethtool.h:71: parse error before "offset"
/usr/include/linux/ethtool.h:72: parse error before "len"
/usr/include/linux/ethtool.h:73: parse error before "data"
/usr/include/linux/ethtool.h:74: parse error before '}' token
make[2]: *** [if-mib/data_access/interface_linux.lo] Error 1
I haven't done any investigation yet.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
------------------------------
Message: 4
Date: Sat, 27 Jan 2007 21:58:15 +0100
From: Andrej Ota <[EMAIL PROTECTED]>
Subject: Re: configuring /etc/defualt/snmpd
To: Net-snmp-coders@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> I have tried with the many Log Options but, no use of it , still
> it is popping up the message in the log file.
>
> I have chaged the log options in the /etc/default/snmpd using
> below mentioned Log options.
>
> # snmpd options (use syslog, close stdin/out/err).
> SNMPDOPTS='-Ls 2 -Lf /dev/null -p /var/run/snmpd.pid'
Documentation is little unclear on this point, but proper incantation of
switches is "-LS 4 d".
-LS for syslog with priority
4 is for warning or above
d is for daemon facility
Sincerely,
Andrej Ota.
------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
End of Net-snmp-coders Digest, Vol 8, Issue 54
**********************************************
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders