Subagent crashes when retrieving data from a table with two indexes

2011-05-11 Thread Alec Edgington
Hi, I am running net-snmp 5.5 as a daemon with a subagent I've written using mib2c (using the MFD framework for the tables). An snmpwalk works fine until it gets to a table which has two numerical (Integer32) indices. At which point it executes the code to fetch the data, and then abruptly

caches with timeouts below a second

2011-03-31 Thread Alec Edgington
I'm using mib2c to create a net-snmp subagent that uses caches, and I would like some of them to have timeouts of less than a second. Will I have to make changes in the SNMP library code to do this, or is there an easier way? (I notice there's a function snmp_alarm_register_hr that seems to be

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-03-07 Thread Alec Edgington
My code is running as a subagent(openhpi-subagent). When I am running the subagent , I can see only the messages of snmp_log(...). Please let me know if there is any means so that I can observe the DEBUGMSGTL messages of the subagent code. I think you get to see these messages if you start

Sharing a cache between different OIDs

2011-03-02 Thread Alec Edgington
Hello, I am trying to implement a subagent, making as much use as I can of mib2c (and so far I've been trying to use the MFD framework). The problem is that my MIB consists of groups of tables and scalars which I want to share a small number of underlying caches. The MFD framework makes it easy

Difficulties with mib2c and MFD

2011-02-18 Thread Alec Edgington
Hello. I would appreciate some help getting started with building a subagent using mib2c and MFD. I'm trying to build a simple example to handle a table. (I did a scalar first, and that seemed worked fine, so this is the next step...) I have net-snmp version 5.5. I do: mib2c -c

RE: Difficulties with mib2c and MFD

2011-02-18 Thread Alec Edgington
I have little or no expertise with the MfD framework, but there is one glaring error in your example: snmpget -v1 -c public localhost nsIETFWGChair1 A GET request must always include the instance subidentifiers (i.e. the index to the table). A GET request on the bare MIB object name