Re: mib structure subtable problem

Joel Hansell <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Norman,

Please don't put a table within a table. I'm pretty sure it's not a
legal MIB construct, and it would certainly break a lot of things.

Consider whether you can accomplish the same data association by using
two separate tables, one having one index:

moduleTable
  -moduleTableEntry
      -moduleTableID (index INTEGER)
      -info (DisplayString)
      -subModuleCount (COUNTER)
      -etc...

... and the other table having two indices, whereof the first is an
external index, the same as in the first table, and the second is some
sub-module index:

subModuleTable
  -subModuleEntry
     -moduleTableID (external index)
     -subModulID (index INTEGER)
     -sub module information vars...

Also consider using the Counter or Counter64 types for your counter values.

Best regards,
Joel Hansell

On Mon, Dec 20, 2010 at 4:27 PM,  <[email protected]> wrote:
> Hallo,
>
> i try to build my first complex mib structure with net-snmp. The mib structure contains more then one dynamic tables. I use a table
> like the bottom table.
>
> static oid moduleTable_oid[] = {1,3,6,1,4,1,26000,25,3,3};
>
> 26000.25.3.3                           moduleTable (table)
> 26000.25.3.3.modID                     modulEntryID (keyIndex INTEGER)
> 26000.25.3.3.modID.1.0                 info (DisplayString)
> 26000.25.3.3.modID.2.1.0               modIndex (INTEGER)
> 26000.25.3.3.modID.2.2.0               ....
> 26000.25.3.3.modID.2.3.0               ....
> 26000.25.3.3.modID.2.7.1.0             subModulCount (INTEGER)
> 26000.25.3.3.modID.2.7.2.subModID      ....
> 26000.25.3.3.modID.2.7.3               subModulTable (table)
> 26000.25.3.3.modID.2.7.3.subModID.1.0  subModulID (index INTEGER)
> 26000.25.3.3.modID.2.7.3.subModID.2.0
> 26000.25.3.3.modID.2.7.3.subModID.3.0Raedke
>
> 26000.25.3.3.modID.2.7.3.subModID.4.0
> 26000.25.3.3.modID.2.7.3.subModID.5.0
> 26000.25.3.3.modID.2.7.3.subModID.6.1.0
>
> Foer example, if i have to devices with four channels i have to create two tables with four sub tables for each device. I'm not shure if it possible tor realize the obove structure.
>
> How can i deal with this the e.g '26000.25.3.3.modID.2.1.0'.
> It is possible to handle sub object id's within a table like the number 2.
>
> I hobe somebody can help me.
>
> Norman Raedke
>
>
>
>
>
>
> --
> GRATIS! Movie-FLAT mit über 300 Videos.
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.