Re: Net-snmp-coders digest, Vol 1 #2657 - 6 msgs

2005-07-22 Thread Thorsten Freimann
Hi Torben, try: for(row=table_set->table->first_row; row; row = row->next) netsnmp_table_dataset_remove_and_delete_row(table_set, row); Thorsten > --__--__-- > > Message: 4 > From: "Torben Surmer" <[EMAIL PROTECTED]> > To: net-snmp-coders@lists.sourceforge.net > Subject: deleting table rows >

Re: deleting table rows

2005-07-22 Thread Thorsten Freimann
Hi Torben, try: for(row=table_set->table->first_row; row; row = row->next) netsnmp_table_dataset_remove_and_delete_row(table_set, row); Thorsten > --__--__-- > > Message: 4 > From: "Torben Surmer" <[EMAIL PROTECTED]> > To: net-snmp-coders@lists.sourceforge.net > Subject

Application prints a lot of output

2005-06-14 Thread Thorsten Freimann
Hi to all, I coded a little application (sendtrap) to send snmp traps using snmp_send() function (similar to snmptrap). The only difference is, that sendtrap takes less options and gets the trapsinks from the snmpd.conf. I compile it with: >> gcc -o sendtrap sendtrap.c -lnetsnmp -lcrypto -lks

Re Re: Application: how to read the snmpd.conf

2005-06-11 Thread Thorsten Freimann
Hi! you art right! It works fine! Thank you. The problem was, that the user (me) who was running have no access right to the snmpd.conf and so I see nothing, with root-rights everything ok. Thanks Thorsten >>On Fri, 2005-06-10 at 11:58, Thorsten Freimann wrote: >> > this is

Re Re: Application: how to read the snmpd.conf

2005-06-10 Thread Thorsten Freimann
hing" function will be called three or four time, but it was not called at all! Am I doing the right things? Thank you for help! >>On Thu, 2005-06-09 at 11:55, Thorsten Freimann wrote: > I want to write a simple application to send traps (similar to the > snmptrap app from

Application: how to read the snmpd.conf

2005-06-09 Thread Thorsten Freimann
I want to write a simple application to send traps (similar to the snmptrap app from net-snmp). The idea is, that the application takes all trapsinks from the snmpd.conf file and send the trap to all defined trapsinks. Is there another (easier) way than to call get_configuration_directory() to