Re: making binary of helper_complex.c for testing

2011-12-29 Thread Ravi Kumar
can any one help me on this ? thanks... On Wed, Dec 28, 2011 at 2:37 PM, Ravi Kumar wrote: > Hi, > > I want to compile *helper_complex.c * with gcc and make binary of it. > I know this file has main function and can run independently for testing. > Can any one let me know how can i do

RE: agentx master agent not responding after an agentx subagent SET timeout

2011-12-29 Thread Renjith R. V.
Bill, I couldn't see the issue that I have reported in the latest version NetSNMP [v 5.7.1]. On first look into snmpd v 5.7.1 debug log, I could see changes happening in the suspected area. Change noticed in v5.7.1 debug log compared to v5.6.pre3: The delegated session after SET_UNDO is proc

Re: Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
> But what is the exact code that you are using to register the OID? > This is the code I'm using http://pastebin.com/fRvv0CFX The only change I've made from the sample is add a handler which prints out the last part of the OID using DEBUGMSGTL

Re: Reading OID sent using snmpget

2011-12-29 Thread Dave Shield
On 29 December 2011 15:23, Mandar Joshi wrote: >>> I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module. >> >> How?   What is the code that you have used to register this OID? > > I am using the sample code from data_set.c But what is the exact code that you are using to reg

Re: Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
>> I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module. > > How? What is the code that you have used to register this OID? I am using the sample code from data_set.c > The point of the MIB helpers is to take care of parsing the OIDs, > extracting the index value(s), and p

Re: agentx master agent not responding after an agentx subagent SET timeout

2011-12-29 Thread Bill Fenner
Renjith, Could it be easy as adding something like if (asp == netsmp_processing_set) { DEBUGMSGTL(("snmp_agent", "SET request abandoned, asp = %8p\n", asp)); netsnmp_processing_set = NULL; } to free_agent_snmp_session()? It only rarely happens for me in my test environme

Re: Reading OID sent using snmpget

2011-12-29 Thread Dave Shield
On 29 December 2011 09:57, Mandar Joshi wrote: > I'm writing a MIB module. > I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module. How? What is the code that you have used to register this OID? > Is it possible for this module to receive all OIDs begining with > "{ 1, 3,

Reading OID sent using snmpget

2011-12-29 Thread Mandar Joshi
I'm writing a MIB module. I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module. Is it possible for this module to receive all OIDs begining with "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" Eg .1.3.6.1.4.1.8072.2.2.1. or .1.3.6.1.4.1.8072.2.2.1.1234 If I execute the command sn