2009/4/5 mwnn <[email protected]>:
> I am working on extending the Net-SNMP agent. I have the following
> situation:
>
> 1. Base table whose ROWSTATUS column is READ-CREATE.
> 2. Dependent table which has the same index as the base table.
>
> In the above scenario, when a row is deleted in the base table the
> corresponding row in the dependent table also has to be deleted. Do we
> have an existing (in Net-SNMP) MIB module implementation that has the
> same characteristics as described above.

The closest example that springs to mind would be the
hrSWRunTable/hrSWRunPerfTable.
There are also other similar situations in the DisMan Event MIB.

The basic trick here is to use a common data structure for the two
combined field entries. with a single table mechanism used to hold
the two tables.
  That way, whenever you add/remove an entry from the "main" table,
this is automatically reflected in the subsidiary table.

Dave

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to