Hi all,
Is it possible to limit the maximum number of rows I would like to request in SNMP tables? I want to poll only x number of rows from the SNMP data source.
It's not possible to request to only return a number of rows without prior knowledge of the table.
What you could do is request all instances in a separate hidden table and then in the displayed table use a subtable and only include the instances (limited to a number) that you're interested in.
It is strange though that there is a need to limit this: why limiting to a number of rows? Why would you like to display eg only the first 10 rows and ignore the other ones? It would make more sense if the request would be to limit the request to rows where a column matches a certain value (ie only display rows of a certain type)
Hi Laurens,
Thank you for the feedback. The reason for limiting the maximum number of rows is that I am working on a driver for a monitoring and control system. The system has a list of device types that it can monitor/control. I want to check whether there is a device of a specific type and assign Present/Not Present state. To do so, I need to request data with a certain table OID (this table has a list of the parameters for that specific device) but I don’t want to poll all the rows (only 1 or 2 rows) to check the presence of a device.