On tor, 2007-12-06 at 17:05 +0100, [EMAIL PROTECTED] wrote:
> Hi,
> I am a novice in net-snmp.
> I have a problem in a table with the following attributes:
> ifIndex: foreign key (ifTable)
> MacAddress: primary key.
> other attributes...
> I have generated the source code with mib2c command in MFD mode.
> I have tryed to put the table data in a two dimensional array in the table 
> module.
> 
> If I want to view the following table with the table or walk command 
> (I use MIB browser graphical tool), everything works fine:
> 
> ifIndex | MacAddress | Attr1 | ... other attributes ...
>  1          000000      1       ...........
>  2          000001      2       ...........
>  3          000000      3       ...........
>  4          000001      4       ...........
>  5          000000      5       ...........
>  6          000001      6       ...........
> 
> If the table is, instead, this:
> 
> ifIndex | MacAddress | Attr1 | ... other attributes ...
>  1          000000      1      ...........
>  1          000001      2      ...........
>  2          000000      3      ...........
>  2          000001      4      ...........
>  3          000000      5      ...........
>  3          000001      6      ...........
> 
> and I use the walk command, I get a never ending cycle with the following 
> data:
> 
> ifIndex | MacAddress | Attr1 | ... other attributes ...
>  1          000000      1
>  1          000001      2
>  1          000001      2
>  1          000001      2
>  1          000001      2
> ......
> 
> If I use the table command, no data are shown and I get anew a never ending 
> cycle.
> It seems that the correct behaviour depends on the data order in ifIndex.
> Have you any suggestions ?

It looks as if your table is indexed on just ifIndex. Could you please
make sure that the macaddress is part of the index clause for your table
and that the generated code know this.


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to