[AGENT++] tables within tables
Frank Fock
fock at agentpp.com
Wed May 5 21:43:19 CEST 2004
Marcos,
As Henning pointed out, there "tables within tables" cannot be
represented directly with SMI (and thus with MIB specifications).
You will have to use 2 tables where the second table shares the
index of the first and extends it by its own (additional) index.
The concepts are explained in Understanding SNMP MIBs. For
a more detailed explaination you can also read the tables.pdf
document from http://www.snmpinfo.com (David Perkins site).
Best regards,
Frank
Marcos Cacabelos Prol wrote:
>In chapter 9 of Understanding snmp mibs, the authors try to represent the following C struc in a mib:
> struct{
> int i;
> int ai[20];
> }t1[40];
>
>The SMI is very large to reproduce here.
>I'm trying to write code to represent similar structures.
>
>Marcos
>
>-----Original Message-----
>From: Henning Eggers [mailto:henning.eggers at plath.de]
>Sent: miércoles 5 de mayo de 2004 13:19
>To: Marcos Cacabelos Prol; agentpp at agentpp.org
>Subject: Re: [AGENT++] tables within tables
>
>
>Am Mittwoch, 5. Mai 2004 10:57 schrieb Marcos Cacabelos Prol:
>
>
>> /* pseudocode */
>> MibTable a;
>> MibTable b;
>>
>> a.add_col(b);
>>
>>How I can write this code?
>>Thanks in advance.
>>
>>
>
>What does the SMI code look like that is supposed to describe this structure?
>I have never heard of tables within tables...
>
>Greetings,
>Henning
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>
>
>
More information about the AGENTPP
mailing list