<br>Some options:<br><br>1) Broadcast ping<br>2) nmap the subnet, optionally with -P0<br>3) Check the arp cache (optionally after options 1, 2 or 4)<br>4) Unicast ping everything on the subnet in parallel - very effective, very fast, might want to do it with threads rather than subprocesses to avoid a load spike<br>
<br><div class="gmail_quote">On Sat, Jul 16, 2011 at 9:31 AM, Phlip <span dir="ltr"><<a href="mailto:phlip2005@gmail.com">phlip2005@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Yes, pythonistas, sometimes I even amaze myself with the quality of<br>
question that a computer scientist with a 25 year resume can ask<br>
around here...<br>
<br>
In my defense, a Google search containing "intranet host" will fan out<br>
all over the place, not narrow on what I actually need.<br>
<br>
The Use Case is a user wants to ping a nearby host, and I provide a<br>
list of nearby hosts for the user to pick from. Nothing else. Hosts on<br>
the outernet need not apply.<br>
<br>
pydhcplib? Shell to a DHCP utility? Ping every server in a range<br>
around my own?<br>
<br>
--<br>
  Phlip<br>
  <a href="http://bit.ly/ZeekLand" target="_blank">http://bit.ly/ZeekLand</a><br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>