Re: Tutorial on writing MIBs

2006-09-06 Thread Leo Lei
Sebastian Bello£º >does anybody know of a tutorial for writing MIBS? SMIv2 rfc2578, looking at some standard MIBs >3- what are groups for? conformance statement rfc2580 = = = = = = = = = = = = = = = = = = = = Leo Lei 2006-09-07 ---

about set-processing

2006-09-06 Thread Leo Lei
hi, are there any explaination about what each state means in the set-processing state diagram? thx. -- Leo Lei 2006-09-07 - Using Tomcat but need to do more? Ne

some problems in get_next

2006-09-06 Thread Jordan
Hi,   I suffered from a problem. As I put the " Select Instance "button in the MIB browser, it will do nothing. But as I put "Prompt For Instance", that I could key in anyone I want, it can work well.  In the code, the function, XXX_next_data_point, has been called 5 times repeatedly. And it 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: error: C compiler cannot create executables

2006-09-06 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > I would install net-snmp v5.3.0.1. on hp-ux 11.00. > I have installed the gcc-4.1.1-hppa-11.11 compiler on my hpux machine. [...] > checking for C compiler default output file name... configure: error: C > compiler cannot create executables You likely have a broken gcc

error: C compiler cannot create executables

2006-09-06 Thread [EMAIL PROTECTED]
Hi, I would install net-snmp v5.3.0.1. on hp-ux 11.00. I have installed the gcc-4.1.1-hppa-11.11 compiler on my hpux machine. I run configure with this options: ../configure --with-libs=-lnm --with-cc=gcc but i have the follow error: CmtSrv_cmt3_$ ./configure --with-libs=-lnm --with-cc=gcc che

RE: monitoring freeradius with net-snmp SOLVED

2006-09-06 Thread Andy Ford
Title: RE: monitoring freeradius with net-snmp SOLVED Thanks to everyone for pointing me in the right direction for this. At sourceforge (url below), a patch has been supplied (currently untested by net-snmp developers AFAIK) to smux.c (net-snmp source) which fixes an authentication issue be

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
OK dave and thanks a lot for all the time you spend for me. I have a closer look to the function netsnmp_table_data_set_helper_handler and try to debug it as it seems that my creation/resgistration now works fine. If somebody has a brilliant idea about this problem, he's welcome! Arnaud. >Fro

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Dave Shield
On 06/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > I follow your advice and do a walk on nsModuletable. So, With net-snmp > v5.3.1, I launch twice the same application, and I get the following result > with an snmpwalk on nsModuleTable: [snip] I haven't the time to follow your travails

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
I follow your advice and do a walk on nsModuletable. So, With net-snmp v5.3.1, I launch twice the same application, and I get the following result with an snmpwalk on nsModuleTable: NET-SNMP-AGENT-MIB::nsModuleName."".12.1.3.6.1.4.1.9.1.1.1.1.1.127 = STRING: AgentX subagent 10, session

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
I have changed the parameters of registration with net-snmp 5.3.1, and now I don't get anymore the error message 'registering pdu failed: 263!'. Moreover, with the trace activated around the function netsnmp_register_table_data_set, I get the correct informations. The problem is that my rows a

AgentX development on Windows

2006-09-06 Thread Jaya Joseph -X (jajosep - Infosys at Cisco)
Hi All,  I am trying to create the subagent using the AgentX architecture of Net-SNMP. I am able to create the stub files using the mib2c command, however while going through the code and later compiling I see a whole lot of errors.   I see that most of the .h files included in the stubs

RE: monitoring freeradius with net-snmp and smux

2006-09-06 Thread Andy Ford
Title: RE: monitoring freeradius with net-snmp and smux Thanks Thomas I modified smux.c with the suggestions at the end of the sourceforge listing and I have it up and running. You've been very helpful - thanks again. Best Regards Andy -Original Message- From: Thomas Anders [mail

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
OK, so now I've tested the same sample with net-snmp 5.0.11, and activate the debug trace around the call to netsnmp_register_table_data_set. With net-snmp 5.0.11, the first application is launched succesfully with the following extract of the trace: trace: agent_handler.c, 183 handler::registe

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
I have activated debug traces in my subagent and I have the following stack when I register a region of my table: App1.conf: line 3: Warning: Unknown token: rocommunity. NET-SNMP version 5.3.1 AgentX subagent connected trace: agent_handler.c, 342: handler:inject: injecting netsnmp_table_data_set

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
Hi everybody, I finally resolve my problem of error message... I removed the call to init_mib_modules, which certainly registers my table. Now, when I try to register my whole table, it works fine with net-snmp v5.3.1 (an snmpwalk gives me the same result as with snmp v5.0.11) But if I try to

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
Concerning the problem of index, I resolved it; indeed, the registering of the subagent with the master agent is done later so I have to call my initialization function of my table after the call to init_snmp So, to resume (for people who could face the same problem): With net-snmp 5.0.11: int