--> FastJack has joined #net-snmp
--> [juzam] has joined #net-snmp
--> tris_ has joined #net-snmp
--> wes has joined #net-snmp
[2004/04/22 06:53:50] #net-snmp <[juzam]> I need to use the strange table design I was talking about yesterday (removing correct rows from mib after inserting into database). At least for now.
[2004/04/22 06:54:45] #net-snmp <[juzam]> I finally managed to set the error code in the relevant row (in SET_ACTION) - but now I need to delete the element
[2004/04/22 06:55:32] #net-snmp <[juzam]> I put the following lines in MODE_SET_COMMIT when the identifier is found
[2004/04/22 06:55:39] #net-snmp <[juzam]> featured MIME library written in C++.
[2004/04/22 06:55:39] #net-snmp <[juzam]> cutee C++ Unit Testing Easy Environment.
[2004/04/22 06:55:39] #net-snmp <[juzam]> eeprog a Linux tool to read and write 24Cxx EEPROMs on SMBus bus.
[2004/04/22 06:55:39] #net-snmp <[juzam]> recover an utility that lets you recover JPEGs from partially readable discs (and digital cameras memory cards).
[2004/04/22 06:55:59] #net-snmp <[juzam]> woops sorry!
[2004/04/22 06:57:13] #net-snmp <[juzam]> row = netsnmp_extract_table_row_data(request);
[2004/04/22 06:57:15] #net-snmp <[juzam]> netsnmp_table_dataset_delete_row(row);
[2004/04/22 06:57:32] #net-snmp <[juzam]> and the agent crashes
[2004/04/22 07:03:17] #net-snmp <[juzam]> sorry, I'm a bit stressed cause I've only been using net-snmp for a few weeks and I'm expected to do all this stuff
[2004/04/22 07:03:40] #net-snmp <[juzam]> :D
--> miike has joined #net-snmp
[2004/04/22 07:24:22] #net-snmp <[juzam]> I also tried: netsnmp_table_dataset_remove_and_delete_row(datatable, row);
--> johanburet has joined #net-snmp
[2004/04/22 07:29:10] #net-snmp <rstory> a better solution would probably be to register an alarm or callback to delete the row after the request has completed.
[2004/04/22 07:30:20] #net-snmp <johanburet> Hello, I've run into a strange problem with net-snmp, looks like an integer overflow.
[2004/04/22 07:30:53] #net-snmp <[juzam]> rstory: sounds good but how can I keep track of the row which contains the error?
[2004/04/22 07:32:05] #net-snmp <rstory> when you regiser an alarm, you can pass a pointer that will be passed back to the callback.
[2004/04/22 07:32:20] #net-snmp <[juzam]> rstory: what's a good example to look at in the source?
[2004/04/22 07:33:29] #net-snmp <[juzam]> to register after the request has completed...
[2004/04/22 07:34:33] #net-snmp <rstory> you would register the alarm in the commit phase
[2004/04/22 07:34:56] #net-snmp <rstory> examples with alarms:
[2004/04/22 07:34:56] #net-snmp <rstory> /home/rstory/net-snmp/5.1.x/agent/mibgroup/examples/delayed_instance.c
[2004/04/22 07:34:56] #net-snmp <rstory> /home/rstory/net-snmp/5.1.x/agent/mibgroup/examples/notification.c
[2004/04/22 07:35:28] #net-snmp <[juzam]> but to tell the alarm to run at after the request?
[2004/04/22 07:36:19] #net-snmp <rstory> just set the time for 1 second (0 might work too).. it can't run until the request finishes.
[2004/04/22 07:36:45] #net-snmp <[juzam]> ah ok
[2004/04/22 07:37:23] #net-snmp <[juzam]> wouldn't a callback be simpler?
[2004/04/22 07:40:56] #net-snmp <johanburet> I've got a strange error: the net-snmp "memory" subtree doesn't report the same info as /proc/mem on a big system.
[2004/04/22 07:44:29] #net-snmp <johanburet> My bad, using an old version of net-snmp. Sorry^^
[2004/04/22 07:44:40] #net-snmp <rstory> [juzam]: sure, if you can find one that's called when a request is finished. I'm not sure there is one.
[2004/04/22 07:45:39] #net-snmp <rstory> actually, you could hack it by creating datalist to put in the agent request info, with a free routine that would delete the row. that might work.
[2004/04/22 07:52:53] #net-snmp <[juzam]> rstory: hmmm yeah I think a trap is probably a bit of an overhead...
[2004/04/22 08:07:31] #net-snmp <rstory> gotta run, back in an hour or so
--> miike has joined #net-snmp
--> konrad_ has joined #net-snmp
[2004/04/22 10:03:01] #net-snmp <[juzam]> rstory|away: hmm not sure how you would define the free routine in the subhandler
[2004/04/22 10:05:10] #net-snmp <[juzam]> rstory|away: see you maybe tomorrow!
[2004/04/22 10:12:19] #net-snmp <wes> rstory: you back?
--> Kraig has joined #net-snmp
--> wes has joined #net-snmp
--> nixman has joined #net-snmp
[2004/04/22 13:51:27] #net-snmp <nixman> where can i find info on removing all mib modules support from the agent ?
[2004/04/22 14:04:48] #net-snmp <nixman> i should mention iam on windows
--> redstar has joined #net-snmp
--> konrad has joined #net-snmp
[2004/04/22 15:06:40] #net-snmp <rstory> nixman: you have to leave a few in (for example, vacm is needed for access control).
[2004/04/22 15:07:49] #net-snmp <rstory> your best bet is to ask on the coders list.. amazingly enough, we've got the active windows developers these days.
--> miike has joined #net-snmp
--> Haxim has joined #net-snmp