From owner-freebsd-net@FreeBSD.ORG Mon Apr 25 04:41:31 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 E954E16A4CF for ; Mon, 25 Apr 2005 04:41:31 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62A9943D4C for ; Mon, 25 Apr 2005 04:41:31 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1153389wra for ; Sun, 24 Apr 2005 21:41:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QdcS2arAve6Cl/kmODZusEToTXeU9OmbO67IJb0vJVRyF5wSYigaFMHSzbHHMGgGdtyuhf5+T3LvBWVjuagAVaBfgp2K5prBvQONrLLzG7OfJm1LwAlxsZDzIQCsM6+HNIv9wmk60PslIpe0ZU/e6xa+dM7x0dm4cbyLVX261Qw= Received: by 10.54.10.54 with SMTP id 54mr1715346wrj; Sun, 24 Apr 2005 21:41:30 -0700 (PDT) Received: by 10.54.67.7 with HTTP; Sun, 24 Apr 2005 21:41:30 -0700 (PDT) Message-ID: Date: Mon, 25 Apr 2005 07:41:30 +0300 From: Abu Khaled To: Alex Soares de Moura In-Reply-To: <426BE9EA.5090303@rnp.br> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <426BE9EA.5090303@rnp.br> 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 Reply-To: Abu Khaled 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 04:41:32 -0000 On 4/24/05, Alex Soares de Moura wrote: > Abu Khaled wrote: >=20 > >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=3D1 > >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=3D$(( $IP +1 )) > >done > >echo -e "\n" > >