This should do the job, sort of... Note: change the "203.30.61" to the first 3 octets of the range you need to enquire on. Note that this was written for an HP/UX system, so tweaking may be required. YMMV. NBS. SAR. If anyone has a more elegant way of doing this, please let us all know ! for net in "203.30.61" ; do count=0;export count while [ ${count} -lt 254 ] ; do count=`expr ${count} + 1` if /bin/ping -c1 ${net}.${count} > /dev/null ; then echo "There is something at ${net}.${count}" >> pingit.yes else echo "There is nothing at ${net}.${count}" >> pingit.no fi done done ------------------------------------------- Regards, Jon - Committees keep minutes and lose hours.
On Wed, 9 Oct 2002, Jon Biddell wrote:
This should do the job, sort of... Note: change the "203.30.61" to the first 3 octets of the range you need to enquire on. Note that this was written for an HP/UX system, so tweaking may be required. YMMV. NBS. SAR. If anyone has a more elegant way of doing this, please let us all know !
user nmap. -- (+91-22-692) 2101 D2, floor-3, Chand : SE : TLSI : 3578 SuSE 8.0 2.4-18-4GB on i686 : sendmail-8.9.3-42 : pine-4.44-121 rohit.sharma@iitbombay.org [maximus_two@yahoo.com] 9821394599@bplmobile.com ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com
participants (2)
-
Jon Biddell
-
Rohit