I'm trying to implement qBridgeMIB and I'm a little stuck on doing it 
efficiently and elegantly.  Clearly, dot1qFdbTable and dot1qTpFdbTable are 
related.  If I have a dot1qFdbTable like:

    ID     Count
    1      2
    2      3

Then I'd expect to see dot1qTpFdbTable like:

    ID     Addr   Port   Status
    1      mac1   1      something
    1      mac2   2      something
    2      mac2   2      something
    2      mac3   5      something
    2      mac4   3      something

(Yes, I know ID isn't really part of dot1dTpFdbEntry.)

That is, FdbTable is kind of a summary of TpFdbTable.  If it was SQL, I'd get 
FdbTable like:

    select id, count(addr) from Tp group by id;

(or something like that).

In my system, I have to get external data to populate TpFdbTable and since 
FdbTable is earlier numerically, it'll get walked first so if I have a cache of 
TpFdbTable data, it'll be empty (or possibly quite stale) when I hit FdbTable.  

The simple, brute force implementation would be to populate the cache when I 
hit the first record of FdbTable but that's a sloooooooow operation.  Has 
anyone else implemented this MIB based on external data?  Any insight would be 
appreciated.  Thanks.

                            Chris



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to