From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 12:43:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C395E16A4CE for ; Thu, 26 Feb 2004 12:43:30 -0800 (PST) Received: from www6.web2010.com (www6.web2010.com [216.157.5.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CC5A43D1D for ; Thu, 26 Feb 2004 12:43:30 -0800 (PST) (envelope-from MLandman@face2interface.com) Received: from delliver.face2interface.com (dialup-wash-129-203.thebiz.net [64.30.129.203] (may be forged)) by www6.web2010.com (8.12.10/8.9.0) with ESMTP id i1QKgols016994; Thu, 26 Feb 2004 15:42:54 -0500 (EST) Message-Id: <6.0.0.22.0.20040226153432.07ddd650@pop.face2interface.com> X-Sender: face@pop.face2interface.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 26 Feb 2004 15:43:19 -0500 To: Olaf Hoyer From: Marty Landman In-Reply-To: <20040222200336.U57230@gaff.hhhr.ision.net> References: <20040221052137.GL24309@hardesty.saintaardvarkthecarpeted.com> <6.0.0.22.0.20040221092538.05e6dc48@pop.face2interface.com> <4037D5D7.8030700@mac.com> <6.0.0.22.0.20040222085418.01b94e68@pop.face2interface.com> <20040222153958.S56797@gaff.hhhr.ision.net> <6.0.0.22.0.20040222095859.03dc3c78@pop.face2interface.com> <20040222174400.T57042@gaff.hhhr.ision.net> <6.0.0.22.0.20040222134915.07c05868@pop.face2interface.com> <20040222200336.U57230@gaff.hhhr.ision.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: FreeBSD Questions Subject: Re: DHCP access X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 20:43:30 -0000 At 02:08 PM 2/22/2004, Olaf Hoyer wrote: >On Sun, 22 Feb 2004, Marty Landman wrote: > > > So the arp cache doesn't have nodes on it which it hasn't had activity from > > for a time? > >Yes. I struck out with upgrading nmap to 3.50 as well, and wanting to learn a little about shell scripting wrote this [doubtless poor example but I am a newbie to unix shells] which does work on my lan - taking about 15 seconds wall time to complete. $ ./findIps preparing pings start pinging 1 is on the network 3 is on the network 7 is on the network 160 is on the network 240 is on the network End of story $ more findIps #!/bin/bash pingEm() { echo "preparing pings" for((i=1;i<255;i++)) do echo "ping -c1 192.168.0.$i > $$/$i &" >> pingEmAll.$$ done echo "start pinging" chmod +x pingEmAll.$$ && `./pingEmAll.$$` } findEm() { for((i=1;i<255;i++)) do awk '/64 bytes from /' $$/$i > ans awk '{ print length($0) }' ans > len if [ `more len` ] then echo "$i is on the network" fi done } mkdir $$ && pingEm findEm rm -r $$ & rm pingEmAll.$$ ans len echo End of story $ Marty Landman Face 2 Interface Inc. 845-679-9387 FormATable DB: http://face2interface.com/Products/FormATable.shtml Make a Website: http://face2interface.com/Home/Demo.shtml Free Formmailer: http://face2interface.com/Products/Formal.shtml