This is a multi-part message in MIME format. -- This .gz contains a win32 simple ping program which pings as fast as it can, concatenating a timestamp in the form [%H:%M:%S] to the start of the echo response.
This will generate (on a lan) VERY large logs in a very short time (it's pretty damn fast). Over a 100ms latency, you're still looking at around a 2mb log per hour. Adding a small delay to prevent this kind of log flooding is easy, but the next question then is, how long do you want it? If you need a reverse-logging pinger (only logs ICMP echo timeouts), let me know. I've included source code. John Beranek wrote: >John Beranek wrote: > > >>Alexander Kobbevik wrote: >> >> >> >>>Thank you, Clayton. >>> >>>Im still open for suggestions how to make it happen on one line though. >>>Running this for a weekend and then trying to analyze the log will give me a >>>headace. >>> >>> >>I would tend to say that standard windows scripting commands are a bit >>basic, so I knocked up a batch file that uses a few GnuWin32 commands, >>which are ports of GNU tools to windows: >> >>====================================================================== >>@echo off >> >> >[snip] > >This script will only output anything when a ping fails, and then it'll >output something like: > > >Request timed out. >Fri Aug 26 13:50:02 GMT Daylight Time 2005 > > >There's a few modifications you could make: > >* More pings per run: change the number after the -n in the ping command. > >* Hide the "Request timed out." line: add "> nul" to the end of the ping >command > >* Ping more/less often: change the number in the sleep command > >John. > >-- >John Beranek To generalise is to be an idiot. >http://redux.org.uk/ -- William Blake > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, please >visit: >http://list.valvesoftware.com/mailman/listinfo/hlds > > > -- [ dateping.tar.gz of type application/octet-stream deleted ] -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds

