Jeff McCune home
VMWare FusionI haven't posted in awhile, but I was pleased with the results of this small hack. I booted VMWare Fusion on my Leopard workstation, and was disappointed that the keyboard doesn't work on the console, so I couldn't run ifconfig to look at it's dhcp assigned IP address. I run vmware machines in NAT mode, so I couldn't look at my dhcp server logs either. The following shell script did the trick nicely. I went about my business, and eventually my computer spoke; "128 is up." which allowed me to ssh in.
X=2
while [ $X -lt 255 ]
do
  ping -c 1 -t 1 172.16.90.$X 2>/dev/null >/dev/null && (echo $X: Up; say "$X is up") || echo $X: DOWN
  ((X++))
done
You may find this useful for locating machines if you don't have nmap installed.
Fork me on GitHub