Re: pass_persist types

2005-02-04 Thread Magnus Fromreide
On Fri, Feb 04, 2005 at 11:26:37AM -0500, Michael P. Soulier wrote: > Hello, > > Looking at the snmpd.conf manpage, I see that the types that can be returned > from a script called via pass or pass_persist are as follows: > > "The second line should be the TYPE of value returned, where TYPE is on

Re: pass_persist types

2005-02-08 Thread Magnus Fromreide
On Tue, Feb 08, 2005 at 02:18:42PM +, Dave Shield wrote: > On Fri, 2005-02-04 at 17:37, Magnus Fromreide wrote: > > On Fri, Feb 04, 2005 at 11:26:37AM -0500, Michael P. Soulier wrote: > > > I see that the types that can be returned > > > from

Re: net-snmp-5.2.1 + cygwin: "winsock.h: present but cannot be compiled"

2005-02-09 Thread Magnus Fromreide
On Wed, Feb 09, 2005 at 06:04:53AM -0500, Andy Smith wrote: > Richard Soderberg wrote: > >checking winsock.h usability... no > >checking winsock.h presence... yes > >configure: WARNING: winsock.h: present but cannot be compiled > >configure: WARNING: winsock.h: check for missing prerequisite he

instance_handler

2005-03-06 Thread Magnus Fromreide
Hello! Assume that i have a handler that returns NOSUCHINSTANCE when it is sent a GET request. Further assume that I put that handler under the control of an instance helper. Now, if I comes to that address with a GETNEXT request the returned OID is the one that my object is registerd at and the

Re: 5.2.1 make test fails

2005-04-24 Thread Magnus Fromreide
On Fri, Apr 22, 2005 at 12:05:32PM -0400, Robert Story wrote: > On Thu, 21 Apr 2005 14:12:42 +0100 Dave wrote: > DS> > Neither, really. These particular tests are trying to access every > object > DS> > in the RFC-1213 MIB, using v1, v2c and v3. The two 'failure' cases are > DS> > two tables that

Re: snmp.conf persistentDir not working on Linux and Windows

2005-05-05 Thread Magnus Fromreide
On Thu, May 05, 2005 at 08:40:17AM -0700, Wes Hardaker wrote: > > On Wed, 04 May 2005 18:38:20 -0400, Alex Burger <[EMAIL PROTECTED]> > > said: > > Alex> c:\Program Files\Net-SNMP\etc\snmp;c:\Program > Files\Net-SNMP\snmp\persist > Alex> The testing I did today was with 5.2.1. A new env

deprecated functions

2005-05-11 Thread Magnus Fromreide
Hello. In include/net-snmp/agent/snmp_agent.h netsnmp_set_request_error and netsnmp_set_mode_request_error both have the comment 'deprecated, use netsnmp_request_set_error instead'. In agent/snmp_agent.c there is a similar comment that points netsnmp_set_all_requests_error to netsnmp_request_set_e

Re: deprecated functions

2005-05-28 Thread Magnus Fromreide
Hello. First off I apologize for not having been quicker in my response, I have been out of touch with my mailbox for a while. On Fri, May 13, 2005 at 08:55:01AM -0400, Robert Story wrote: > On Wed, 11 May 2005 23:42:33 +0200 Magnus wrote: > MF> In include/net-snmp/agent/snmp_agent.h netsnmp_set_

Re: performance issue on simultaneously walk

2005-06-01 Thread Magnus Fromreide
On Wed, Jun 01, 2005 at 05:35:59PM -0700, Fong Tsui wrote: > > I have a subagent behind a master agent. When I do a single walk a MIB > tree, it is very fast. However, when I do simultaneously walk on the > same MIB tree, both walk take unbelievable long time. One report says > 5min vs 45 sec (two

Re: compiling module; conflicting function names

2005-06-13 Thread Magnus Fromreide
On Mon, Jun 13, 2005 at 03:54:14PM +0100, Dave Shield wrote: > On Tue, 2005-05-31 at 18:31, Matthew Boehm wrote: > > > Renaming asterisk's function is out of the question, as is renaming > > snmpd's. How does one overcome this? > > I've just committed a patch to the main development tree, > that

Re: launch external w/o close(1023..3)?

2005-06-13 Thread Magnus Fromreide
On Mon, Jun 13, 2005 at 03:55:31PM -0400, Robert Story wrote: > On Mon, 13 Jun 2005 13:49:49 +0200 Thomas wrote: > TA> while doing performance tuning for my net-snmp-based applications I > TA> noticed that launching external programs (exec/extend/traphandle) > TA> currently (5.3.dev) involves the

Re: problems with compiling

2005-06-13 Thread Magnus Fromreide
Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders -- Magnus Fromreide+46-13 17 68 48 Mårdtorpsgatan 21, 2tr [EMAIL PROTECTED] SE-584 34 LINKÖP

Re: problems with compiling

2005-06-13 Thread Magnus Fromreide
fix the quotes > in include/net-snmp/net-snmp-config.h after running configure. For example, > change > > #define CONFIGURE_OPTIONS ""'--disable-shared'"" > > to > > #define CONFIGURE_OPTIONS "'--disable-shared'" > ~ &

Re: compiling module; conflicting function names

2005-06-14 Thread Magnus Fromreide
On Tue, Jun 14, 2005 at 09:38:43AM +0100, Dave Shield wrote: > On Mon, 2005-06-13 at 21:05, Magnus Fromreide wrote: > > On Mon, Jun 13, 2005 at 03:54:14PM +0100, Dave Shield wrote: > > > I've just committed a patch to the main development tree, > > > that renames

Re: is it possible to integrate an Net SNMP sub agent(.dll) with Microsoft SNMP service ?

2005-06-15 Thread Magnus Fromreide
On Wed, Jun 15, 2005 at 10:01:09AM +0100, Dave Shield wrote: > > It would doubtless be useful if someone could develop an > MS-SNMP interface for the Net-SNMP agent - either for plugging > Net-SNMP-based modules into the Microsoft agent, or MS-based > modules into the Net-SNMP agent. > But until

Re: link error for g++ net-snmp

2005-07-11 Thread Magnus Fromreide
> `var_ipAddrEntry(variable*, unsigned long*, unsigned int*, int, unsigned > int*, int (**)(int, unsigned char*, unsigned char, unsigned int, unsigned > char*, unsigned long*, unsigned int))' > ./.libs/libnetsnmpmibs.so: undefined reference to > `netsnmp_access_interface_ioct

Re: link error for g++ net-snmp

2005-07-18 Thread Magnus Fromreide
nt))' > ./.libs/libnetsnmpmibs.so: undefined reference to > `netsnmp_access_interface_ioctl_flags_get' > collect2: ld returned 1 exit status > make: *** [snmpd] Error 1 > > > thanks > > > > > > > > On 7/12/05, Magnus Fromreide <[EMAIL PROTECTED]&

Re: snmpset and encryption problems

2005-08-15 Thread Magnus Fromreide
On Mon, Aug 15, 2005 at 10:14:14AM +0100, Dave Shield wrote: > On Mon, 2005-08-15 at 11:03 +0200, Yegor Yefremov wrote: > > Snmpv3_local_snmpEngineTime() gives a difference between start time and > > now in seconds. It means when you change the year you have too big > > difference. But actually one

On the opening of sockets

2005-08-24 Thread Magnus Fromreide
Hello! If I put the line agentxsocket TCP:localhost in my snmpd.conf, then it sets up a socket on 127.0.0.1:161 and listens, but I would have expected it to listen on 127.0.0.1:705. If we look at the code then in agentx/master.c there is the line sess.local_port = AGENTX_PORT; but if I look a

Re: On the opening of sockets

2005-08-26 Thread Magnus Fromreide
On Thu, Aug 25, 2005 at 09:27:19AM +0100, Dave Shield wrote: > On Wed, 2005-08-24 at 22:52 +0200, Magnus Fromreide wrote: > > If we look at the code then in agentx/master.c there is the line > > > > sess.local_port = AGENTX_PORT; > > > > but if I look at nets

Re: mem leak in net-snmp libs

2005-09-02 Thread Magnus Fromreide
On Thu, Sep 01, 2005 at 06:33:24PM -0400, Robert Story wrote: > > The app is an AgentX subagent, and isn't actually sending traps, but is > requesting that the master agent send them. > Actually I think that a little tool that connects to the agent through some extension api and tells it to send

Re: On the opening of sockets

2005-09-05 Thread Magnus Fromreide
On Mon, Sep 05, 2005 at 11:50:41AM +0100, Dave Shield wrote: > On Tue, 2005-08-30 at 12:14 -0400, Robert Story wrote: > > On Thu, 25 Aug 2005 09:27:19 +0100 Dave wrote: > > > So, what if you get > > > > trapsink tcp:localhost:4321 public 1234 > > > We'd clearly need to define which takes pr

Re: On the opening of sockets

2005-09-07 Thread Magnus Fromreide
On Wed, Sep 07, 2005 at 04:06:13PM +0100, Dave Shield wrote: > On Tue, 2005-09-06 at 00:25 +0200, Magnus Fromreide wrote: > > > I added patch #1282566 wich I think implements this. > > That's certainly a good start, but I don't think it's quite right. > A co

Re: On the opening of sockets

2005-09-08 Thread Magnus Fromreide
On Thu, Sep 08, 2005 at 02:52:35PM +0100, Dave Shield wrote: > On Wed, 2005-09-07 at 18:13 +0200, Magnus Fromreide wrote: > > On Wed, Sep 07, 2005 at 04:06:13PM +0100, Dave Shield wrote: > > > > What I'd envisage would be a call such as > &

Re: On the opening of sockets

2005-09-08 Thread Magnus Fromreide
On Thu, Sep 08, 2005 at 02:27:13PM -0400, Robert Story wrote: > On Wed, 07 Sep 2005 16:06:13 +0100 Dave wrote: > DS> netsnmp_transport * > DS> netsnmp_transport_open( char *string, int def_port ) > > I would have a third param, def_transport, which would be used if string > doesn't contain a t

Re: On the opening of sockets

2005-09-08 Thread Magnus Fromreide
On Thu, Sep 08, 2005 at 09:00:56PM +0200, Magnus Fromreide wrote: > On Thu, Sep 08, 2005 at 02:27:13PM -0400, Robert Story wrote: > > On Wed, 07 Sep 2005 16:06:13 +0100 Dave wrote: > > DS> netsnmp_transport * > > DS> netsnmp_transport_open( char *string

Re: On the opening of sockets

2005-09-09 Thread Magnus Fromreide
On Fri, Sep 09, 2005 at 09:39:20AM +0100, Dave Shield wrote: > On Thu, 2005-09-08 at 19:12 +0200, Magnus Fromreide wrote: > > On Thu, Sep 08, 2005 at 02:52:35PM +0100, Dave Shield wrote: > > > > In fact, it might be sensible for the OSI and Appletalk > > > transport-

Who owns the parameter?

2005-09-10 Thread Magnus Fromreide
Hello! I would like to know who it is that actually owns objects that are passed around. Specific examples: snmp_sess_add_ex(netsnmp_session* sess, netsnmp_transport* trans, ...) Looking on this one you find that it never frees transport, except when the session version is SNMP_VERSION_3,

Re: How can I compile a cpp file in net-snmp?

2005-09-14 Thread Magnus Fromreide
On Wed, Sep 14, 2005 at 03:01:41PM +0800, ?? wrote: > When I add a C file in the netsnmpmibs project, it works great.But > when I change the C file into Cpp file without changing the file > content,it gives me an error. > > When I build snmpd,it can't find the mib init function which works > w

Re: Who owns the parameter?

2005-09-14 Thread Magnus Fromreide
On Tue, Sep 13, 2005 at 09:34:03AM +0100, Dave Shield wrote: > > I'd suggest that, as a basic rule of thumb, objects should > be owned by the code module that created them. > > If memory is allocated by a library routine as part of creating > or processing something, then that section of the libra

Re: solaris8 core install checkpoint NG

2005-09-16 Thread Magnus Fromreide
On Fri, Sep 16, 2005 at 11:35:14AM +0100, Dave Shield wrote: > On Fri, 2005-09-16 at 12:21 +0200, Thomas Anders wrote: > > P.Taylor wrote: > > > configure: WARNING: sys/socketvar.h: present but cannot be compiled > > > > This is a known issue. The warnings can be safely ignored. > > Does this sti

Re: solaris8 core install checkpoint NG

2005-09-18 Thread Magnus Fromreide
On Fri, Sep 16, 2005 at 04:06:06PM +0100, Dave Shield wrote: > > > As an example the attached patch to configure.in fixes all the warnings on > > AIX 5.2 but I do not want it applied yet as it messes up configure.in way to > > much. > > H > It's not pretty, I grant you - but it's no worse

Re: informsink trapsink and trap2sink support for IPv6.

2005-09-18 Thread Magnus Fromreide
On Fri, Sep 16, 2005 at 10:51:02AM -0400, sasson, shuki wrote: > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of sasson, > shuki > Sent: Friday, September 16, 2005 9:25 AM > To: Thomas Anders; net-snmp-coders@lists.sourceforge.net > Subject: RE: informs

Re: informsink trapsink and trap2sink support for IPv6.

2005-09-18 Thread Magnus Fromreide
e > fixed. CVS revision 5.23 of agent/agent_trap.c as per 30-Aug-05, it will appear in the 5.3 release. /MF > Thanks for the help! > > Shuki > > -Original Message----- > From: Magnus Fromreide [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 18, 2005 5:19 PM

Re: informsink trapsink and trap2sink support for IPv6.

2005-09-19 Thread Magnus Fromreide
On Mon, Sep 19, 2005 at 09:24:50AM +0100, Dave Shield wrote: > On Mon, 2005-09-19 at 07:41 +0200, Magnus Fromreide wrote: > > On Sun, Sep 18, 2005 at 07:14:33PM -0400, sasson, shuki wrote: > > > I actually done some digging into 5.2.1 code and I saw that everything is > >

Re: informsink trapsink and trap2sink support for IPv6.

2005-09-20 Thread Magnus Fromreide
On Tue, Sep 20, 2005 at 11:06:34AM -0400, sasson, shuki wrote: > Hi Magnus, I have retrieved the 5.24 version of agent_trap.c and observed > the fix: > > The code should automatically add udp6: prefix and :port number suffix. Here I actually agree that the code should add a reasonable port prefix

Re: Report this to net-snmp-coders@lists.sourceforge.net

2005-09-20 Thread Magnus Fromreide
gt; -------- ## > checking for netinet/udp_var.h... yes > checking netinet/icmp_var.h usability... no > checking netinet/icmp_var.h presence... yes > configure: WARNING: netinet/icmp_var.h: present but cannot be compiled > configure: WA

Re: informsink trapsink and trap2sink support for IPv6.

2005-09-21 Thread Magnus Fromreide
On Wed, Sep 21, 2005 at 09:20:58AM +0100, Dave Shield wrote: > On Tue, 2005-09-20 at 20:52 +0200, Magnus Fromreide wrote: > > On Tue, Sep 20, 2005 at 11:06:34AM -0400, sasson, shuki wrote: > > > The code should automatically add udp6: prefix and :port number suffix. > > &

Re: Report this to net-snmp-coders@lists.sourceforge.net

2005-09-22 Thread Magnus Fromreide
that I fail to build on that FreeBSD-3.4 machine but the configure step works OK. Also, please keep replies on the list so that others can benefit from them as well. /MF > -Original Message- > From: Magnus Fromreide > Sent: 20 September 2005 04:32 PM > To: Timothy S. Bowers >

NETSNMP_CALLBACK_OP_CONNECT

2005-09-22 Thread Magnus Fromreide
Hello! I wa woudering what the purpose of NETSNMP_CALLBACK_OP_CONNECT is. At a guess it should be issued when a new connection is established with a transports but I do not know for sure, could someone please explain? /MF --- SF.Net email is

Re: openbsd netinet/tcp_var.h autoconf macro fails in configure

2005-09-23 Thread Magnus Fromreide
On Fri, Sep 23, 2005 at 03:32:46PM -0400, Brian A. Seklecki wrote: > > OpenBSD barricade 3.7 BARRICADE_POWEREDGE#0 i386 > > Net-SNMP sources with -rHEAD and -rV5-2-patches (5.3.dev) and (5.2.2.pre1) > as of a few minutes ago. > > All: > > NetBSD -current w/ 5.2.2.pre1:pass > NetBSD -cu

Re: openbsd netinet/tcp_var.h autoconf macro fails in configure

2005-09-24 Thread Magnus Fromreide
On Sat, Sep 24, 2005 at 09:53:47PM -0400, Brian A. Seklecki wrote: > On Fri, 23 Sep 2005, Magnus Fromreide wrote: > > > > >2) Add the following: > > > >#ifdef HAVE_SYS_TIMEOUT_H > >#include > >#endif > > > If you commit the fix, I will contin

Re: noSuchName

2005-09-27 Thread Magnus Fromreide
On Mon, Sep 26, 2005 at 12:02:54PM -0700, Fong Tsui wrote: > Here is what I found, > > msgMaxSize is set different between udp and tcp. Is it supposed to be > the same? No. It's not supposed to be the same. udp really means ip, using the udp packet protocol while tcp, in the same sense, means i

Re: NETSNMP_CALLBACK_OP_CONNECT

2005-09-27 Thread Magnus Fromreide
On Mon, Sep 26, 2005 at 02:55:26PM -0700, Wes Hardaker wrote: > >>>>> On Fri, 23 Sep 2005 01:16:45 +0200, Magnus Fromreide <[EMAIL > >>>>> PROTECTED]> said: > > Magnus> I wa woudering what the purpose of NETSNMP_CALLBACK_OP_CONNECT > Magnus&g

Re: noSuchName

2005-09-27 Thread Magnus Fromreide
tream transports but that feels somewhat academic at this point. /MF > On Tue, 27 Sep 2005, Magnus Fromreide wrote: > > On Mon, Sep 26, 2005 at 12:02:54PM -0700, Fong Tsui wrote: > > > Here is what I found, > > > > > > msgMaxSize is set different between udp

Re: OIDs instead of names in snmpd.conf

2005-09-27 Thread Magnus Fromreide
On Tue, Sep 27, 2005 at 12:01:36PM -0700, Wes Hardaker wrote: > > On Tue, 27 Sep 2005 14:22:12 -0400, "Aggarwal , Ajay" <[EMAIL > > PROTECTED]> said: > > Ajay> Yes that works. But I wanted to use MIB names instead... > > Does > > rouser foo noauth .iso.dod > > work? > If it does I'd

Re: NETSNMP_CALLBACK_OP_CONNECT

2005-09-27 Thread Magnus Fromreide
On Tue, Sep 27, 2005 at 08:13:02AM -0700, Wes Hardaker wrote: > >>>>> On Tue, 27 Sep 2005 14:27:01 +0200, Magnus Fromreide <[EMAIL > >>>>> PROTECTED]> said: > > Magnus> This patche calls the callback function in the created object > Magn

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-09-29 Thread Magnus Fromreide
On Thu, Sep 29, 2005 at 10:47:02AM -0700, Juan Betty-MGIA2720 wrote: > Wes, > I modified and tested this patch a bit. This should be a better fix, what you > think ? I still have a bad feeling about this, but I can't put the finger on it. Basically timeouts are used for two purposes: a) To make

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-09-29 Thread Magnus Fromreide
NIC, ...) but that is not a required interface. Also note that this could be used to detect forward warps. /MF > -Original Message- > From: Magnus Fromreide [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 29, 2005 11:48 AM > To: Juan Betty-MGIA2720 > Cc: net-snmp

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-09-30 Thread Magnus Fromreide
On Fri, Sep 30, 2005 at 10:41:13AM -0700, Juan Betty-MGIA2720 wrote: > Oops, must be the multitasking problem. This should work - > > --- snmp_alarm.c.old2005-09-28 11:03:28.0 -0700 > +++ snmp_alarm.c2005-09-30 09:20:30.0 -0700 > @@ -223,6 +223,7 @@ > return NULL;

Re: On the opening of sockets

2005-10-02 Thread Magnus Fromreide
On Thu, Sep 15, 2005 at 01:24:16PM -0700, Wes Hardaker wrote: > > On Wed, 14 Sep 2005 12:11:41 -0400, Robert Story <[EMAIL PROTECTED]> > > said: > > Robert> no more battles over it, especially since I'm not offering to > Robert> write the code. ;-) > > He who writes the code always wins

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-02 Thread Magnus Fromreide
On Fri, Sep 30, 2005 at 04:24:08PM -0400, Robert Story wrote: > On Fri, 30 Sep 2005 08:55:44 +0200 Magnus wrote: > MF> 2) It handles only one outstanding timeout, if there are two in the queue > MF> that should happen in the next minute and you set back the clock an hour > MF> your patch will run t

Re: configure vs. autoconf and autoheader

2005-10-05 Thread Magnus Fromreide
On Wed, Oct 05, 2005 at 11:30:07AM -0600, Bruce Shaw wrote: > This happens on all versions of net-snmp and all versions of Solaris. > > (from config.log) > > configure:9601: checking for sed > configure:9627: result: /usr/xpg4/bin/sed > configure:9639: checking for autoconf > configure:9655: foun

Re: configure vs. autoconf and autoheader

2005-10-05 Thread Magnus Fromreide
On Wed, Oct 05, 2005 at 11:54:32AM -0600, Bruce Shaw wrote: > > BS> Test -n is string comparison. To check for executables, it needs to be > BS> "test -x". > BS> > BS> I tried this in a short script. Using "-n", no matter what I called > BS> "autoconf" eg. "autoqosrei8", it "found" it. When I

Re: Patch for delaying of tasks attached to snmp_alarm_register

2005-10-07 Thread Magnus Fromreide
On Fri, Oct 07, 2005 at 07:07:52PM -0400, Robert Story wrote: > On Sat, 1 Oct 2005 10:29:08 +0200 Magnus wrote: > MF> > MF> Under your scheme the adjustment to be applied to each alarm is (TC-Ta) > MF> but the adjustment should be (TB-Tb). > > No, my adjustment would be (TC + (Ts - Ta), where Ts

Re: On the opening of sockets

2005-10-09 Thread Magnus Fromreide
On Wed, Oct 05, 2005 at 05:08:01PM -0400, Robert Story wrote: > On Sun, 2 Oct 2005 15:23:40 +0200 Magnus wrote: > MF> I have uploaded a new proposal in patch 1282566 and hope I can get some > MF> feedback on it. > MF> > MF> This is the chance to argue some more about the work. > > Ok, I'll bite.

Re: CVS MAIN: double free (ifXTable?)

2005-10-10 Thread Magnus Fromreide
On Sun, Oct 09, 2005 at 10:54:08PM +0200, Thomas Anders wrote: > -Coders, > > CVS MAIN currently produces a > > *** glibc detected *** double free or corruption (out): 0x40825838 *** > > for me when shutting down the agent (Linux 2.6, x86, non-root). AFAICS > this only happens if I have the (au

Re: rfc: snmptrapd dependencies on agent libs

2005-10-19 Thread Magnus Fromreide
On Wed, Oct 19, 2005 at 04:08:41PM +0200, Thomas Anders wrote: > -Coders, > > snmptrapd, although living in apps/, has a significant number of > dependencies on the agent libraries. While the depencies on MIB modules > (e.g. snmpv3/usmUser and snmpv3/snmpEngine in 5.2+) can be solved by > suita

Re: rfc: snmptrapd dependencies on agent libs

2005-10-19 Thread Magnus Fromreide
On Wed, Oct 19, 2005 at 11:26:45AM -0700, Wes Hardaker wrote: > >>>>> On Wed, 19 Oct 2005 20:08:48 +0200, Magnus Fromreide <[EMAIL > >>>>> PROTECTED]> said: > > Magnus> I do not think that --disable-agent should disable the > Magnus> su

Re: On the opening of sockets

2005-10-19 Thread Magnus Fromreide
On Tue, Oct 11, 2005 at 11:41:29AM -0400, Robert Story wrote: > On Sun, 9 Oct 2005 13:12:24 +0200 Magnus wrote: > MF> I can of course add another member, f_create_from_tstring_new or some > such, > MF> last in the struct and call that one if and only if the old one is NULL. > MF> With this change

Re: support of smux peer in NET-SNMP version 5.0.9 on solaris 5.10

2005-10-19 Thread Magnus Fromreide
On Wed, Oct 19, 2005 at 08:38:07PM -0700, mahua dutta wrote: > Hi , > I like to enable SMUX for NET-SNMP version 5.0.9 on > solaris 5.10. I have added > smuxpeer 1.3.6.1.4.100 passwrd in > /etc/sma/snmp/snmpd.conf file. > > But while running the snmpd it gives the following > warning. > /etc/sma/s

Re: support of smux peer in NET-SNMP version 5.0.9 on solaris 5.10

2005-10-20 Thread Magnus Fromreide
On Thu, Oct 20, 2005 at 03:12:34AM -0700, mahua dutta wrote: > Hi Dave, > As it is installed as a package with the OS > installation. It is difficult to disturb the same . > is there any other way ? No. As the agent your OS provides is built without SMUX support you have to build an agent with smu

Re: rfc: "deprecated" warnings in 5.3?

2005-10-24 Thread Magnus Fromreide
On Mon, Oct 24, 2005 at 10:15:50AM +0100, Dave Shield wrote: > On Mon, 2005-10-24 at 11:04 +0200, Thomas Anders wrote: > > what do people think about adding "deprecated" warnings (documentation > > and runtime) to directives like "exec" (what else?) in 5.3? Or is 5.3 > > considered too early for

Re: GET_BULK questions

2005-11-04 Thread Magnus Fromreide
On Fri, Nov 04, 2005 at 02:31:51PM -0500, Haizhu Liu wrote: > My questions on retrieving table information using GET_BULK are: > > 1. If the max_repetitions is said to 1000, I should only see a return of > 1000 rows, but it seems that I do see more rows. > 2. If the table is huge, passed the limi

Re: GET_BULK questions

2005-11-04 Thread Magnus Fromreide
starts getting column2 answers, or otherwise ask before you send the request to get an indication of how many lines there are in the table. > > >From: Magnus Fromreide <[EMAIL PROTECTED]> > >To: Haizhu Liu <[EMAIL PROTECTED]> > >CC: net-snmp-coders@lists.sourceforge.net

snmpnetstat/main.c:optProc

2005-11-05 Thread Magnus Fromreide
Hello. It seems that the new optProc function inadvertedly got the wrong signature, at least on mainline. Could you please fix that? Current state: static void optProc( int argc, char *const *argv[], int opt ) Should probably be: static void optProc( int argc, char *const *argv, int opt ) /MF

running

2005-11-13 Thread Magnus Fromreide
Hello! Using CVS HEAD I get a linker error, lib/libnetsnmpagent.a(snmp_agent.o): In function `handle_getnext_loop': agent/snmp_agent.c:2832: undefined reference to `running' when I try to net-snmp-config --compile-subagent scalar_int.c where scalar_int.c is in agent/mibgroup/examples. I think

Re: running

2005-11-13 Thread Magnus Fromreide
On Sun, Nov 13, 2005 at 08:16:58PM -0500, Robert Story wrote: > On Sun, 13 Nov 2005 23:12:47 +0100 Magnus wrote: > MF> lib/libnetsnmpagent.a(snmp_agent.o): In function `handle_getnext_loop': > MF> agent/snmp_agent.c:2832: undefined reference to `running' > MF> > MF> when I try to > MF> > MF> net-

New linux network interface code

2005-11-19 Thread Magnus Fromreide
Hello. Using a linux-2.6.13.4 kernel I noticed that the first time after boot I run the test suite a deprecation warning came up from the kernel: process 'lt-snmpd' is using deprecated sysctl (syscall) net.ipv6.neigh.lo.retrans_time; Use net.ipv6.neigh.lo.retrans_time_ms instead. When checking

agent_module_shutdown.h

2005-11-20 Thread Magnus Fromreide
Hi! It seems to be that code in agent_module_shutdown.h is dead, shouldn't there be something like: #ifdef USING_AGENTX_SUBAGENT_MODULE if (netsnmp_ds_get_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE) != SUB_AGENT) #endif { #include "agent_module_

Re: New linux network interface code

2005-11-20 Thread Magnus Fromreide
On Sun, Nov 20, 2005 at 10:31:49AM -0500, Robert Story wrote: > On Sat, 19 Nov 2005 09:41:49 +0100 Magnus wrote: > MF> Using a linux-2.6.13.4 kernel I noticed that the first time after boot I > MF> run the test suite a deprecation warning came up from the kernel: > MF> > MF> process 'lt-snmpd' is

Re: agent_module_shutdown.h

2005-11-20 Thread Magnus Fromreide
On Sun, Nov 20, 2005 at 10:44:13AM -0500, Robert Story wrote: > On Sun, 20 Nov 2005 11:41:26 +0100 Magnus wrote: > MF> It seems to be that code in agent_module_shutdown.h is dead, > > What do you mean by dead? No other file includes that file. > MF> #ifdef USING_AGENTX_SUBAGENT_MODULE > MF>i

Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked

2005-11-29 Thread Magnus Fromreide
On Tue, Nov 29, 2005 at 07:49:09PM +0100, Thomas Anders wrote: > > Wes Hardaker wrote: > > ... He was an sh fanatic, can you tell?). > > I fully understand. However, as the test suite grows (which it should) > we need to find the right balance between optimizing for speed vs. > independence. The

Re: make test improvements (was: Re: 5.3.pre4 HP-UX 10.20: non-root agent hangs when walked)

2005-11-29 Thread Magnus Fromreide
On Tue, Nov 29, 2005 at 08:26:46PM +0100, Thomas Anders wrote: > Magnus Fromreide wrote: > >One thing I have been thinking about is how to add compiled test programs > >to > >the test suite, reasons for doing this would be for example to throw > >faults on > >th

Re: Maximum size of GETBULK !

2005-12-15 Thread Magnus Fromreide
On Thu, Dec 15, 2005 at 10:38:05AM -0500, Robert Story wrote: > On Wed, 14 Dec 2005 04:29:54 -0600 Rajnish wrote: > DR> 1. What is the maximum size of PDU in "snmpbulkwalk " response (In terms > DR> of bytes)? > DR> 2. What is the maximum size of any PDU message in "snmpget" response(in > DR> terms

The net-snmp FAQ

2006-01-11 Thread Magnus Fromreide
Hello. It seems as if the FAQ file got a little mangled due to an unresolved conflict the last time it was committed onto HEAD, maybe that could be fixed? /MF --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for

Delegated handlers

2006-01-18 Thread Magnus Fromreide
Hello! It seems that delegated handlers that return ENDOFMIBVIEW as response to a GETNEXT request won't trigger any further advancement in the registry so they might end up returning a false ENDOFMIBVIEW (or, in some cases, an NOSUCHOBJECT or NOSUCHINSTANCE) Is this all intentional? What would be

Re: Delegated handlers

2006-01-18 Thread Magnus Fromreide
On Wed, Jan 18, 2006 at 02:38:11PM -0500, Robert Story wrote: > On Wed, 18 Jan 2006 20:21:29 +0100 Magnus wrote: > MF> It seems that delegated handlers that return ENDOFMIBVIEW as response to > MF> a GETNEXT request won't trigger any further advancement in the registry so > MF> they might end up re

Buglet in configure.in

2006-01-23 Thread Magnus Fromreide
Hello. In configure.in it says: AC_ARG_ENABLE(mini_agent, [ --enable-mini-agent Build a minimal agent.]) if test "x$enable_mini_agent" == "xyes"; then mini_agent="yes" else mini_agent="no" fi but == is not a valid operation for test(1), it should be =, could someone please c

Building head

2006-01-26 Thread Magnus Fromreide
Hello. Recently I get the following error when I try to build CVS HEAD using a default configure: ../../../net-snmp/agent/mibgroup/if-mib/ifTable/ifTable_interface.c: In function '_mfd_ifTable_undo_setup_allocate': ../../../net-snmp/agent/mibgroup/if-mib/ifTable/ifTable_interface.c:1410: error:

Re: Building head

2006-01-27 Thread Magnus Fromreide
On Fri, Jan 27, 2006 at 02:36:18PM -0500, Robert Story wrote: > > grrr... > I consider it good - it increases the portability of the code. > Ugh... ugly ugly... I agree, on the other hand that applies to the original code as well - if you feel gracious then maybe one ugly could be dropped but

Re: converting snmpv2 trap to snmpv3 trap

2006-02-02 Thread Magnus Fromreide
On Thu, Feb 02, 2006 at 10:18:28AM +, Dave Shield wrote: > On Thu, 2006-02-02 at 12:27 +0530, Ravi, Rajagopal Shanmugam (Rajagopal > Shanmugam)** CTR ** wrote: > >But the man pages on forward directive does not give any > > information on version conversation. It looks as though the for

Re: forward request to external code

2006-02-14 Thread Magnus Fromreide
On Tue, Feb 14, 2006 at 10:28:56AM -0800, Wes Hardaker wrote: > > On Tue, 14 Feb 2006 11:49:44 +0100 (CET), brisse <[EMAIL PROTECTED]> > > said: > > brisse> I have generated myMIB.c and myMIB.h with mib2c -c > brisse> mib2c.iterate.conf myMIB. > > The iterator actually lets you *not* kee

CVS delay

2006-04-21 Thread Magnus Fromreide
Hello. I am curious about how big delay one should expect from the merge of a patch in the net-snmp cvs to such time when it shows up in the public CVS and the web CVS archive. Right now the last available patch seems to be the one that is referred by the commit message http://sourceforge.net/ma

Re: CVS delay

2006-04-22 Thread Magnus Fromreide
On Fri, Apr 21, 2006 at 08:59:19PM +0100, [EMAIL PROTECTED] wrote: > Quoting Magnus Fromreide <[EMAIL PROTECTED]>: > >I am curious about how big delay one should expect from the merge of a > >patch > >in the net-snmp cvs to such time when it shows up in the public CVS

Re: Frequent system calls in 5.3.1.pre3

2006-07-06 Thread Magnus Fromreide
On Thu, Jul 06, 2006 at 12:09:00PM -0400, Robert Story wrote: > On Thu, 06 Jul 2006 16:48:34 +0100 Dave wrote: > DS> Probably to support the implementation of the hrProcessorLoad object. > DS> This is defined as reporting the load over the last minute, so needs to > DS> sample the underlying statis

Re: Changing originator IP in trap/inform

2006-07-19 Thread Magnus Fromreide
On Wed, Jul 19, 2006 at 03:04:09PM +0100, Dave Shield wrote: > On 19/07/06, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > I have notification originator application, which uses Net-SNMP APIs > > and runs as a separate process (not part of snmpd). > > Presumably this runs as an AgentX

Re: Changing originator IP in trap/inform

2006-07-31 Thread Magnus Fromreide
On Wed, Jul 19, 2006 at 04:08:02PM +0100, Dave Shield wrote: > On 19/07/06, Magnus Fromreide <[EMAIL PROTECTED]> wrote: > >there is sadly a misalignment in the code so if you have the > > functions that converts from v2-notification to v1-trap and back and calls >

Re: Changing originator IP in trap/inform

2006-08-01 Thread Magnus Fromreide
On Tue, Aug 01, 2006 at 10:00:00AM +0100, Dave Shield wrote: > On 01/08/06, Magnus Fromreide <[EMAIL PROTECTED]> wrote: > > In convert_v1pdu_to_v2: > > > > A community field is eventually inserted among the varbinds. > > That's correc

Re: rfc: net-snmp-config.h

2006-08-21 Thread Magnus Fromreide
On Tue, Aug 22, 2006 at 12:03:05AM +0200, Thomas Anders wrote: > Robert Story wrote: > > On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: > > WH> And that's included automatically by what file? Or is included > > WH> explicitly by what files? > > > > Well, as near as I can tell from cursory checking

Re: rfc: net-snmp-config.h

2006-08-22 Thread Magnus Fromreide
On Tue, Aug 22, 2006 at 09:26:03AM +0100, Dave Shield wrote: > > TA> It's a start, but I think our current approach of shipping all > > TA> autoconf variables in net-snmp-config.h is even more flawed than > > TA> that. See some random Debian bug (wrt. some other software) on the > > TA> topic: > >

-Dlinux=linux

2006-08-24 Thread Magnus Fromreide
Hello. After the change to set the value of the define linux to linux the compiler complains: :1:1: warning: "linux" redefined : warning: this is the location of the previous definition When I read the description of the change I got the impression that the symbols shouldn't be defined if the al

Re: Problem using g++ compiler

2006-08-24 Thread Magnus Fromreide
On Wed, Aug 23, 2006 at 02:47:12PM +0530, Jenny Paul wrote: > Hi > This is related to my previous question regarding > init_vacm_vars(); and > init_usmUser(); >My application is wriiten in C++. When I compile using g++ I > get compilation error as follows > > init_vacm_vars'

Re: rfc: net-snmp-config.h

2006-08-25 Thread Magnus Fromreide
On Fri, Aug 25, 2006 at 04:15:55PM +0200, Thomas Anders wrote: > Robert Story wrote: > > $ cvs diff configure.in > > Index: configure.in > [...] > > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) > > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) > > I don't think this'll work. autohe

make test

2006-08-25 Thread Magnus Fromreide
If you try to run make test as root (Ok, a stupid idea, but still) then it will happily overwrite /dev/null with the smux socket unless the environment variable SNMP_SMUX_SOCKET is defined. This is rather irritating and also breaks all furter tests. /MF ---

Re: rfc: net-snmp-config.h

2006-08-26 Thread Magnus Fromreide
On Fri, Aug 25, 2006 at 04:15:55PM +0200, Thomas Anders wrote: > Robert Story wrote: > > $ cvs diff configure.in > > Index: configure.in > [...] > > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) > > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) > > I don't think this'll work. autohe

Re: UCD-SNMP::memory broken in MAIN?

2006-09-19 Thread Magnus Fromreide
On Tue, Sep 19, 2006 at 07:05:49PM +0100, Dave Shield wrote: > On 19/09/06, Dave Shield <[EMAIL PROTECTED]> wrote: > > I don't think it's the HAL code - it appears to be a deficiency in the > > scalar_group helper (or possibly the higher-level MIB registry > > handling). > > Confirmed. > The "find

Building HEAD

2006-09-24 Thread Magnus Fromreide
Hello. I can't build net-snmp HEAD any more. The problems are as follows: 1) I do not have the librpm development package installed so I get hit by #1564233 - the configure checks for librpm headers aren't sufficient. 2) I do not have the perl module building packages installed so I

Re: Partial OID matching in snmptrapd.conf

2006-09-24 Thread Magnus Fromreide
On sön, 2006-09-24 at 09:19 +0100, Dave Shield wrote: > On 21/09/06, Robert Story <[EMAIL PROTECTED]> wrote: > > So, I'm looking for a preferred ordering from as many people as possible. > > > Hmmm > So we've now got two preferences for '-p', and somewhere between two > and three for 'oid.*'.

Re: Building HEAD

2006-09-24 Thread Magnus Fromreide
On sön, 2006-09-24 at 07:31 -0700, Wes Hardaker wrote: > >>>>> "MF" == Magnus Fromreide <[EMAIL PROTECTED]> writes: > > MF> I can't build net-snmp HEAD any more. > > Thanks for the report! I'll have to make sure these get fixed bef

  1   2   3   4   5   6   7   8   9   >