Re: Table iterator

2006-09-17 Thread Sebastian Bello
So do the queries get serialized (one serviced at a time)? Dave Shield escribió: On 13/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: Yet another question: does the iterator code get executed in multiple threads, that is, do I have to take care about mutual exclusion

Re: Table iterator

2006-09-13 Thread Sebastian Bello
Yet another question: does the iterator code get executed in multiple threads, that is, do I have to take care about mutual exclusion while accessing data structures for example?     Sebastian- Sebastian Bello escribió: Sorry, I apologize to all, my fault! A bug in my code! :( Thanks for

Re: Extending the agent with C++

2006-09-13 Thread Sebastian Bello
ther header files written in C }; ... // Class declarations Regards, Chino On 9/11/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: Hi all, how do I extend the agent with a .so using C++? I tried using the following changes in addition to compiling with g++: extern

Re: Tutorial on writing MIBs

2006-09-13 Thread Sebastian Bello
Aha, thanks Dave.     Sebastian- Dave Shield escribió: On 11/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: does it make sense to have a single machine concentrating the information of all of them? Yes - particularly if the various systems are presented

Re: Tutorial on writing MIBs

2006-09-11 Thread Sebastian Bello
ebastian- Sebastian Bello escribió: > Thanks to all! > > Dave Shield escribió: >> On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: >>> 2- ok, so I just should choose a version? >> >> If you are writing a MIB, you should use SMIv2 (i.e. NOTIFICATION

Re: Table iterator

2006-09-11 Thread Sebastian Bello
Sorry, I apologize to all, my fault! A bug in my code! :( Thanks for the assistance!     Sebastian- Dave Shield escribió: On 11/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: Returning NULL isn't working for me; even the following code crashes snmpd (it shoul

Re: Table iterator

2006-09-11 Thread Sebastian Bello
index_data,   netsnmp_iterator_info *mydata) {         return NULL; } Sebastian- Dave Shield escribió: On 11/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote:  In the "End of table" code portion, how should the function return

Extending the agent with C++

2006-09-11 Thread Sebastian Bello
Hi all, how do I extend the agent with a .so using C++? I tried using the following changes in addition to compiling with g++: extern "C" { void init_mo(void); void initialize_table_moTable(void); Netsnmp_Node_Handler moTable_handler; Netsnmp_First_Data_Point  moTable_get_first_data_point;

Re: Table iterator

2006-09-11 Thread Sebastian Bello
Index, sizeof(entry->moIndex));         vptr = vptr->next_variable;       return put_index_data; } In the "End of table" code portion, how should the function return(the iterator should end, no more entries are available)? My .so is crashing snmpd... Thanks,     Sebastian- Sebast

Re: Tutorial on writing MIBs

2006-09-08 Thread Sebastian Bello
Thanks to all! Dave Shield escribió: > On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: >> 2- ok, so I just should choose a version? > > If you are writing a MIB, you should use SMIv2 (i.e. NOTIFICATION-TYPE). > There is no reason for using SMIv1 any more, unles

Re: Table iterator

2006-09-08 Thread Sebastian Bello
Thanks Dave! Dave Shield escribió: > On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: >> 1- the data from the MIB table will be collected periodically from other >> processes, and be probably cached for some time; is table_iterator the >> right choice? > >

Re: Table iterator

2006-09-08 Thread Sebastian Bello
Any hint on this? Sebastian Bello escribió: > Hi all, > > I'm trying to implement a table using mib2c with 'mib2c.iterate.conf'. > I read the doc from 'table_iterator.c' but still have some questions: > > 1- the data from the MIB table will be collecte

Re: Tutorial on writing MIBs

2006-09-07 Thread Sebastian Bello
and mib2 and query mach2 for mib1 and mib3, is this a good approach? Subrahmanya Hegde escribió: Please refer my comments inline   Subra Sebastian Bello <[EMAIL PROTECTED]> wrote: Hi, does anybody know of a tutorial for writing MIBS? I'm looking for some doc to a

Extending the agent

2006-09-06 Thread Sebastian Bello
Hi, I have an application which is composed of some binaries running on different machines. These binaries generate the information to be reported through SNMP, for example number of messages sent. Some questions: 1- I'm thinking of extending the agent with a .so, is this the right approach? 2-

Table iterator

2006-09-06 Thread Sebastian Bello
Hi all, I'm trying to implement a table using mib2c with 'mib2c.iterate.conf'. I read the doc from 'table_iterator.c' but still have some questions: 1- the data from the MIB table will be collected periodically from other processes, and be probably cached for some time; is table_iterator the ri

Tutorial on writing MIBs

2006-09-06 Thread Sebastian Bello
Hi, does anybody know of a tutorial for writing MIBS? I'm looking for some doc to answer these questions: 1- can I have TRAPs and NOTIFICATIONs in the same MIB? 2- if I don't know whether an NMS will support both, which version should my application send? 3- what are groups for? 4- I have some bi

Re: Compiling a MIB

2006-09-01 Thread Sebastian Bello
Thanks Thomas. Where can I get the RPMs for a RHEL 4?     Sebastian- Thomas Anders escribió: Sebastian Bello wrote: I'm writing a MIB which contains some variables and traps. What would be an easy way to "compile" it, i.e. to perform a primary synt

Compiling a MIB

2006-08-31 Thread Sebastian Bello
List, I'm writing a MIB which contains some variables and traps. What would be an easy way to "compile" it, i.e. to perform a primary syntax verification? snmptranslate? Any other tool? Thanks, Sebastian- - Using Tomcat b

Re: How to send a v1 trap (newbie)

2006-08-30 Thread Sebastian Bello
Thanks Dave! Dave Shield escribió: > On 28/08/06, Sebastian Bello <[EMAIL PROTECTED]> wrote: >> I have used the code in snmptrap to send a trap, but >> >> 1- it doesn't use send_trap_vars nor send_easy_trap (just init_snmp, >> snmp_open, snmp_pdu_create, s

Re: How to send a v1 trap (newbie)

2006-08-29 Thread Sebastian Bello
ed to send the traps, is this right? Thanks, Sebastian- Sebastian Bello escribió: > Hi list, > > I want to send v1 traps from my C/C++ application using Net-SNMP. I've > been reading the documentation but am a bit confused. Maybe someone can > give me some hint: >

How to send a v1 trap (newbie)

2006-08-23 Thread Sebastian Bello
Hi list, I want to send v1 traps from my C/C++ application using Net-SNMP. I've been reading the documentation but am a bit confused. Maybe someone can give me some hint: - where can I find a simple code example on how to send a trap? - do I need the full Net-SNMP installed? - do I need to creat