Re: queries to only one table
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 2 March 2011 07:56, Egor <[email protected]> wrote: > Ok. So, is there way to query only one table with some snmp tool ? "Query one table" from the point of view of the client? Or from the point of view of the agent? As far as the client is concerned, then both "snmpwalk" and "snmptable" will do this. They will report the contents of one table, and nothing else. But both of them rely on "walking off the end" of the table to detect when to stop. So as far as the agent is concerned, they query both the table concerned *and* one extra value (either a table, or a scalar object - depending on what comes next). The only way to avoid this is to know how many rows there are in the table before you start. If you know this, then a single GetBulk request can retrieve the whole table (and nothing else), without needing to touch the next table/object. If you don't know the number of rows, then you've essentially got to walk off the end of the table as described above. That's the only way to know that you have reached the end. Dave ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users