Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9644

Re: how to get a list of all the hosts on the intranet around my workstation?

References <a872bea7-3920-44c4-8df2-e75cad47c5f2@p12g2000pre.googlegroups.com> <4E21D537.1000407@jollybox.de>
Date 2011-07-17 04:27 +1000
Subject Re: how to get a list of all the hosts on the intranet around my workstation?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1125.1310840828.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Jul 17, 2011 at 4:15 AM, Thomas Jollans <t@jollybox.de> wrote:
> In the end, there is only one way to get all active machines: Ping
> everyone on the subnet.

But that will list everyone who's _currently_ active; it won't list
everyone who _ought to be_ active. However, the OP was slightly
ambiguous:

On Sun, Jul 17, 2011 at 2:31 AM, Phlip <phlip2005@gmail.com> wrote:
> The Use Case is a user wants to ping a nearby host, and I provide a
> list of nearby hosts for the user to pick from. Nothing else. Hosts on
> the outernet need not apply.

Does "ping a nearby host" simply mean that you want to ping someone
who's up, as a means of testing the client's own network connection?
Or are you seeking to list all servers and know if any has gone down?

If the former, it's quite easy. In fact, you could just hard-code a
few IPs of key routers and/or servers, and ping those, much more
easily than listing hosts.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to get a list of all the hosts on the intranet around my workstation? Phlip <phlip2005@gmail.com> - 2011-07-16 09:31 -0700
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 02:52 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Emile van Sebille <emile@fenx.com> - 2011-07-16 11:04 -0700
  Re: how to get a list of all the hosts on the intranet around my workstation? Thomas Jollans <t@jollybox.de> - 2011-07-16 20:15 +0200
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 04:19 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Chris Angelico <rosuav@gmail.com> - 2011-07-17 04:27 +1000
  Re: how to get a list of all the hosts on the intranet around my workstation? Christian Heimes <lists@cheimes.de> - 2011-07-16 21:59 +0200
  Re: how to get a list of all the hosts on the intranet around my workstation? Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-07-16 16:01 -0400

csiph-web