[AGENT++] AgentX++ Shared Table

Frank Fock fock at agentpp.com
Tue Nov 22 02:20:29 CET 2005


Hi John,

Please find my answers below:

Balun, John wrote:

>Trying to implement a shared table in a AgentX++ subagent for MIB-II
>ifTable. Using the AgentX++
>
>master agent sample (not the Win32 master agent). Ran 2 separate
>instances of the same subagent
>
>and ran into duplicate group registration error on the second subagent.
>The only way that I could find
>
>to resolve this was to change the OID passed to the MibGroup
>constructor. Is this an acceptable
>
>solution to the problem and if so how do I guarantee that the OID I
>chose does not conflict with another
>
>subagent trying to implement the same shared table.
>
> 
>  
>
Shared tables should not be added to MibGroup when another sub-agent is
serving that group already. In that case do not add the shared table to any
MibGroup but register it directly.

>Can you provide any additional information to the AgentXSharedTable
>constructor parameters settings for
>
>an ifTable with a variable number of  rows. Does the OID array have an
>entry for every possible row or just
>
>set the max field in the index_info structure to the maximum possible
>number of rows. Thanks for your help.
>
> 
>  
>
The index_info array specifies the index structure of the table as 
defined in the
corresponding MIB specification. The min and max attributes denote the
minimum and maximum number of sub-identifiers allowed for that sub-index.

Thus, each AgentXShared table can have a variable number of rows.
If you want to control the number of rows allowed for a table, then use
the MibTableSizePolicy class to implement a MibTableVoter that can then
be registered to intercept row creation requests when the internal limit is
exceeded.

Hope this helps.

Best regards,
Frank


-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the AGENTPP mailing list