[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't* have a table index value of 0, though it's not recommended. From RFC 2578:
7.7. Mapping of the INDEX clause Instances identified by use of integer-valued objects should be numbered starting from one (i.e., not from zero). The use of zero as a value for an integer-valued index object should be avoided, except in special cases. >The reason I ask if that I need to create a MIB for something that looks >a lot like memory and it would be natural -- for my code and for the >user -- to start my table indices at 0 but I'm not sure I can. > > This is not forbidden, although it is discouraged. Only you can tell whether your situation is a legitimate "special case". The SNMP specifications don't try to dictate what this means. Dave _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
