Apple Remote Desktop choosing only online computers - mDNS?

Hello…

This is a little bit of background on my intent.

I manage 830 units distributed nationwide, I use Apple Remote Desktop to gain access to the units, part of what I do on a daily basis is sweep for units that have been reported onto a database, from which I obtain the IP addresses of the units, which I then import to ARD and list the actual machines.

If you are familiar with ARD you will then obtain a Dark Blue icon for each unit that is online, a lighter blue for one that has been identified but is not online, and a black icon for the ones which are not macs or unidentified.

My intention is to write an AppleScript that will identify the Dark blue machines, select them and send them a command.

I have researched all over and cannot much if anything that works Applescript and ARD together. After some research, I came upon “Bonjour” and thought my answer was there, maybe scripting with Bonjour, but could not find anything either, then came upon mDNS, which seems to be closer to what I might need to use…

I am wondering if anyone has any ideas or light in this crazy idea.

Thanks!!!

htakeuchi

Hi,

This will give you a list of every ‘active’ ip address in your “All Computers” list.

tell application "Remote Desktop"
	activate
	set IP_List to {}
	set IP_Add to Internet address of (every computer of computer list "All Computers")
	repeat with i from 1 to number of items in IP_Add
		set this_item to item i of IP_Add
		if this_item is not "" then
			set IP_List to IP_List & this_item
		end if
	end repeat
	get IP_List
end tell

You can then repeat through this list, sending your command one at a time.

Hope this helps.