DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 16th August 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Default How to find available IP addresses?

Hi guys,

I would like to write a script (using perl or shell, etc) to find available IP addresses in my network. I really don't know where to start.

Here's what I would like the script to do:

Ping (or any other tool that may work) a range of IPs (example: 0.0.0.1 to 0.0.0.255). Then whenever an IP replies, it means that its already being used somewhere so this IP will be sent to a file called usedIP, but if the IP gives no response, then chances are that the IP is not being used. So this IP will be sent to a file called availableIP.

Could you guys give me some hint/help on how I can accomplish this?

Cheers!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3b cannot find growisofs maxrussell FreeBSD General 5 26th April 2009 12:20 PM
pkg_add g95;g95 x.f95: cannot find g95 enpey OpenBSD Packages and Ports 8 27th August 2008 12:48 AM
where might I find 'libcamel'? Damien787 FreeBSD Ports and Packages 16 17th June 2008 11:35 PM
Managing IP Addresses bigb89 FreeBSD General 8 28th May 2008 12:09 AM
abbreviating email addresses? ocicat Feedback and Suggestions 9 22nd May 2008 12:21 AM


All times are GMT. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick