Date: Sun, 24 Apr 2005 08:45:38 +0300 From: Abu Khaled <khaled.abu@gmail.com> To: freebsd-net@freebsd.org Cc: freebsd-questions@freebsd.org Subject: scaning the local network with arping/sh script Message-ID: <a64c109e050423224575a644e5@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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:
<sciprt start>
#!/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"
<script end>
The script runs and reports OK but it is very slow and takes a lot of
time to scan a large network. Does anyone have an idea on how to
improve it or provide an alternate way to do it?
PS: I used the arpscan port in the past but it is reported as broken:
Unfetchable.
I'm running FreeBSD 5.4 Stable.
--=20
Kind regards
Abu Khaled
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a64c109e050423224575a644e5>
