2009/1/21 Adrian Overbury <[email protected]>: > Say I've got a table, and I've just gotten a GETNEXT request for the OID > of one of the column heads. Should I return the OID for the next column > head or the OID of the first field of that column?
The general rule with GETNEXT is that you should return the OID of the next accessible *instance*. You are always returning a (name,value) pair. And values are only associated with particular entries in the table, not with the column as a whole. So you should return the OID of the first (valid) field in that column. If the column happens to be empty (or doesn't exist), then you should return the first (valid) field in the next column. If there are no more valid columns in the table, then you (i.e. the agent as a whole) should return the next instance that *does* exist, from the next table (or scalar) supported by the agent. But in general, you don't need to worry about this when implementing a given table. The agent infrastructure will take care of skipping from one table to the next. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
