Page 1 of 2 12 LastLast
Showing results 1 to 20 of 22

Thread: Net Connectivity Alert

  1. #1
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default Net Connectivity Alert

    Over the last week I've had a reason to update this so I've added a few things to make it more
    useful/robust.

    This is basically an automated macro for the cmd prompt command "ping google.com -n 35 > desktop path"
    When the program's ran, it will create the INI file.

    • GUI replaced with a log window
    • The connection summary that's written in the log window is dumped on exit, it's located in the
      wherever the EXE is
    • pings google 35 times and writes to individual log file
      toggle: 1=on 0=off default: on
      I was told that 35 pings is an average amount of data for the network tech's to trouble shoot the
      connection

      The text files are formatted as so:
      CON_LOST_2010-04-03-16-41.txt <- connection lost on year-month-day-hour-minute-second
      inside: your error could be different
      Ping request could not find host google.com. Please check the name and try again.
      CON_FOUND_2010-04-03-17-32.txt <- connection found etc...
      Code:
      	inside: to monitor fluctionation in connection latency
      	Pinging google.com [74.125.19.105] with 32 bytes of data:
      	Reply from 74.125.19.105: bytes=32 time=19ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=20ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=15ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=20ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=34ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=18ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=20ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=19ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=24ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=17ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=19ms TTL=53
      	Reply from 74.125.19.105: bytes=32 time=16ms TTL=53
      
      	Ping statistics for 74.125.19.105:
      		Packets: Sent = 23, Received = 23, Lost = 0 (0% loss),
      	Approximate round trip times in milli-seconds:
      		Minimum = 15ms, Maximum = 34ms, Average = 18ms
      These logs are placed on the desktop

      note: Because of the terrible console integration (or lack thereof) I had to use send()
      meaning it takes control of your keyboard to send the commands. It's recommended that you don't
      use your computer while this program's running with this option on (ie: sleeping)
    • beeps when connection is found
      toggle: 1=on 0=off default: on
    • loopDelay: delay between next ping test
      in milliseconds, default 5000
    • Source Included

    Download


    edit:
    -Logs are saved to \Logs\ instead of the desktop
    -settings are output to log file
    -added a pingTarget so it you can use microsoft.com or something
    Attached Images Attached Images  
    Last edited by gamepin126 : 04-10-2010 at 01:08 AM Reason: update
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  2. #2

    Default

    Nice.
    What was Comcast's problem?

  3. #3
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    they're gay
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  4. #4

    Default

    Oh ok.
    I think I won't use your tool though.

  5. #5
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    I don't really see the point in using it unless you're internet's going in an out often, or you're testing something
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  6. #6

    Default

    Mine goes out but I can always make it come back by repairing... so ya.

  7. #7
    Anarchist Gold Member

    Blessed
    Antihaxer's Avatar
    Join Date
    Aug 2005
    Posts
    2,066

    Default

    ^You spam way too much.

    I'm done with site politics.

  8. #8
    primum non nocere Senior Member
    Gold Member

    Inquisitor
    han_han's Avatar
    Join Date
    Jun 2005
    Location
    TX
    Posts
    4,329

    Default

    ^Like that post wasn't spam?

    Btw, I might use this tool, because my ISP = it's name (Cox). They used to screw with my internet often.

  9. #9
    Senior Member

    Saint
    el-camino-ss's Avatar
    Join Date
    Jun 2004
    Location
    Chico
    Posts
    6,258

    Default

    llgw
    Bring Back BWHacks!

  10. #10
    Senior Member

    Inquisitor
    MiCrOz's Avatar
    Join Date
    Aug 2005
    Location
    Cherry Hill, NJ
    Posts
    4,807

    Default

    This is actually very useful, as my Comcast go out on occasion as well.

    Quote Originally Posted by Dyndrilliac View Post
    Seriously, I have done a lot of drugs. A lot of ****ing drugs. I would snort a line of cocaine off a piss stained urinal in some truck-stop dive with my closest friends and family looking on in disgust before I took anything from somebody I didn't know and trust. That's just ****ing dumb.

  11. #11
    Senior Member
    Gold Member

    Inquisitor

    Join Date
    Jan 2005
    Posts
    4,496

    Default

    I had so many problems with comtrash, I ended up with the vice president secretarys desk phone number, of the Lower northeastern comtrash server. After 2 phone calls, I had 4 line techs at my house the next day, who actually did they're job and fixed it.

  12. #12
    Senior Member

    High Priest
    FlamingAsterix's Avatar
    Join Date
    Jul 2006
    Location
    British Columbia, Canada
    Posts
    1,958

    Default

    Persistence wins.

  13. #13
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    prolly should've mentioned the source is included
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  14. #14
    Senior Member
    Gold Member

    Inquisitor

    Join Date
    Jan 2005
    Posts
    4,496

    Default

    In that case, Ill check it out just to see whatchou did thur.

  15. #15
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    bump and update
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  16. #16

    Disciple

    Join Date
    Mar 2007
    Location
    Australia
    Posts
    406

    Default

    cool nice work have u looked into the command pingpath ? or adding a traceroute to it? so u can also see where the issue is or u could also add a flushdns every so often they may help u with ur automated program ping is very basic and not always 100% reliable

  17. #17
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    I suppose I made this program under the assumption that there's absolutely nothing wrong with my connection(on my end). And I know for a fact there isn't, so there isn't any need for me to try and diagnose it. I wouldn't go so far as saying that "ping is basic" because it isn't. Also ping is absolutely reliable, if you have an active internet connection and aren't able to ping something, then there's something terribly wrong with your computer.

    tracert isn't necessary in any repeatable manner because in 1 look you can tell exactly where the problem is
    flushdns isn't necessary either because you can tell if your isp's dns is down with 1 command, it's also easily remedied by not using your ISP's DNS ( which I do )

    So I'll reiterate, the goal of the program isn't to diagnose your connection, it's to notify you when it's active again, or log when and how often your connection drops while you're away from your PC. It's supposed to collect data, not figure it out. The vast majority of connection diagnosing is pretty simple. So unless you have an issue with way, packet saturation during a certain time of day (like I did) then this might not be a whole lot of use. I had to collect some data to make sure it's not me, and it was actually the ISP's fault and this is what I came up with.

    I also updated the the program, made the log a little easier to read and added how long the downtime between active connections was.
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  18. #18

    Disciple

    Join Date
    Mar 2007
    Location
    Australia
    Posts
    406

    Default

    um if they turn imcp echo off on one of the hops to google.com ping wont work and ur program would fail same if as if a router failed and there was not alternate route setup on there net work it would fail also if there only using one core router and it fails so will ur ping and if u turn imcp echo off on ur router or try it at a friend house that has it turned off on his router the ping will fail

    there is many situations were ping will fail it is very basic as i said before ping is not always reliable in your case it might be but it might not be for everyone else i was just trying to help u by suggesting some extra features u might be interested in

  19. #19
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    Nope, that sounds pretty dumb. I'd rather just know when my net's working again. This isn't a diagnostic tool.
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

  20. #20
    Senior Member
    Retired Staff Member

    Celestial Entity
    gamepin126's Avatar
    Join Date
    Oct 2004
    Posts
    20,793

    Default

    Good job?
    "A Responsible Citizen Not Only Shares Culture, But Destroys The Copyright Industries"

    "Elegance is not a dispensable luxury but a quality that decides between success and failure. "
    "It Don't Mean a Thing (If It Ain't Got That Swing)"
    “Absence of evidence is not evidence of absence.”

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SCBW] Help with Unit Alert
    By no.ty in forum Reverse Engineering
    Replies: 1
    Last Post: 05-19-2008, 02:21 PM
  2. [StarCraft] Unit Alert
    By Jiggie=#1 in forum Old downloads
    Replies: 29
    Last Post: 08-19-2007, 11:48 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •