IP list generation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen Briley

    IP list generation

    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.


  • Krzysztof Stachlewski

    #2
    Re: IP list generation

    "Stephen Briley" <sdb1031@yahoo. com> wrote in message
    news:mailman.74 .1077039244.313 98.python-list@python.org ...
    [color=blue]
    > 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?[/color]

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

    Stach

    Comment

    • Paul McGuire

      #3
      Re: IP list generation

      "Stephen Briley" <sdb1031@yahoo. com> wrote in message
      news:mailman.74 .1077039244.313 98.python-list@python.org ...[color=blue]
      > 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
      >[/color]
      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.


      Comment

      • Peter Hansen

        #4
        Re: IP list generation

        Stephen Briley wrote:[color=blue]
        >
        > 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?[/color]

        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

        Comment

        Working...