generating snmp trap

2010-03-24 Thread nathan
could someone tell me how can I generate and send a trap as a result of an extenal triggering event ? Should I write a simple c program to poll for an event and generate/send trap to a manager ? OR I use snmptrap.will an independent program be able to generate trap by all itself ? thanks

Disabled functions

2010-03-24 Thread Magnus Fromreide
Hello. Assume that we have a configure option, --disable-foo, with the effect of setting the symbol NETSNMP_DISABLE_FOO. Further assume that the foo routines are part of snmplib. Which version of disabling is the better one: A) ---foo.h--- extern void foo(); ---foo.c--- #ifdef NETSNMP_DISABLE_

Re: changing behavior of netsnmp_parse_args

2010-03-24 Thread Dave Shield
On 24 March 2010 13:14, Robert Story wrote: > On Wed, 24 Mar 2010 13:54:15 +0100 Jan wrote: > JS> > What is the intended interpretation of these three return values? > JS> > > JS> >    -1  seems to indicate an invalid or unrecognised option value > JS> >    -2  seems to indicate that processing ha

Re: changing behavior of netsnmp_parse_args

2010-03-24 Thread Robert Story
On Wed, 24 Mar 2010 13:54:15 +0100 Jan wrote: JS> > What is the intended interpretation of these three return values? JS> > JS> >-1 seems to indicate an invalid or unrecognised option value JS> >-2 seems to indicate that processing has been completed JS> > JS> > What is the distinctive ci

Re: changing behavior of netsnmp_parse_args

2010-03-24 Thread Jan Safranek
On 03/24/2010 01:50 PM, Dave Shield wrote: > On 24 March 2010 11:10, Jan Safranek wrote: >> In trunk I've made following change to fix a bug: >> >> It adds new negative return value to netsnmp_parse_args and >> snmp_parse_args, which should be handled by callers (=applications). > > What is the in

Re: changing behavior of netsnmp_parse_args

2010-03-24 Thread Dave Shield
On 24 March 2010 11:10, Jan Safranek wrote: > In trunk I've made following change to fix a bug: > > It adds new negative return value to netsnmp_parse_args and > snmp_parse_args, which should be handled by callers (=applications). What is the intended interpretation of these three return values?

Re: changing behavior of netsnmp_parse_args

2010-03-24 Thread Robert Story
On Wed, 24 Mar 2010 12:10:44 +0100 Jan wrote: JS> It adds new negative return value to netsnmp_parse_args and JS> snmp_parse_args, which should be handled by callers (=applications). JS> I've of course changed our applications in apps/ directory. JS> JS> My question is, if it's allowed to put th

Re: Net-SNMP blocking for SET requests

2010-03-24 Thread Robert Story
On Wed, 24 Mar 2010 14:02:52 +0530 (IST) madanagopal wrote: M>I came to know of a problem in Net-SNMP where if there is a SET request M> outstanding in the agent, it will not process any other request (even M> though the new request is a GET request for a different OID). Is the M> problem co

changing behavior of netsnmp_parse_args

2010-03-24 Thread Jan Safranek
In trunk I've made following change to fix a bug: On 03/24/2010 11:47 AM, jsafra...@users.sourceforge.net wrote: > Revision: 18358 >http://net-snmp.svn.sourceforge.net/net-snmp/?rev=18358&view=rev > Author: jsafranek > Date: 2010-03-24 10:47:21 + (Wed, 24 Mar 2010) > > Log Me

Re: CFV: Four new patches (was: Default AgentX target)

2010-03-24 Thread Jan Safranek
On 03/22/2010 04:54 PM, Dave Shield wrote: > 1) Latch disk statistics (disk-latch.patch) +1 both > 2) Missing privKey crash (des-priv.patch) +1 both > 3) VACM best match(vacm-best-match.patch) 0 > 4) MIB dir path logging (mibdir-log.patch) 0 Jan ---

Net-SNMP blocking for SET requests

2010-03-24 Thread madanagopal
Hi, I came to know of a problem in Net-SNMP where if there is a SET request outstanding in the agent, it will not process any other request (even though the new request is a GET request for a different OID). Is the problem correct? Is the problem still there? When is it likely to be solved?

Re: CFV: Default AgentX target

2010-03-24 Thread Dave Shield
On 23 March 2010 19:53, Bart Van Assche wrote: > The patch below changes the AgentX over TCP behavior into: > > snmpd -x tcp: listens to localhost:705 > agentxtrap -x tcp: connects to localhost:705 > > Since the 5.4 branch is currently in release-candidate freeze mode, > this patch has to be voted

Re: need help pls - net-snmp Version: 5.1.2

2010-03-24 Thread Dave Shield
On 23 March 2010 17:12, Guna S wrote: > Our snmp suddenly stopped responding on linux box Is the agent still running? What does ps -ef | grep snmpd report? Is there anything in the logs? What happens if you try to restart the agent? Note that the 5.1.x line is no longer supporte

need help pls - net-snmp Version: 5.1.2

2010-03-24 Thread Guna S
Hi, I need a help from you pls... Our snmp suddenly stopped responding on linux box and when i try to run snmpwalk command on host I'm getting "Timeout: No Response from localhost" message. I just did strace snmpwalk and below is the snipped output. if you can give me any clue that would be helpfu

Re: CFV: Four new patches (was: Default AgentX target)

2010-03-24 Thread Magnus Fromreide
On Mon, 2010-03-22 at 15:54 +, Dave Shield wrote: > On 21 March 2010 08:45, Dave Shield wrote: > > On 20 March 2010 15:13, Robert Story wrote: > >> Dave, have any other issues come up that might warrant a rc2? > > > > I've got a list of three or four possible patches sitting on my desk at >