Jump to content

Race to ping 1000 pcs


Recommended Posts

I'm trying to get results as fast and accurate as possibe. Currentley pinging one pc at a time and retrieving info is great but if I could ping 1000 pcs in like 10seconds then we got some

good lovin.

I know Autoit Doesn't do MultiTreading but there has got to be a way around this fact.. Always lots a ways to shave a cat..

Link to comment
Share on other sites

Assumed your pc sends 100 ping requests at once what will the network admin think?

Have a closer look to the timer functions.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

I wrote a small tool named or here.

Maybe it is usefull for you.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

I saw your other post in which you're using the built-in Ping() function which waits for the command to return.

I'm sure this is not the best way to do it, but it does send all the pings (virtually) at once...

Global $IP[6] = ["[url="http://www.yahoo.com"]www.yahoo.com","www.time.com","www.autoitscript.com","www.whois.net","www.gotahoe.com[/url]", "[url="http://www.therapistlocator.com"]www.therapistlocator.com[/url]"]
Global $pid[6]
Beep(800,50)
For $x = 0 to 5
; Run(@ComSpec & " /c Ping " & $IP[$x] & " >> " & $log, "", @SW_HIDE)
$pid[$x] = Run(@ComSpec & " /c Ping -n 1 " & $IP[$x], "", @SW_HIDE, 0x8)
Next
Beep(800,50)
Sleep(4000)
Beep(800,50)
For $x = 0 to 5
MsgBox(0, "Results for : " & $IP[$x], StdoutRead($pid[$x]))
Next

edit: typo and a little clean-up

Edited by Spiff59
Link to comment
Share on other sites

I'm trying to get results as fast and accurate as possibe. Currentley pinging one pc at a time and retrieving info is great but if I could ping 1000 pcs in like 10seconds then we got some

good lovin.

I know Autoit Doesn't do MultiTreading but there has got to be a way around this fact.. Always lots a ways to shave a cat..

Try

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...