Re: Question on vacm view access mask parameter

2010-03-25 Thread Dave Shield
On 24 March 2010 23:42, Mike Ayers  wrote:
>    ... the point of the mask [is] It allows you to skip one or more 
> identifiers in an OID
> specification.  The typical use case is for tables - access can be allowed to 
> some
> of the conceptual columns by setting the mask bit to 0 for the index.

Another typical use case would be to set the mask bit to 0 for the
_column_ subidentifier,
but specify an explicit index value in the view OID with the
corresponding mask bit(s) set to 1.
That would allow (or deny) access to an individual row of the table.

Dave

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


RE: Question on vacm view access mask parameter

2010-03-25 Thread Mike Ayers
> From: Fatima Peter [mailto:fatima.pe...@gmail.com]
> Sent: Friday, March 19, 2010 1:33 PM

> I have a question on the mask parameter in the vacm view access
> when it is included and excluded. I am not sure whether my earlier
> email went out. Sorry if this is a duplicate.

This is a tough one to explain, and I don't have time to provide an 
example, but I think you're misunderstanding the point of the mask.  It allows 
you to skip one or more identifiers in an OID specification.  The typical use 
case is for tables - access can be allowed to some of the conceptual columns by 
setting the mask bit to 0 for the index.  This does not, of course, work for 
string valued indices, which may explain why some MIBs may be indexed by an 
arbitrary integer when there is one or more string values that uniquely 
identify the conceptual row.


HTH,

Mike

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


Re: Question on vacm view access mask parameter

2010-03-24 Thread Fatima Peter
Thanks Mike,

Fatima

On Wed, Mar 24, 2010 at 4:42 PM, Mike Ayers  wrote:
>> From: Fatima Peter [mailto:fatima.pe...@gmail.com]
>> Sent: Friday, March 19, 2010 1:33 PM
>
>>     I have a question on the mask parameter in the vacm view access
>> when it is included and excluded. I am not sure whether my earlier
>> email went out. Sorry if this is a duplicate.
>
>        This is a tough one to explain, and I don't have time to provide an 
> example, but I think you're misunderstanding the point of the mask.  It 
> allows you to skip one or more identifiers in an OID specification.  The 
> typical use case is for tables - access can be allowed to some of the 
> conceptual columns by setting the mask bit to 0 for the index.  This does 
> not, of course, work for string valued indices, which may explain why some 
> MIBs may be indexed by an arbitrary integer when there is one or more string 
> values that uniquely identify the conceptual row.
>
>
>        HTH,
>
> Mike
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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