From owner-freebsd-questions@FreeBSD.ORG Sun Apr 24 05:45:38 2005 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 EDC1B16A4CE for ; Sun, 24 Apr 2005 05:45:38 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9567C43D48 for ; Sun, 24 Apr 2005 05:45:38 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1018565wra for ; Sat, 23 Apr 2005 22:45:38 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=dMrJXlN+PGDOBjedB7pj5IbnR0uhv3iEk2GiyuGU1tph4Jb+3fuqvQDo0vpv0hrjYijVl3elrbEcVaaeypx8TVkrQrQLskq9T/j8KUO4F6yj2ZOnb72amQwipEzlr5W+7kjps5k0raWTyndGqz05eYDVW8x6nIZanM4ZXz2Or74= Received: by 10.54.15.76 with SMTP id 76mr1307559wro; Sat, 23 Apr 2005 22:45:38 -0700 (PDT) Received: by 10.54.67.7 with HTTP; Sat, 23 Apr 2005 22:45:38 -0700 (PDT) Message-ID: Date: Sun, 24 Apr 2005 08:45:38 +0300 From: Abu Khaled To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline cc: freebsd-questions@freebsd.org Subject: scaning the local network with arping/sh script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Abu Khaled List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 05:45:39 -0000 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"