From owner-freebsd-net@FreeBSD.ORG Mon Apr 25 05:16:08 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D046C16A4D3 for ; Mon, 25 Apr 2005 05:16:08 +0000 (GMT) Received: from bellana.nc-rj.rnp.br (bellana.nc-rj.rnp.br [200.17.63.130]) by mx1.FreeBSD.org (Postfix) with SMTP id AA87243D4C for ; Mon, 25 Apr 2005 05:16:07 +0000 (GMT) (envelope-from alex@rnp.br) Received: (qmail 64191 invoked by uid 0); 25 Apr 2005 05:15:56 -0000 Received: from kira.nc-rj.rnp.br (200.17.63.90) by 0 with SMTP; 25 Apr 2005 05:15:56 -0000 Received: (qmail 693 invoked by uid 0); 25 Apr 2005 05:15:55 -0000 Received: from ceo.nc-rj.rnp.br (HELO ?127.0.0.1?) (200.17.63.80) by 0 with SMTP; 25 Apr 2005 05:15:55 -0000 Message-ID: <426C7D0B.5030304@rnp.br> Date: Mon, 25 Apr 2005 02:15:55 -0300 From: Alex Soares de Moura Organization: RNP User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Abu Khaled References: <426BE9EA.5090303@rnp.br> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: scaning the local network with arping/sh script X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 05:16:08 -0000 Abu Khaled wrote: >On 4/24/05, Alex Soares de Moura wrote: > >>Abu Khaled wrote: >> >> >>>Greetings... >>> >>>I don't know much about scripting but i tried to write one to scan my >>>local network using the net/arping port. >>>here is the script: >>> >>>#!/bin/sh >>>IP=1 >>>while [ $IP -le 20 ] >>>do >>>echo -e ".\c" >>> if ( arping -c 1 -q -i rl1 10.0.0.$IP ) then >>> echo -e "\n10.0.0.$IP Online" >>> fi >>>IP=$(( $IP +1 )) >>>done >>>echo -e "\n" >>>