Thank you for all the responses. 

I am inclined to use psexec route. I will document as I go along

Step 1: Gather hostnames

Command line: (Actually typed into a single line, I have indented it here 
for clarity:

FOR /l %a IN (1,1,255) DO \
    FOR /l %b IN (1,1,255) DO \
         FOR /l %c in (1,1,255) DO \
               @PING -n 1 -w 10 -a 192.%a.%b.%c | FIND "Pinging" 
>>/tmp/192.%a.%b.%c.x.txt

-a gets the host names
-w 10 caters to my impatience by speeding things up a bit

This creates files with the subnet names and the hostnames.

Then use your favourite editor to strip out 
Pinging \d+.\d+.\d+.\d+.*$
Pinging
\[\d+.\d+.\d+.\d+.*$
.domain.com

You are left with nice files of host names to work with to create keys and 
deploy using psexec

I am now looking for a clean way of generating agent keys. I am going to use 
subnet IP addresses as they are DHCP ranges.
More shell scripting?

Ash



Reply via email to