Re: How to process "inform" response from a separate daemon handling system specific traps

2010-02-22 Thread Dave Shield
On 20 February 2010 19:20, Fatima Peter wrote: > > The problem happens with sending "inform" messages as the INFORM  response > comes to snmpd and not to our "trapd" process. How are you generating the INFORM requests? Do you use the agent 'snmp_trap_api(3)' calls, or are you constructing and sen

Re: SF.net SVN: net-snmp:[18164] trunk/net-snmp

2010-02-22 Thread Bart Van Assche
On Sun, Feb 21, 2010 at 5:55 PM, Magnus Fromreide wrote: > On Sun, Feb 21, 2010 at 04:04:12PM +0100, Bart Van Assche wrote: > > On Sun, Feb 21, 2010 at 1:55 PM, Bart Van Assche > wrote: > > > > > On Fri, Feb 19, 2010 at 7:21 PM, Magnus Fromreide < > ma...@lysator.liu.se>wrote: > > > > > >> On Fri

Single executable for multiple tables

2010-02-22 Thread Hemant Soundankar
1. CC=gcc 2. TABLE_PREFIX=rdbmsDbTable/rdbmsDbTable 3. TABLE_PREFIX1=rdbmsDbInfoTable/rdbmsDbInfoTable 4. NETSNMPCONFIG=net-snmp-config 5. # uncomment this if you have GNU make 6. #NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags) 7. #NETSNMPLIBS := $(shell $(NETSNMPCONF

Re: How to process "inform" response from a separate daemon handling system specific traps

2010-02-22 Thread Fatima Peter
Hi Dave, Thanks for the quick response. We are constructing the trap pdu ourselves as there are some new oids we are sending in the trap pdu. I got the INFORM working using "snmp_async_send" and by pending on the transport socket(), able to handle responses and timeouts. I could see retries bein

custom container implementation

2010-02-22 Thread Gerlando Falauto
Hi folks, I am trying to optimize an SNMP subagent (connected to NET-SNMP 5.4.2.1 through AgentX) that is currently using code generated through mib2c.iterate_access.conf; of course this does *not* scale well, worsened by the fact that it runs on an extremely slow embedded processor. The subag

Re: custom container implementation

2010-02-22 Thread Dave Shield
On 22 February 2010 16:03, Gerlando Falauto wrote: > The subagent is a thread within a multi-threaded application; the actual > data is stored as shared data (dynamic data structures) within the > application itself. My first question would be - how dynamic is the structure of the table? I.e. how

net-Snmp notifications

2010-02-22 Thread Vince Adams
Hi, I have a question. When I stop the agent, I get .1.3.6.1.4.1.8072.4 however when I start it I get .1.3.6.1.4.1.8072.3.2.10 Why does it not send 8072.4 so my files can pick it up and send the nsNotifyStart and not a ColdStart Thanks, Vince Adams --

Re: custom container implementation

2010-02-22 Thread Gerlando Falauto
Hi Dave, thanks for you quick reply! On 02/22/2010 05:40 PM, Dave Shield wrote: > On 22 February 2010 16:03, Gerlando Falauto > wrote: > >> The subagent is a thread within a multi-threaded application; the actual >> data is stored as shared data (dynamic data structures) within the >> appli

rfc: slight change to behaviour of -Dall

2010-02-22 Thread Robert Story
Currently, if you specify -Dall, you get everything. This is usually more than you want. Unfortunately, the code to exclude tokens (e.g. -D-parse-file,parse, which would log all parse messages except parse-file) does not get run when -Dall is specified. I'd like to change that, and search for excl

Re: custom container implementation

2010-02-22 Thread Robert Story
On Mon, 22 Feb 2010 23:02:54 +0100 Gerlando wrote: GF> Or are you suggesting I don't even create a new container type (and use GF> the standard container to keep just the indexes of the existing rows, GF> and then use that information in my own handler (i.e, the one is passed GF> to netsnmp_crea

Re: improperly registered table found

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Mon, 28 Sep 2009 19:52:39 -0700 (PDT) nathan wrote: N> When I do snmpwalk on my objects, I'm getting this error msg "impro

Re: table_dataset2 in comments

2010-02-22 Thread Robert Story
On Tue, 29 Sep 2009 11:10:07 -0700 dan wrote: DA> man/netsnmp_table_dataset.3 (line 130) (which I think is used to DA> generate http://net-snmp.sourceforge.net/dev/agent/group__table__dataset.html, DA> which has this too) and agent/helpers/table_dataset.c (line 40) both DA> say "This helper is obs

Re: lmSensors module not working

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Wed, 30 Sep 2009 17:57:27 +0530 sandeep wrote: SP> Hi, SP> I am trying to run lmSensors module on net-snmp-5.4.2.1, I have

Re: request Help for table implementation

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Thu, 1 Oct 2009 17:09:03 +0530 VENU wrote: VP> Here I have a scenario, need to implement a table which supposed to retriev

Re: Problem with engineBoots and reconfigure (patch)

2010-02-22 Thread Robert Story
On Fri, 02 Oct 2009 14:15:51 +1000 Mark wrote: MW> When a reconfig occurs (ie kill -HUP), the engineBoots value used by the agent is incremented internally but the new value is not written back to the persistent conf. engineTime is not reset to zero. If the agent is then killed and restarted,

Re: notification

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Fri, 9 Oct 2009 07:58:33 -0700 (PDT) nathan wrote: N> hi, N> I want to send some project-specific info from net-snmp clien

Re: snmp_add returns "No support for any checked transport domain"

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Wed, 9 Dec 2009 21:19:30 +0530 Goutham wrote: GB> But I am not sure whether not calling snmp_shutdown() after sending the

Re: snmpset fails on MIPS

2010-02-22 Thread Robert Story
I didn't see a response to this old message, and I hope you solved the problem on your own. Just answering for the archives in case someone else ran into this same problem. On Tue, 8 Dec 2009 20:35:22 -0800 (PST) nathan wrote: N> I am calling snmpset on an OID like this...snmpset -v2c -cpublic

Re: error on subcontainer '' insert (-1)

2010-02-22 Thread Robert Story
On Fri, 8 Jan 2010 23:36:18 +0530 Hemant wrote: HS> *error on subcontainer '' insert (-1)* HS> HS> This is a message flashing on the window terminal where my subagent is HS> running. HS> HS> If there are 5 records, the 1st record is inserted properly , but the rest 4 HS> records are not inserted

Re: r17913 changes

2010-02-22 Thread Robert Story
On Thu, 17 Dec 2009 16:41:52 +0100 Bart wrote: BVA> Do you think there is a realistic chance that these functions were BVA> used outside the Net-SNMP project ? Hey, we're programmers. We don't deal with reality! ;-) Seriously, though, we generally don't remove unused/obsolete functions unless the

Re: RFC: removal of the NETSNMP_DS_LIB_ALARM_DONT_USE_SIG feature

2010-02-22 Thread Robert Story
On Mon, 21 Dec 2009 09:47:00 +0100 Bart wrote: BVA> If I do not receive any feedback, I will apply the patch below whithin BVA> a few days. This patch does not modify the behavior of the Net-SNMP BVA> agent itself (snmpd). It only modifies the behavior of applications BVA> linked with libnetsnmp an

Re: SF.net SVN: net-snmp:[18190] trunk/net-snmp/snmplib/snmp_api.c

2010-02-22 Thread Magnus Fromreide
On Tue, 2010-02-23 at 00:34 +, rst...@users.sourceforge.net wrote: > Revision: 18190 > http://net-snmp.svn.sourceforge.net/net-snmp/?rev=18190&view=rev > Author: rstory > Date: 2010-02-23 00:34:58 + (Tue, 23 Feb 2010) > > Log Message: > --- > debug msg tweaks; use n

Re: rfc: slight change to behaviour of -Dall

2010-02-22 Thread Magnus Fromreide
On Mon, 2010-02-22 at 19:57 -0500, Robert Story wrote: > Currently, if you specify -Dall, you get everything. This is usually more than > you want. Unfortunately, the code to exclude tokens (e.g. -D-parse-file,parse, > which would log all parse messages except parse-file) does not get run when > -D

Re: r17913 changes

2010-02-22 Thread Bart Van Assche
On Tue, Feb 23, 2010 at 5:39 AM, Robert Story wrote: > On Thu, 17 Dec 2009 16:41:52 +0100 Bart wrote: > BVA> Do you think there is a realistic chance that these functions were > BVA> used outside the Net-SNMP project ? > > Hey, we're programmers. We don't deal with reality! ;-) > > Seriously, tho