1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Looking for a way to seek out static IPs.

Discussion in 'Networking (Hardware & Software)' started by Scott Smith, 2004/08/25.

Thread Status:
Not open for further replies.
  1. 2004/08/25
    Scott Smith

    Scott Smith Inactive Alumni Thread Starter

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    I run into a lot of networks with a large amount of configured static IP's and no documentation.
    Is there a utility I can either purchase or download to give me all of the occupied Ips on a subnet?

    Thanks,
    Scott
     
  2. 2004/08/26
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Not cheap but if you are doing serious work on a variety of networks, I don't think you could do better than to get a single user licensed copy of Hyena.

    Take a look at their web site and get an idea of what the app can do. They do offer a 30 day free trial.

    It will certainly do what you are asking and a zillion or so other useful things.

    I use it as my main network management tool both on our local resource domain (classic NT4 /w WINS) with 80+ servers, 400+ PCs, and around 200 printers and on the pieces of our AD domain that deal with our local machines so sorting thru around 30K PCs to find ours.

    Lookups, reporting, server configuration, etc.

    There are no client pieces to install so if you have hyena on a laptop and hook into a client's network, you are good to go.
     
    Newt,
    #2

  3. to hide this advert.

  4. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    This is a very simple way of doing it that I wrote when I worked out how to get loops working in Batch files.

    You need two batch files. One to control the process and one to do the work.

    CONTROL [Pingtest.bat]
    DO THE WORK [pingthem.bat]
    You need both batch files in the same directory. Start the process by running Pingtest.bat in that directory. "Passed" means a node was detected at that particular IP address.

    Obviously this has been written to test 192.168.0.1 to 192.168.0.254, but it should be fairly easy to see how to edit this to suit a different subnet or part of a subnet.
     
  5. 2004/08/26
    Scott Smith

    Scott Smith Inactive Alumni Thread Starter

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    Wow Newt that looks like a pretty powerful tool.

    Reggie,
    I will keep reading your post and hopefully it will sink in. ;)



    Edit,
    Sweet Reggie! :)

    It's fast too!
    Well it's fast when you have the wrong subnet in the bat file :D
     
    Last edited: 2004/08/26
  6. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Glad you like it. One thing I would add is that I haven't tried it under NT4 or Win9x. The command prompt syntaxes may be a little different, so you may need to tweak it for those OS.

    Batch files are the business!!!! They make my life so much easier.
     
  7. 2004/08/26
    Scott Smith

    Scott Smith Inactive Alumni Thread Starter

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    Reggie, I'll bet you can create log on scripts with your eyes shut. :) :)
     
  8. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    I try to keep login scripts as simple as possible!

    O'Reilly's "Windows NT - Desktop Reference" is a splendid reference that I use all the time when writing batch files. However, looking on the O'Reilly site, it seems to have been superceded with a Win 2000 version. Looks like a visit to the book store is in order.

    Mike Sandells web site is a good reference too. Otherwise trawling round MS help files and Google searches are in order.
     
  9. 2004/08/26
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    ReggieB - if you have the time and patience, how about a nice tweak to that routine for us batch-file-coding-impared folks.

    - Prompt for the address range to be checked. Maybe something like

    Hi Boss. Please type in the starting address.
    Thanks. Now please type in the ending address.


    - Increment thru based on the information entered
     
    Newt,
    #8
  10. 2004/08/26
    Scott Smith

    Scott Smith Inactive Alumni Thread Starter

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    That would be sweet Newt. :cool: :cool:
     
  11. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Newt - you're a terrible man.

    Command line batch files aren't great for providing user prompts. However, how about this rewrite:

    Control [pingtest.bat]
    Workings [pingthem.bat]
    The main change is to simplify the bit where you define what is being pinged. This is now defined in "pingtest.bat" in the three lines:

    set Subnet=192.168.0.
    set StartNode=1
    set EndNode=254

    If you wanted to test from 10.0.0.5 to 10.0.0.44 you should changes the lines to:

    set Subnet=10.0.0.
    set StartNode=5
    set EndNode=44
     
  12. 2004/08/26
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Very nice and should be very useful for lots of folks. Thanks.
     
  13. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    And here is a cleverer solution. Uses the same pingthem.bat version 2; only pingtest.bat has changed.

    Control [pingtest.bat]
    If you use this by either double clicking on the batch file or typing "pingtest" at the command prompt, it works in exactly the same way as the previous version.

    However, if you use it like this:
    It will ping the addresses form 192.168.0.10 to 192.168.0.20

    Make sure you enter the last dot of the subnet or the test will fail. There's no error catching so if you get it wrong it won't work.

    If you want anything more sophiticated (like pinging subnets that aren't class C, or prompting users), either rework these batch files, or more simply create a VBScript version.

    As for me - I'm off to bed
     
  14. 2004/08/26
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Oh! and by the way - if you manage to come up with a way of getting this into a never ending loop <CTRL> C will stop it.
     
  15. 2004/08/26
    mjg1973

    mjg1973 Inactive

    Joined:
    2002/01/18
    Messages:
    125
    Likes Received:
    0
  16. 2004/08/26
    Scott Smith

    Scott Smith Inactive Alumni Thread Starter

    Joined:
    2002/01/12
    Messages:
    1,950
    Likes Received:
    4
    Hey that is the bomb right there! :)
     
  17. 2004/08/27
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    mjg1973 - you're meant to come up with that before I spend time refining my batch code :rolleyes:

    However, looks a much better app than mine. Well done!
     
  18. 2004/08/31
    bradcd

    bradcd Inactive

    Joined:
    2004/02/01
    Messages:
    1
    Likes Received:
    0
    Networkview

    I use Networkview as my program/database for the different networks that I work on. Its got a 30 evaluation period and is not cheap at $79 but if you spend time on a lot of different networks, its worth it. Check it out at www.networkview.com
     
  19. 2004/08/31
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    When it comes to network tools, $79 is cheap!
     
  20. 2004/08/31
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Hi bradcd and welcome.

    Just took a look at the write-up for that app and it seems impressive and the price is certainly more than reasonable. May download it at work and give it a try.
     
  21. 2004/09/07
    maddogrnnsn

    maddogrnnsn Inactive

    Joined:
    2003/03/21
    Messages:
    34
    Likes Received:
    0
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.