Re: Complex tables

2005-05-23 Thread Fabio Margarido
, Dave Shield <[EMAIL PROTECTED]> wrote: > On Fri, 2005-05-20 at 18:37, Fabio Margarido wrote: > > Just an update, I ran mib2c on a multi-indexed table for testing > > purposes and guess my guesses were right... :-) > > They certainly looked correct to me. >

Re: Complex tables

2005-05-20 Thread Fabio Margarido
. hope it works then. :-) But if mib2c automatically generates the netsnmp_table_helper_add_indexes call with all the indices, I don't see what I have to modify in this part. Thanks Fabio On 5/20/05, Fabio Margarido <[EMAIL PROTECTED]> wrote: > Ok, thanks for the pointers. I get t

Re: Complex tables

2005-05-20 Thread Fabio Margarido
able; return put_index_data; ?? Abou the registration part, will mib2c generate the 'netsnmp_table_helper_add_indexes' call with the correct parameter count or will it take only one and I have to insert the other(s) by hand? Thanks again. Fabio On 5/20/05, Dave Shield <[EMAIL

Complex tables

2005-05-20 Thread Fabio Margarido
Hi there everyone, We've recently had the need to change our private MIB and extend it with a table with two indices. But now we're having some problems with how to implement the get and getnext requests, i. e., how to walk through that table. Simply put: how should we modify the stubs generated b

Re: Complex tables

2005-05-20 Thread Fabio Margarido
, but has been superceded by the handler-based > mechanism. Is there a more up to date documentation available? If not, please help me guys cause I'm really lost here... :-) Thanks. Fabio On 5/20/05, Dave Shield <[EMAIL PROTECTED]> wrote: > On Fri, 2005-05-20 at 14:33, Fabio M

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
Ok, tried deleting .index from /usr/local/share/snmp/mibs and it didn't change anything. When I run that command you said, I get the following: snmptranslate -IR -Dread_config: sysContact read_config:initmib: using mibdirs: /usr/local/share/snmp/mibs read_config:initmib: using mibs: +VIA-PE-MIB re

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
> Is VIA-PE-MIB you're mib?or is it referenced by your mib? Yeah, VIA-PE-MIB is my MIB. On 4/25/05, Wes Hardaker <[EMAIL PROTECTED]> wrote: > >>>>> On Mon, 25 Apr 2005 09:17:52 -0300, Fabio Margarido <[EMAIL PROTECTED]> > >>>>> said:

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
E-MIB read_config:initmib: using mibs: +VIA-PE-MIB:VIA-PE-MIB SNMPv2-MIB::sysContact Wasn't /home/fabio/.snmp/mibs supposed to be in there too? Thanks On 4/25/05, Fabio Margarido <[EMAIL PROTECTED]> wrote: > > Is VIA-PE-MIB you're mib?or is it referenced by your mib? >

Re: Question about locations for mib loading

2005-04-25 Thread Fabio Margarido
Ok, let me explain in detail the problem I am experiencing: I deleted my MIB file from the /usr/local/share/snmp/mibs/ and put it on $HOME/.snmp/mibs/. Then I added my MIB to the MIBS variable so that mib2c could find it, as well as the default mibs, with the command: $> export MIBS=+MY-MIB As fa

Re: Question about locations for mib loading

2005-04-21 Thread Fabio Margarido
already put the home mib dir. Thanks On 4/21/05, Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-04-20 at 20:32, Fabio Margarido wrote: > > > I've set MIBDIRS and it worked... only problem is that I still have to > > put the default mib dir in the path caus

Re: Question about locations for mib loading

2005-04-20 Thread Fabio Margarido
aker <[EMAIL PROTECTED]> wrote: > >>>>> On Wed, 20 Apr 2005 16:05:29 -0300, Fabio Margarido <[EMAIL PROTECTED]> > >>>>> said: > > Fabio> Thanks for the explanation. But I still don't get how it has to > Fabio> be done. The documentation on

Question about locations for mib loading

2005-04-20 Thread Fabio Margarido
Hey there, I'm developing a tool that automatically inserts the custom code from my company's applications into the stubs generated by net-snmp. This tool has to be really generic, so that it runs on any machine, regardless of the path where net-snmp was installed. When I'm parsing a private MIB,

Re: Net-SNMP 5.1.2 core dumping

2005-04-13 Thread Fabio Margarido
Hey there, thanks for the response. I can't reproduce the fail right now to get the backtrace and send ito to you, cause there's only two machines available and they're currenlty being used for testing, so maybe tomorrow I can do it. Then I'll post it here. About the other question, the traps are

Net-SNMP 5.1.2 core dumping

2005-04-13 Thread Fabio Margarido
Hey there everyone, I'm new to this mailing list, and quicly browsed the archives to see if I could find someone with a similar issue. Couldn't find anyone, so sorry If this has been addressed already. We're currently using Net-SNMP 5.1.2 in an embedded system, and snmpd is showing strange behaviou

Net-SNMP 5.1.2 core dumping

2005-04-11 Thread Fabio Margarido
Hey there everyone, I'm new to this mailing list, and quicly browsed the archives to see if I could find someone with a similar issue. Couldn't find anyone, so sorry If this has been addressed already. We're currently using Net-SNMP 5.1.2 in an embedded system, and snmpd is showing strange behaviou