Resticting the amount of table rows

Frank Fock Frank.Fock____t-online.de
Thu Jun 19 00:13:16 CEST 2003


Hi Adolfo,

Please take a look at the atm_example agent.
There a number of table size policies are defined
and later registered:

const table_size_def table_sizes[4] =
{ table_size_def(oidUsmUserEntry, 30),
   table_size_def(oidVacmSecurityToGroupEntry, 30),
   table_size_def(oidVacmAccessEntry, 30),
   table_size_def(oidVacmViewTreeFamilyEntry, 30)
};
MibTableSizePolicy policy(table_sizes, 4, 50);

MibTableSizePolicy::register_policy(mib->get_default_context(),
				    &policy);

It is not automatically generated by AgenPro because
there are only very rare cases where the row number
limitation can be directly derived from the index
specification.

Best regards,
Frank Fock

Adolfo Lucha wrote:
> Hi,
> 
> I want to restrict the amount of editable rows in a table. The user should be only able to add a count of rows as specified in the index column. Specifiyng the index column range in the MIB as 0..10 does not help. User is able to add more than 10 rows.
> 
> I assumed that agent will handle it automatically. Is not it?
> 
> How is the best way I can do it? 
> 
> Regards
> Adolfo
> 
> 






More information about the AGENTPP mailing list