[tkined] Response time on multiple async. walks

From: Matthew Krenzer (krenzer@wayport.net)
Date: Tue Jul 18 2000 - 21:52:03 MET DST


I have a question here about how long it takes to do a query on an
entire subnet. This is what I'm trying to do:

---
package require Tnm
namespace import Tnm::*

for {set x 1} {$x <= 255} {incr x} { set snmph [snmp generator -address 1.1.1.$x -community public] $snmph get "sysDescr.0" { if {"%E" == "noResponse" || "%E" == "endOfWalk"} { } elseif {"%E" != "noError"} { puts "%A: %E" } else { puts "%A = [snmp value [list %V]]" } } } puts "Waiting for all responses" snmp wait puts "done waiting" ---

But it takes quite a while to run. (2 minutes to be exact). I would think that by using asynch. requests all sould be sent at the same time and the max time should be maybe a few snmp timeouts - but not 2 whole minutes. Why dose it take so long? Is there a better way to do this? Thanks.

Matthew -- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:49 MET