By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,427 Members | 1,378 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,427 IT Pros & Developers. It's quick & easy.

IP list generation

P: n/a
Hi all,

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Jul 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Stephen Briley" <sd*****@yahoo.com> wrote in message
news:ma*************************************@pytho n.org...
I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?


What do you mean by addresses in between?
Maybe capturing the output of 'traceroute' command is
the thing you are searching for?

Stach

Jul 18 '05 #2

P: n/a
"Stephen Briley" <sd*****@yahoo.com> wrote in message
news:ma*************************************@pytho n.org...
Hi all,

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

You posted this exact same request 3 days ago. On 2/15, I posted a working
function in response to that post. It should still be accessible in the
newsgroup archive.
Jul 18 '05 #3

P: n/a
Stephen Briley wrote:

I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. If so, what is the
recommended way? Is there a way to do this with the
supplied python modules?


If you mean "is there a standard module which does exactly this?"
then the answer is no.

There may well be an appropriate method in a package somewhere out
there already.

It might help to (a) give an example, and (b) describe the ultimate
purpose of script, so you can get more helpful answers.

-Peter
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.