Re: 0-based or 1-based indexing

2006-06-20 Thread Dave Shield
Thanks for the clarification, David. You are quite correct - I was thinking/talking in terms of the full OID of an entry in a table (i.e. a column instance). And specifically one indexed by a single integer. The final subidentifier of the OID of a MIB definition cannot be 0, regardless of whether

Re: 0-based or 1-based indexing

2006-06-20 Thread David T. Perkins
HI, Let me be stronger in response than Dave Shield. See inline below. On Tue, 20 Jun 2006, Dave Shield wrote: > [EMAIL PROTECTED] wrote: > > But are _all_ OIDs that end in > >0 scalars? Is that just a convention or is it a contraint imposed by > >SNMP or an

Re: 0-based or 1-based indexing

2006-06-20 Thread Dave Shield
[EMAIL PROTECTED] wrote: > But are _all_ OIDs that end in >0 scalars? Is that just a convention or is it a contraint imposed by >SNMP or an unavoidable outcome of how OIDs are generated and handled? > > It's a convention. There's nothing to say that you *can

0-based or 1-based indexing

2006-06-19 Thread cnelson
I know that, for example, ifIndex is 1-based so you have rows in interfaces that are numbered starting with 1. And many OIDs that end in 0 are scalars (e.g., system.sysDescr.0). But are _all_ OIDs that end in 0 scalars? Is that just a convention or is it a contraint imposed by SNMP or an unavoid