[AGENT++] tables within tables

Jens Engel Jens.Engel at marconi.com
Wed May 5 16:09:37 CEST 2004


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.

The DUMB answer is: SMI does not (directly) support to put tables into
tables.

BUT:
There are work-arounds how you can model this in SMI.
The solution depends what you actually want to achieve:

1. Extend all rows of an existing table with additional columns.
   SOLUTION: Provide a new table that AUGMENTS the first one.
   EXAMPLE: IF-MIB.ifXTable augments ifTable in the same MIB module.

2. FATE RELATIONSHIP: Each row of a table should be associated w/ N other
rows (and other columns).
   SOLUTION: Use an EXTENSION table that extends the indexing scheme of the
first table.

SEE ALSO:
1. David T. Perkins, "Inter-Table Indexing in SNMP MIBs", 14-june-1998.
   http://www.snmpinfo.com/tables.pdf
   OR: His book "Understanding SNMP MIBS" w/ Evan McGinnis, Prentice-Hall
1997.

2. RFC 3512 - Configuring Networks and Devices with Simple Network
Management Protocol (SNMP)
   http://www.faqs.org/rfcs/rfc3512.html

(3.) Internet-Draft:
   "Referential Integrity Considerations in Management Information Base
(MIB) Design", expires April 2002.
   http://www.ietf.org/internet-drafts/draft-presuhn-referent-00.txt
(PROBABLY: No longer available)


Best regards,
Jens Engel

_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://agentpp.org/mailman/listinfo/agentpp






More information about the AGENTPP mailing list