snmp.conf persistentDir not working on Linux and Windows

2005-05-03 Thread Alex Burger
While going through the bug database I came across '[ 996834 ] Setting persistentDir in Windows broken'. After some testing I found that this bug also exists under Linux (5.2.1). The persistentDir snmp.conf token is supposed to allow you to change the location of the persistent folder. It doe

compiling 5.2.1 for an older system

2005-05-03 Thread Ben Z
Hello all;   I'm relatively new at this kind of development, but here's my question. I am compiling the daemon (5.2.1) on a FreeBSD 5.3 box, and the target is an embedded 4.9 system. I use all the "configure" options (supposedly) to make this work but I keep getting version number conflict w

RE: How to implement tables in 5.0.6

2005-05-03 Thread Toth, Gregory S
> -Original Message- > From: Dave Shield [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 03, 2005 5:47 AM > To: Toth, Gregory S > Cc: net-snmp-coders@lists.sourceforge.net > Subject: RE: How to implement tables in 5.0.6 > > My intention is that in the xxx_handler, the "switch > > (tab

Patch 1153271 - pass_persist under Windows

2005-05-03 Thread Alex Burger
I have applied patch 1153271 to main which gives pass_persist support under Windows when compiled with MSVC. For some reason it does not work when compiled with MinGW, so I have disabled it for MinGW until a fix is found. I think there is an issue with the input pipe under MinGW that causes t

RE: How to implement tables in 5.0.6

2005-05-03 Thread Toth, Gregory S
-Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 5:49 AM To: Toth, Gregory S Cc: net-snmp-coders@lists.sourceforge.net Subject: RE: How to implement tables in 5.0.6 On Fri, 2005-04-29 at 23:31, Toth, Gregory S wrote: > >> oid my_oid[] ={ 1,2,

Re: Timeout issue with Net-SNMP on MAC OS X 10.3.8

2005-05-03 Thread Robert Story
On Mon, 02 May 2005 14:59:01 -0700 Pete wrote: PP> SNMP is now working sometimes and other times it's not. I don't know how PP> much time I have to debug this SNMP issues. I understand. I don't have much time to debug problems in custom MIB implementations either. That's why I asked you if you cou

Re: Compiling Net-SNMP with Mingw based Bloodshed Dev-C++?

2005-05-03 Thread Alex Burger
Ekkehard Domning wrote: Hello, while I was able to compile net-snmp with M$C and cygwin, I had no success with compiling with Mingw based Bloodshed Dev-C++. The compiler stops in net-snmp-config.h (Line 1540) 1540 D:\Misc\net-snmp-5.2.1\win32\net-snmp\net-snmp-config.h syntax error before "uint32

Re: snmpd.conf : proxy token

2005-05-03 Thread Wes Hardaker
> On Tue, 3 May 2005 15:41:39 +0200 (CEST), "Martin Kouril" <[EMAIL > PROTECTED]> said: Martin> $snmpwalk -u coud -v3 -l noAuthNoPriv -n myhost 127.0.0.1 .1.3.6.1.2.1.1.1.0 Martin> Error in packet. Martin> Reason: authorizationError (access denied to that object) Martin> What's wrong?

Re: table_data helpers

2005-05-03 Thread Wes Hardaker
> On Tue, 03 May 2005 16:43:59 +0100, Dave Shield <[EMAIL PROTECTED]> said: Dave> /* Dave> * NOTE NOTE NOTE: This helper isn't complete and is likely to Dave> * change somewhat over time. Specifically, the way it stores Dave> * data internally may change drastically. Dave> */ Dave> *That'

RE: Compiling Net-SNMP with Mingw based Bloodshed Dev-C++?

2005-05-03 Thread Penz, Bernhard
Hi, The error message would have helped, but I guess that your compiler does not define the Win32 types. In your case, it is the line "typedef unsigned __int32 uint32_t" it complains about. My guess is that the microsoft type __int32 is not defined. Bernhard > -Original Message- > From:

Re: About mib-2

2005-05-03 Thread Dave Shield
On Sat, 2005-04-30 at 11:11, Hongjunli wrote: > which mib-2 should I use ? RFC1213 or TCP-MIB,UDP-MIB > and IF-MIB,and so on. It doesn't matter. They're the same MIB objects in either case. Dave --- This SF.Net email is sponsored by: NEC IT

Re: table_data helpers

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 18:42, Wes Hardaker wrote: > Anyway, I think we've never told people not to mess with the table > structures and have even provided a few examples of being able to do > so. I *knew* there was something nagging me about this statement, and I've just clicked what it was. There

Re: Timeout issue with Net-SNMP on MAC OS X 10.3.8

2005-05-03 Thread Pete Parks
SNMP is now working sometimes and other times it's not. I don't know how much time I have to debug this SNMP issues. Hopefully I'm not the only one having this issue an with others we can determine what's going wrong. It's possible that it is operator error, but considering that its working someti

About mib-2

2005-05-03 Thread Hongjunli
which mib-2 should I use ? RFC1213 or TCP-MIB,UDP-MIB and IF-MIB,and so on.

Compiling Net-SNMP with Mingw based Bloodshed Dev-C++?

2005-05-03 Thread Ekkehard Domning
Hello, while I was able to compile net-snmp with M$C and cygwin, I had no success with compiling with Mingw based Bloodshed Dev-C++. The compiler stops in net-snmp-config.h (Line 1540) 1540 D:\Misc\net-snmp-5.2.1\win32\net-snmp\net-snmp-config.h syntax error before "uint32_t" this is the second l

Re: table_data helpers

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 18:45, Robert Story wrote: > I've run out of energy for this argument. Most important thing first. I'm sorry if I've been pushing you too hard on this issue, Robert. I know how frustrating it can be when you're trying to explain something that seems so obviously right, and t

Re: iterate vs scalar

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 18:38, Wes Hardaker wrote: > You guys seem to think that the *only* time you'll register an OID is > if you want to control a scalar. I humbly disagree. > > Take the working and popular example of the "override" snmpd.conf > token, which is implemented via an instance regist

RE: How to implement tables in 5.0.6

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 16:17, Toth, Gregory S wrote: > > The 'get_first' routine should return some sort of pointer to the > > first row of the table (and will only be called once). The 'get_next' > > routine should take this pointer, and return the equivalent pointer > > for the next row. > In my

snmpd.conf : proxy token

2005-05-03 Thread Martin Kouril
Hi, I explore net-snmp proxy, I followed instructions in snmp.conf(5) manual page, everything was fine till I tried to use -Cn option with 'proxy' token and -n option with snmpwalk. I get this message: Example: #snmpd.conf ... proxy -Cn myhost -v 1 -c public my.host.IP.address .1.3.6.1.2.1.1

Re: table_data helpers

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 18:28, Wes Hardaker wrote: > Dave> can I suggest that we add suitable wrappers to > Dave> table_data and table_dataset now. > Dave> If we then provide the same APIs for the > Dave> table_data2/table_dataset2 helpers, that should make the > Dave> transition significan

RE: How to implement tables in 5.0.6

2005-05-03 Thread Dave Shield
On Fri, 2005-04-29 at 23:31, Toth, Gregory S wrote: > >> oid my_oid[] ={ 1,2,3,4,5,6,7,1}; > >> vptr = put_index_data; > >> snmp_set_var_value(vptr,(u_char *)my_oid,8); > > >No. > >Try: > > long this_index = 1;// (1,x) elements > > vptr = put_index_data; > > snmp_set_var_value(