top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: connection uptime logger?
SquarkyD
Posts: 5951
Location: Brisbane, Queensland
i need to find a program that i can install on my PC that will log everytime it goes offline. Been having lots of dropouts (over 50 a day in some cases) with bigpond cable and need to make a log to show them how bad the problem is. i've found heaps of programs that half do the job but nothign descent yet. Any suggestions?
system
--
reso
I can't read
Posts: 4285
Location: Brisbane, Queensland
You may be able to save logs with pingplotter freeware.
SquarkyD
Posts: 5952
Location: Brisbane, Queensland
no logging that i could find :(
trog
AGN Admin
Posts: 23247
Location: Brisbane, Queensland
could you just run ping -t all day and record the output of that?
Obes
Posts: 5907
Location: Brisbane, Queensland
Start -> Run

C:\Documents and Settings\Obes>ping -t 10.0.0.1 >c:\pingout.txt

Let it run for as long as you like ... days even...
Press ctrl-c to end

example of c:\pingout.txt



Pinging 10.0.0.1 with 32 bytes of data:

Reply from 10.0.0.1: bytes=32 time<1ms TTL=64
Reply from 10.0.0.1: bytes=32 time<1ms TTL=64
Reply from 10.0.0.1: bytes=32 time<1ms TTL=64
Reply from 10.0.0.1: bytes=32 time<1ms TTL=64
Reply from 10.0.0.1: bytes=32 time<1ms TTL=64

Ping statistics for 10.0.0.1:
Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C


I'd advise picking a host inside the Telstra network (eg. ns0.telstra.net or some other named host, ns0 probably isn't a good choice but the telstra gimps should be able to offer you one.). Possibly supplementing your ping log with a tracert to said host.



last edited by Obes at 22:43:11 14/Apr/08
shad
Posts: 2239
Location: Brisbane, Queensland
Is there any reason why you have to check for dropouts yourself? They have tools there that can see the dropouts for adsl and cable.
trog
AGN Admin
Posts: 23248
Location: Brisbane, Queensland
Squarky - I just hacked this together real quick - its a PHP script that'll try to ping www.telstra.com, and if it fails it'll just log the time to a file.

All you'll need to do is download PHP and just run it a la: php.exe connmon.php
Jim
Posts: 7665
Location: Brisbane, Queensland
mwuaha I know your username now obes
SquarkyD
Posts: 5953
Location: Brisbane, Queensland
awesome thanks trog, i'll let it run for a few days.
SquarkyD
Posts: 5954
Location: Brisbane, Queensland
I broke it apparenlty :/

PHP Notice: Use of undefined constant fp - assumed 'fp' in F:\Program Files\PHP
\conmon.phps on line 31
PHP Notice: Undefined variable: data in F:\Program Files\PHP\conmon.phps on lin
e 47

yes i have windows installed on F:
also had to add ?PHP to the top of the script to make it run :p
trog
AGN Admin
Posts: 23254
Location: Brisbane, Queensland
Ah yeh sorry, forgot the default PHP now requires that.

Also haha windows on f:
Obes
Posts: 5910
Location: Brisbane, Queensland
its more lol at using php to do it
trog
AGN Admin
Posts: 23255
Location: Brisbane, Queensland
I defy you to do that otherwise in less than 4 minutes in some other language obes - IF that's even your real name
teq
Posts: 1130
Location: Brisbane, Queensland
perl is the only other app i could do it in too
mostly because of strawberry perl - http://strawberryperl.com/
3x0dus
Posts: 999
Location: Townsville, Queensland
im with trog,
i will often quickly do up a script in php and run it via console, works well.
dRanged
Posts: 1153
Location: Sydney, New South Wales
the telstra gimps


haha, how quaintly appropriate.
stinky
Posts: 2507
Location: Brisbane, Queensland
pfft php. ps this is untested


pingtest.bat

@echo off

:START
ping server.com

if errorlevel 1 GOTO LOG

GOTO START

:LOG
time /T >> c:\failures.txt
GOTO START
SquarkyD
Posts: 5956
Location: Brisbane, Queensland
is there anyway to make that run every 60 seconds rather than constant pinging?
Obes
Posts: 5912
Location: Brisbane, Queensland
The easiest and simpliest way ...

ping -t ns0.telstra.net >c:\pingout.txt

And at the bottom of the file after you press ctrl-c is

Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


Unless your time is synchronised with their time, time stamps are about as useful as a pink poodles poo covered in candy. Interesting, but not something anyone wants.

Besides which being down 50% of the time is a far more compelling argument then "at these random times it didn't work".

Stinky did it with a batchfile for the time logging (dirty ping is a bit dodge sometimes with its errorlevel in my experience)

No downloads, no installs... you can use that on pretty much any OS

Or we could go installing random crap all over the place... Let's introduce another point of failure ...
Mantra
Crusty old man
Posts: 1981
Location: Brisbane, Queensland
I hate to say this.. but... Obes is right.
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.