• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to find network computers, use Rendezvous?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find network computers, use Rendezvous?


  • Subject: Re: How to find network computers, use Rendezvous?
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 15 Oct 2004 21:48:22 +0100

Title: Re: How to find network computers, use Rendezvous?
on 15/10/04 8:51 pm, Sander Tekelenburg at email@hidden wrote:

> It looks to me like arp returns only IP addresses it already knows about;
> does not go out on the subnet to actively search for what is there.

You're correct.

I think ping should be OK for a simple network.

I’m sure that this includes some lines from the parallel ping discussion – but haven’t got time to search for the original:

set
pingTemp to "/tmp/pingtemp"
set
x to 1 --
start IP
set
y to 10 -- finish IP
set
IPbase to "192.168.1."

set
ipBlock to {}
repeat with
i from x to y
   set myIP to IPbase & i
   set the end of ipBlock to myIP
end repeat

do shell script ": > " &
pingTemp

repeat with theIP in ipBlock
   set myResults to do shell script "ping -c 1 -q " & theIP & " >> " & pingTemp & " 2>&1 &"
end repeat

set
theFlag to false
repeat
until
theFlag is true
   try
       set
theString to IPbase & "." & y
       do shell script "grep '" & IPbase & "' " & pingTemp
       set theFlag to true
   on error
       delay 1
   end try
end
repeat

do shell script "awk '/ 0% packet/{print x,\" is responding\"};{x=$2}' " &
pingTemp



--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to find network computers, use Rendezvous?
      • From: Martin Orpen <email@hidden>
References: 
 >Re: How to find network computers, use Rendezvous? (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: File busy status
  • Next by Date: Re: How to find network computers, use Rendezvous?
  • Previous by thread: Re: How to find network computers, use Rendezvous?
  • Next by thread: Re: How to find network computers, use Rendezvous?
  • Index(es):
    • Date
    • Thread