On Tue, Aug 09, 2005 at 05:00:02PM -0400, Reitberger, Susan wrote: > I had a question about timeouts and requests.
> If I do a snmpget with a timeout of t on multiple elements, > i.e. snmpget localhost -t5 sysUpTime.0 sysContact.0 sysDescr.0, does > the timeout apply to the complete request or each element in the > request? In other words, in the example get(snmpget localhost -t5 > sysUpTime.0 sysContact.0 sysDescr.0) does the system have 5 seconds > to return all 3 objects, or 15 seconds to return all 3 objects(5 > seconds per element)? Why not experiment? It's easier than writing an email. :) SNMP allows multiple requests to be sent in one packet. If you specify multiple OIDs in one command-line, they are all sent in one packet. So the timeout is per request. You can easily verify that experimentally. That said, the total time won't be 5 seconds, it will be 30 (by default) because of retries -- total time = timeout * (retries + 1). Ie: $ time snmpget -c bad -v 1 localhost -t5 sysUpTime.0 sysContact.0 sysDescr.0 Timeout: No Response from localhost. real 0m30.159s user 0m0.100s sys 0m0.000s $ time snmpget -c bad -v 1 localhost -t5 -r0 sysUpTime.0 sysContact.0 sysDescr.0 Timeout: No Response from localhost. real 0m5.109s user 0m0.100s sys 0m0.000s - Morty ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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
