Re: Fixing warnings in snmplib/snmpksm.c

2011-02-24 Thread Niels Baggesen
On Wed, Feb 23, 2011 at 10:38:36PM +0100, Niels Baggesen wrote: > I would like to solicit some input on the changes that I made to get > it to compile and quell warnings, so would some of you who has a > Kerberos setup please look at the attached dif? The important point > is the first ten lines or

Re: Transient Data ?

2011-02-24 Thread sujata patra
Thanks Dave. Let me have a relook and I will come back to this. From: Dave Shield To: sujata patra Cc: net-snmp-coders Sent: Thu, February 24, 2011 5:32:12 PM Subject: Re: Transient Data ? On 24 February 2011 10:36, sujata patra wrote: > I am getting this d

Re: memory leak calling snmp_send()

2011-02-24 Thread Adam Mendlik
I'm using 5.5.1.pre2. On Thu, Feb 24, 2011 at 4:26 AM, Bart Van Assche wrote: > On Wed, Feb 23, 2011 at 7:07 PM, Adam Mendlik wrote: > >> I've written a Windows service which consumes an inbound data stream and >> sends out SNMP traps using netsnmp.lib. >> >> During service initialization I ca

Re: Sending a notification outside the agent

2011-02-24 Thread Dave Shield
On 24 February 2011 15:01, Giuseppe Modugno wrote: > Now I want to create a small program that sends autonomously (outside the > agent process) a SMI-v2 notification. You mean a program like 'snmptrap' ? > Can I use the send_v2trap() function call? No. This relies on elements within the agent

Sending a notification outside the agent

2011-02-24 Thread Giuseppe Modugno
I installed net-snmp suite on a Linux box. It works great, both for manager (snmpget/snmpset) and for agent (snmpd). Now I want to create a small program that sends autonomously (outside the agent process) a SMI-v2 notification. Can I use the send_v2trap() function call? From snmp_trap_api(3) I

Re: massive feature/minimalist patch being checked in right now

2011-02-24 Thread Wes Hardaker
> On Thu, 24 Feb 2011 08:18:49 +0100, Magnus Fromreide > said: MF> Looking further it seems that the issue is -ggdb3. Ah If the patch you have works, go ahead and apply it! -- Wes Hardaker Please mail all replies to [email protected] --

Re: [PATCH] AGENT: fix no interface statistics available

2011-02-24 Thread Wes Hardaker
> On Thu, 24 Feb 2011 08:44:17 +, Dave Shield > said: DS> On 24 February 2011 01:33, Robert Story wrote: >> On Tue, 08 Feb 2011 09:36:47 -0800 Wes wrote: WH> Actually, the patch didn't apply cleanly for some reason.  So in the WH> process of creating a new one I changed it from size

Re: Transient Data ?

2011-02-24 Thread Dave Shield
On 24 February 2011 10:36, sujata patra wrote: > I am getting this doubt as I found that strlen() is crashing on Solaris > 10(*only*) Are you sure that the string you are running this on is null-terminated? Many Net-SNMP data structures use (size, value) pairs to accomodate binary values (which m

Re: memory leak calling snmp_send()

2011-02-24 Thread Bart Van Assche
On Wed, Feb 23, 2011 at 7:07 PM, Adam Mendlik wrote: > I've written a Windows service which consumes an inbound data stream and > sends out SNMP traps using netsnmp.lib. > > During service initialization I call: > snmp_sess_init(&session); > session.version = SNMP_VERSION_1; > init_snmp("snmpapp"

Re: Transient Data ?

2011-02-24 Thread sujata patra
Thanks Dave for the quick clarification. The hooks(xxx_load, xxx_free) and the handler are called sequentially from the same thread. I am getting this doubt as I found that strlen() is crashing on Solaris 10(*only*) and that is only if I run the sub-agent as master agent. It works well when it

Re: Transient Data ?

2011-02-24 Thread Dave Shield
On 24 February 2011 06:35, sujata patra wrote: > If I use cache , is it a concern? No. > The time handler is processing a request > and expiry of cahe can free the data at the same time . right ? No. The check on whether the cache is valid is done once, *before* callin

Re: HTTP interface in snmp agent

2011-02-24 Thread Dave Shield
On 23 February 2011 18:02, Jayasri Sangu wrote: > Does the net-snmp support HTTP interface No. The Net-SNMP package includes an agent, assorted command-line clients and a range of APIs, to allow you to develop your own SNMP applications. We don't attempt to provide full NMS applications - eithe

Re: [PATCH] AGENT: fix no interface statistics available

2011-02-24 Thread Dave Shield
On 24 February 2011 01:33, Robert Story wrote: > On Tue, 08 Feb 2011 09:36:47 -0800 Wes wrote: > WH> Actually, the patch didn't apply cleanly for some reason.  So in the > WH> process of creating a new one I changed it from sizeof(foo)-1 to > WH> strlen(foo) which I think is the "true" way to do i