scalar and tables subagent

2006-03-18 Thread hjubal
Hi,   I have to develop a subagent which implements a MIB with mixed objects: 5 scalars and 3 tables. I've chosen 'mib2c.iterate_access.conf' to generate code for the tables. Is it possible to load multiple subagents with dlmod? Something like:     snmpd -f -L -DmyScalars,myTables,dlmod -c myConf

netSnmpHostsTable*.*

2006-03-13 Thread hjubal
Hi, I'm studying 'netSnmpHoststTable' code located in agent in examples. If the request is GET then it is called 'netSnmpHostsTable_access::netSnmpHostsTable_get_first_data_point' and then 'netSnmpHostsTable_access::netSnmpHostsTable_get_next_data_point'. This builds 'my_loop_context'. Then it wi

mib2c.create-dataset.conf: how to update rows?

2006-03-11 Thread hjubal
Hi, I've created subagent code with "mib2c -c mib2c.create-dataset.conf ...". I'm trying to update values when subagent receives a GET request. By this way I receive updated values only at the next request. I think this is caused by "table_handler" which is called after the subagent has processed a

which mib2c conf

2006-03-10 Thread hjubal
Hi, I have to develop a subagent. I'm not sure which mib2c configuration to choose. My mib contains a table and the index is an INTEGER, plus other fields. Table's entries are read-only but values have to be filled at run-time reading an external file. At first I've used "mib2c.array-user.conf". T