Re: MIB with undefined number of fields

2008-12-10 Thread Raúl Mellado
Thanks for your quick help, Wes! As to the MIB, it's clear. Referring the 2nd question, I would like to ask if there are any examples of recovering "dynamic" variables. So far, I'm basing my sub-agent in the net-snmp sub-agent example, but in its mib there is just a simple Integer n

Re: MIB with undefined number of fields

2008-12-10 Thread Wes Hardaker
> On Wed, 10 Dec 2008 12:53:15 +, "Raúl Mellado" <[EMAIL PROTECTED]> > said: RM> x.1 //struct_b RM> x.1.1 // 1st struct_a RM> x.1.1.1 // 1st field of 1struct_a RM> x.1.1.2 // 2nd field of 1struct_a RM> x.1.2 // 2nd struct_a RM> x.1.2.1 // 1st field of 2struct_a RM> x.1.2.2 // 2nd fiel

MIB with undefined number of fields

2008-12-10 Thread Raúl Mellado
Hello, I have several C structures stored in my server, something like this: typedef struct { blablabla; } struct_a; typedef struct { blablabla; struct_a* struct_list; (an array of struct_a) } struct_b; What I would like is to recover all struct_b from a GET request, th