Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'permissions': 0.04; 'hosts': 0.09; 'optionally': 0.09; 'ping': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject: \n ': 0.16; 'subject:list': 0.16; 'detect': 0.22; 'header:In-Reply-To:1': 0.22; 'cache': 0.25; 'load': 0.26; 'threads': 0.30; 'subject:?': 0.31; 'rather': 0.33; 'to:addr:python-list': 0.34; 'header:X -Complaints-To:1': 0.34; 'header:User-Agent:1': 0.34; 'options:': 0.35; 'options': 0.36; 'some': 0.37; 'but': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'parallel': 0.38; 'header:Mime- Version:1': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'reply,': 0.73; 'schrieb': 0.84; 'fast,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Christian Heimes Subject: Re: how to get a list of all the hosts on the intranet around my workstation? Date: Sat, 16 Jul 2011 21:59:33 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: f049182229.adsl.alicedsl.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2.102ipre2 Thunderbird/3.1.10 In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=AD16AB1B; url=http://cheimes.de/heimes.asc X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310846388 news.xs4all.nl 23858 [2001:888:2000:d::a6]:50316 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9647 Am 16.07.2011 21:13, schrieb Dan Stromberg: > Some options: > > 1) Broadcast ping > 2) nmap the subnet, optionally with -P0 > 3) Check the arp cache (optionally after options 1, 2 or 4) > 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 5) arping - needs root permissions but works well inside a broadcast domain. It can detect hosts that block ICMP echo reply, too. Christian