Ping Predefined IP's and return results in a Text file or message box.

Discussion in 'Web Design & Coding' started by VenomXt, Mar 23, 2007.

  1. VenomXt

    VenomXt Blame me for the RAZR's Folding Team

    Messages:
    3,453
    Location:
    Houston, Texas
    Ok i want to ping about 20 static ips (one or two at a time) and display if any did not respond or dropped a packet.. Any ideas? I was thinking about VB.net but i dont know how to do a ping in it and return a result that i can apply to logic?

    Any ideas?

    -Sean
     
  2. VenomXt

    VenomXt Blame me for the RAZR's Folding Team

    Messages:
    3,453
    Location:
    Houston, Texas
    I found this and i think its a step in the right direction.. hehe
     
  3. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
  4. VenomXt

    VenomXt Blame me for the RAZR's Folding Team

    Messages:
    3,453
    Location:
    Houston, Texas
    I will look at them, However Id like to write it myself for a learning experience and to present to my boss as something that I made. hehe
     
  5. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    You will just create a bad re-implementation of something that has been perfected over the years. The wheel.

    nmap is your toy.
     
  6. Mooz

    Mooz Moozically Con~foozed

    Messages:
    126
    Location:
    UK
    in its simplest form although i agree there are far too many products out there that do this .... (see the prtg website they have an uptime monitor).

    ping hostname > logfile.txt

    will save the results in a logfile for you to peruse ... you could then use logfile parser (microsoft) .... to read the results where there were errors only.

    D
     
  7. GoNz0

    GoNz0 NTFS Stoner

    Messages:
    2,781
    Location:
    the year 2525
    yep agree with all the above, plus it will reinforce the reason why the boss employed you when you reply with

    "yeh thats an easy one, i will run a ping command and instruct it to save to a log file, then use the microsoft logfile parser to only show errors for the dead ip's, shouldn't take me more than an hour to setup a batch script to pull it off"

    then spend 55 mins surfing where ever as you already set it up today :D
     
  8. Shamus MacNoob

    Shamus MacNoob Moderator Political User

    Messages:
    4,199
    Location:
    L'Ile Perrot Quebec
    I have to aggree also , there is no point in trying to reinvent anything, unless you really know what you want ahead of time and can perfect something that is all ready there, I see some young hotshots trying to impress by repacking MS updates in a wrapper or Sun Java and some how trying to get credit for work done by others , they come off as just plain stupid .
     
  9. VenomXt

    VenomXt Blame me for the RAZR's Folding Team

    Messages:
    3,453
    Location:
    Houston, Texas
    eh making a batch file using this command really has done everything i need

    I just add every static ip we have in regards to switches and AP's

    Code:
    ping -n 1 192.168.1.100
    
    pause
    
    Doest exactly what i need (measures connectivity of the device)