Re: rfc: netstat -n

2005-07-25 Thread Thomas Anders
Robert Story wrote: On Tue, 26 Jul 2005 00:22:13 +0200 Thomas wrote: TA> Are there any objections against applying this patch to 5.[123].x? TA> TA> More specifically, does anyone know of a supported platform where TA> - "make test" works properly right now (except this bug) *and* TA> - netstat

Re: 5.3.dev "make test" fails for SNMPv3/AgentX/proxy

2005-07-25 Thread Thomas Anders
Robert Story wrote: On Mon, 25 Jul 2005 23:38:17 +0200 Thomas wrote: TA> BTW, has the test #19 failure (for 5.[23]) ever been looked at in the TA> meantime? That's the snmpusm one, right? I've been hoping Wes would tackle that one. Yes, it's snmpusm. Given Wes' vacation plans, this'll likely

Re: 5.3.dev "make test" fails for SNMPv3/AgentX/proxy

2005-07-25 Thread Robert Story
On Mon, 25 Jul 2005 23:38:17 +0200 Thomas wrote: TA> BTW, has the test #19 failure (for 5.[23]) ever been looked at in the TA> meantime? That's the snmpusm one, right? I've been hoping Wes would tackle that one. -- NOTE: messages sent directly to me, instead of the lists, will be deleted

Re: rfc: netstat -n

2005-07-25 Thread Robert Story
On Tue, 26 Jul 2005 00:22:13 +0200 Thomas wrote: TA> Are there any objections against applying this patch to 5.[123].x? TA> TA> More specifically, does anyone know of a supported platform where TA> - "make test" works properly right now (except this bug) *and* TA> - netstat does *not* support "-n"

Re: CVS main is broken - notification_log.h

2005-07-25 Thread Robert Story
On Mon, 25 Jul 2005 13:53:25 -0600 Bruce wrote: BS> make[1]: *** No rule to make target `notification_log.h', needed by now fixed.. -- Robert Story; NET-SNMP Junkie Support: Archive: You are lost in

Re: Multiple snmpd deamon in a single linux box.

2005-07-25 Thread Robert Story
On Mon, 25 Jul 2005 19:51:12 +0200 Thomas wrote: TA> Robert Story wrote: TA> > Yes. simply put the port number on the command line, and specify the path TA> > to the snmpd.conf... Put the common stuff in the default snmpd.conf, and TA> > then create any needed custom snmpd.conf files and load them

Re: mib2c for oid type cause segmentation fault, e.g. etherStatsDataSource

2005-07-25 Thread Robert Story
On Fri, 22 Jul 2005 13:21:46 -0500 [EMAIL PROTECTED] wrote: EYC> > This code is perfectly fine, and worked in the code I generated using EYC> > 5.2.1 CVS. Something else must be going on with memory access... EYC> EYC> Did you use ehterStatsTable to generate template? EYC> The strange thing is if

rfc: netstat -n

2005-07-25 Thread Thomas Anders
-Coders, I just tracked down bug 1230366 http://sourceforge.net/support/tracker.php?aid=1230366 and proposed the attached fix for testing/TESTCONF.sh. Are there any objections against applying this patch to 5.[123].x? More specifically, does anyone know of a supported platform where - "make

Re: 5.3.dev "make test" fails for SNMPv3/AgentX/proxy

2005-07-25 Thread Thomas Anders
Robert Story wrote: On Thu, 30 Jun 2005 14:01:17 +0200 Thomas wrote: TA> Robert Story wrote: TA> > I checked in fixes yesterday that get me up to 48/49.. TA> TA> The score for 5.3.dev is down to 43/49 again, at least for me. 5.2.x TA> (48/49) and 5.1.x (49/49) don't seem to be affected. Here ar

Re: 5.3.dev compile error

2005-07-25 Thread Thomas Anders
Thomas Anders wrote: Robert Story wrote: Oops.. that's me.. forgot to check in dependencies changes.. should be ok now.. Hmmh, but snmptrapd.c still seems to #include "notification_log.h" without having the new include dir (agent/mibgroup/notification-log-mib) specified, so compilation still

Alan Anderson is out of the office from Dec 23 - Jan 3

2005-07-25 Thread Alan . Anderson
I will be out of the office starting 07/25/2005 and will not return until 07/26/2005. I will respond to your message when I return. --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Ro

CVS main is broken - notification_log.h

2005-07-25 Thread Bruce Shaw
gcc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include -g -O2 -Dsolaris2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -c snmpvacm.c -o snmpvacm.o snmpvacm.c:86: warning: 'vacmSec2GroupStorageType' defined b

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Dave Shield
> I'm not updating loop_context. Then that's why you're going into an infinite loop. The 'loop_context' parameter is how the iterator code keeps track of how far it's got through the table. If you don't update this value, it can't possibly walk the table. > This is my code. >*my_loop_contex

Re: 5.3.dev compile error

2005-07-25 Thread Thomas Anders
Robert Story wrote: On Sun, 24 Jul 2005 01:47:59 +0200 Thomas wrote: TA> back from vacation I can't compile 5.3.dev anymore (on Linux/x86), even TA> after a fresh cvs checkout. make fails with: TA> TA> make[1]: *** No rule to make target `notification_log.h', needed by TA> `snmptrapd.lo'. Sto

Re: Multiple snmpd deamon in a single linux box.

2005-07-25 Thread Thomas Anders
Robert Story wrote: On Mon, 25 Jul 2005 08:07:20 -0700 (PDT) Ravi wrote: RRS> Is it possible to run multiple snmpd i.e net-snmp agent in a single RRS> Linux box with different port numbers? If yes please help me out in RRS> configuring this. Yes. simply put the port number on the command line

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Jordan Janeiro Lopes da Silva
I'm not updating loop_context. I've filled with a constant to test while querying the agent. This is my code. get_first { netsnmp_variable_list *vptr; *my_loop_context = NULL /* XXX */; *my_data_context = NULL /* XXX */; vptr = put_index_data; snmp_set_var_value(vptr, (u

Re: Multiple snmpd deamon in a single linux box.

2005-07-25 Thread Robert Story
On Mon, 25 Jul 2005 08:07:20 -0700 (PDT) Ravi wrote: RRS> Is it possible to run multiple snmpd i.e net-snmp agent in a single RRS> Linux box with different port numbers? If yes please help me out in RRS> configuring this. Yes. simply put the port number on the command line, and specify the path

Re: SNMP Trap Forwarder for net-snmp

2005-07-25 Thread Robert Story
On Sun, 24 Jul 2005 13:50:37 +0530 Vineet wrote: VKG> I have been working on a utility which could work as SNMP trap forwarder VKG> as a part of net-snmp package. Independent of snmptrapd? Did you know that snmptrapd already has the capability of forwarding traps? VKG> Please let me know how can

Re: 5.3.dev compile error

2005-07-25 Thread Robert Story
On Sun, 24 Jul 2005 01:47:59 +0200 Thomas wrote: TA> back from vacation I can't compile 5.3.dev anymore (on Linux/x86), even TA> after a fresh cvs checkout. make fails with: TA> TA> make[1]: *** No rule to make target `notification_log.h', needed by TA> `snmptrapd.lo'. Stop. TA> make[1]: Leavin

MfD suggestions

2005-07-25 Thread Dave Shield
Robert, as you may have guessed, I've now moved on to looking at the MfD framework again. I've noticed a couple of things that don't look quite right, or could perhaps be useful tweaked a bit. Firstly, the code generated by running mib2c -c mib2c.mfd.conf {myTable} and accepting all the defau

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Dave Shield
On Mon, 2005-07-25 at 11:04 -0300, Jordan Janeiro Lopes da Silva wrote: > > That sounds suspiciously like an infinite loop. > Dave, you were right. I was debugging and saw that the problem is the > get_next hook. Some code keeps calling the get_next in a infinite loop. OK - the you probably need

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Dave Shield
On Mon, 2005-07-25 at 11:27 -0300, Jordan Janeiro Lopes da Silva wrote: > Dave I'm sorry, I've forgotten to add the last part. The problem is when I > return put_index_data, he keeps in a infinite loop. When I return NULL > everything is "normal" and he is unable to return the rest of the data. Re

Re: I need an example

2005-07-25 Thread Juan José Abarca Soto
Sorry, muchas gracias por la preocupacion, y si es mejor en español mejor aun. Mira recien vi mi mail, ahora lo que necesito ayuda es lo siguiente, necesito desde una codigo en c, com en el ejemplo de la pagina simpleapp.c que se conecta en a un servidor en donde esta el agente escuchando, y

Re: make perl error on winxp , need your help! thx

2005-07-25 Thread [EMAIL PROTECTED]
Alex :ok~i'll try the patch first.I've tried build.bat,and it succeeded in make exe files and dll files,but stoped when compile purl mudules.And the same error i can see in the output file.Either success or not,I'll keep contact with u!Thank u all the same!  

SNMP Trap Forwarder for net-snmp

2005-07-25 Thread Vineet Kumar Garg
Hi I have been working on a utility which could work as SNMP trap forwarder as a part of net-snmp package.Please let me know how can i submit the utility and any other information pertaining to the case. Thanks & Regards VINEET GARG Software Engineer Product Engineering Mob :09886674133 Phone:0

Re: make perl error on winxp , need your help! thx

2005-07-25 Thread [EMAIL PROTECTED]
Thank u very much,Alex!Yeah,i'm trying to compile net-snmp-5.2.1.2 on win32.The error comes when building perl mudules..eg: I have searched  the fuctions  like init_var_route(). It is defined in \net-snmp-5.2.1.2\agent\mibgroup\mibII\var_route.c. But the fuction doesn't appear in the project  l

Multiple snmpd deamon in a single linux box.

2005-07-25 Thread Ravi R.S
Hi SNMP Gurus,Is it possible to run multiple snmpd i.e net-snmp agent in a single Linux box with different port numbers? If yes please help me out in configuring this. This is reqired to make one agent as a basic snmp agent and the otheragent to act as a proxy agent?ThanksRav___

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Jordan Janeiro Lopes da Silva
Dave I'm sorry, I've forgotten to add the last part. The problem is when I return put_index_data, he keeps in a infinite loop. When I return NULL everything is "normal" and he is unable to return the rest of the data. []'s Jordan Janeiro Telemídia - PUC-Rio -- Original Message -

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Jordan Janeiro Lopes da Silva
> On Sun, 2005-07-24 at 09:57 -0300, Jordan Janeiro Lopes da Silva wrote: > > I´ve generated a table using the script > > mib2c.iterate.conf to generate my table. > > when I query this agent, my response is "Timeout: no response > > from localhost:" and the other terminal that executes the a

Net-snmp usage

2005-07-25 Thread Cicerone Vincenzo
Hi I've to customize an Agent snmp on a Linux machine with fedora core 2. First problem: I've found in it net-snmp-5.1.1 installed without mib2c util How can i verify if the snmp perl module is installed? I've put my Mib in /usr/share/snmp/mibs and set the MIBS=ALL env. Variable but snmptranslate

Re: how to drop simple table

2005-07-25 Thread Dave Shield
On Tue, 2005-07-19 at 19:40 +0200, Torben Surmer wrote: > I have built a simple table like explained in the data_set example. > My problem is, I do not understand how to reassign the MIB values. > netsnmp_set_row_column(row, 2, ASN_OCTET_STR, sz,strlen(sz)); > netsnmp_table_dataset_add_row(table

Re: question to notification example

2005-07-25 Thread Dave Shield
On Sat, 2005-07-23 at 16:22 +0200, Torben Surmer wrote: > in the fine working notification sample > /* In the notification, we have to assign our notification OID to > * the snmpTrapOID.0 object. Here is it's definition. */ > oid objid_snmptrap[] = { 1, 3, 6, 1, 2, 1, 4, 3, 0 }; > Do anyb

Re: Delete table row via index

2005-07-25 Thread Dave Shield
On Sun, 2005-07-24 at 11:30 +0200, Torben Surmer wrote: > I have a snmp table create with a numeric index. Using which helper? > Is there a possibility to get a row via the index? > Something like: > row = netsnmp_getrowviaindex(index); > netsnmp_delete_row(row); Try netsnmp_table_data_g

Re: table generated by mib2c.iterate with timeout

2005-07-25 Thread Dave Shield
On Sun, 2005-07-24 at 09:57 -0300, Jordan Janeiro Lopes da Silva wrote: > I´ve generated a table using the script > mib2c.iterate.conf to generate my table. > when I query this agent, my response is "Timeout: no response > from localhost:" and the other terminal that executes the agent > sto

Re: Regarding the problem in the sample

2005-07-25 Thread Dave Shield
On Fri, 2005-07-22 at 05:54 -0700, harish babu wrote: > I am getting the following error, > Cannot find module (CISCO-RHINO-MIB): > I have placed the file CISCO-RHINO-MIB.my in > /usr/share/local/snmp/mibs. Well that looks wrong for a start. I'd expect MIBs to be stored in /usr/local/share/sn