[hlds] OT: Time-stamped ping.

2005-08-26 Thread Alexander Kobbevik
Anyone know a tool that timestamps a ping with hour:minute:second?

Sorry for asking this list... but admit it... this list holds a lot of
knowledgeable people ;)



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Clayton Macleod
scripting something?

win32:
echo.|time
ping yahoo.com

linux-etc:
date
ping yahoo.com


On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
 Anyone know a tool that timestamps a ping with hour:minute:second?

 Sorry for asking this list... but admit it... this list holds a lot of
 knowledgeable people ;)



 ___
 To unsubscribe, edit your list preferences, or view the list archives, please 
 visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds



--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


RE: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Alexander Kobbevik
I'm pretty lost when it comes to scripting.
Basically I would like the ping -t command to have a timestamp in front or
between pings.

I have searched for it on Google etc. But either they try to get paid for a
tool or it gets too complicated.
I just need the simplest of simplest.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clayton Macleod
Sent: 26. august 2005 12:07
To: hlds@list.valvesoftware.com
Subject: Re: [hlds] OT: Time-stamped ping.

scripting something?

win32:
echo.|time
ping yahoo.com

linux-etc:
date
ping yahoo.com


On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
 Anyone know a tool that timestamps a ping with hour:minute:second?

 Sorry for asking this list... but admit it... this list holds a lot of
 knowledgeable people ;)



 ___
 To unsubscribe, edit your list preferences, or view the list archives,
please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds



--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Clayton Macleod
I just gave you the simplest of the simplest.  I'm not exactly sure
what you're trying to accomplish here.  How is this timestamp going to
be of any use to you?  What is going to issue your ping command?  If
you're simply typing it in manually, well, look at a clock! ;)  If
you're using some script or batch file to run the command then I just
gave you the commands to put in your script or batch file.  I think
it's pretty safe to say that ping -T isn't really what you're
thinking it is, and isn't what you want.  If you want to know what the
time was/is when you issue a command, the simplest way to do that is
to issue a command just before/after that displays the current
date/time.  In win32 you can do that with the command I showed
earlier, a echo.|time will display the current time.  In linux/*nix
you can display that with the date command.

On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
 I'm pretty lost when it comes to scripting.
 Basically I would like the ping -t command to have a timestamp in front or
 between pings.

 I have searched for it on Google etc. But either they try to get paid for a
 tool or it gets too complicated.
 I just need the simplest of simplest.


--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Whisper
--
[ Picked text/plain from multipart/alternative ]
He wants to know when there is a connectivity issue and what time/date it
occured

On 8/26/05, Clayton Macleod [EMAIL PROTECTED] wrote:

 I just gave you the simplest of the simplest. I'm not exactly sure
 what you're trying to accomplish here. How is this timestamp going to
 be of any use to you? What is going to issue your ping command? If
 you're simply typing it in manually, well, look at a clock! ;) If
 you're using some script or batch file to run the command then I just
 gave you the commands to put in your script or batch file. I think
 it's pretty safe to say that ping -T isn't really what you're
 thinking it is, and isn't what you want. If you want to know what the
 time was/is when you issue a command, the simplest way to do that is
 to issue a command just before/after that displays the current
 date/time. In win32 you can do that with the command I showed
 earlier, a echo.|time will display the current time. In linux/*nix
 you can display that with the date command.

 On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
  I'm pretty lost when it comes to scripting.
  Basically I would like the ping -t command to have a timestamp in
 front or
  between pings.
 
  I have searched for it on Google etc. But either they try to get paid
 for a
  tool or it gets too complicated.
  I just need the simplest of simplest.


 --
 Clayton Macleod
 get ye flask
 You cannot get ye flask.

 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds

--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


RE: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Alexander Kobbevik
As an example:

Im pinging a computer or a VPN connection: ping yahoo.com -t
Pinging this for 48 hours and I want to know when and for how long the
connection was down.

Ping is great but I would like to have every line timestamped.

C:\ping yahoo.com -t

Pinging yahoo.com [66.94.234.13] with 32 bytes of data:

Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

Ex.

12:51:23Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
12:51:24Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
12:51:25Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
12:51:26Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
12:51:27Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

Possible?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clayton Macleod
Sent: 26. august 2005 12:34
To: hlds@list.valvesoftware.com
Subject: Re: [hlds] OT: Time-stamped ping.

I just gave you the simplest of the simplest.  I'm not exactly sure
what you're trying to accomplish here.  How is this timestamp going to
be of any use to you?  What is going to issue your ping command?  If
you're simply typing it in manually, well, look at a clock! ;)  If
you're using some script or batch file to run the command then I just
gave you the commands to put in your script or batch file.  I think
it's pretty safe to say that ping -T isn't really what you're
thinking it is, and isn't what you want.  If you want to know what the
time was/is when you issue a command, the simplest way to do that is
to issue a command just before/after that displays the current
date/time.  In win32 you can do that with the command I showed
earlier, a echo.|time will display the current time.  In linux/*nix
you can display that with the date command.

On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
 I'm pretty lost when it comes to scripting.
 Basically I would like the ping -t command to have a timestamp in front
or
 between pings.

 I have searched for it on Google etc. But either they try to get paid for
a
 tool or it gets too complicated.
 I just need the simplest of simplest.


--
Clayton Macleod
get ye flask
You cannot get ye flask.


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


RE: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Matthew White
It is possible to do ping -t -s 1 computer and that will give a timestamp in
seconds like:

Reply from 152.64.32.71: bytes=32 time1ms TTL=128
Timestamp: 152.64.32.71 : 39689577
Reply from 152.64.32.71: bytes=32 time1ms TTL=128
Timestamp: 152.64.32.71 : 39690578
Reply from 152.64.32.71: bytes=32 time1ms TTL=128
Timestamp: 152.64.32.71 : 39691580
Reply from 152.64.32.71: bytes=32 time1ms TTL=128
Timestamp: 152.64.32.71 : 39692581

not sure if this is helpful
--
Regards,

Matt White


Quoting Alexander Kobbevik [EMAIL PROTECTED]:

 As an example:

 Im pinging a computer or a VPN connection: ping yahoo.com -t
 Pinging this for 48 hours and I want to know when and for how long the
 connection was down.

 Ping is great but I would like to have every line timestamped.

 C:\ping yahoo.com -t

 Pinging yahoo.com [66.94.234.13] with 32 bytes of data:

 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

 Ex.

 12:51:23  Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:24  Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
 12:51:25  Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:26  Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:27  Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

 Possible?


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Clayton Macleod
 Sent: 26. august 2005 12:34
 To: hlds@list.valvesoftware.com
 Subject: Re: [hlds] OT: Time-stamped ping.

 I just gave you the simplest of the simplest.  I'm not exactly sure
 what you're trying to accomplish here.  How is this timestamp going to
 be of any use to you?  What is going to issue your ping command?  If
 you're simply typing it in manually, well, look at a clock! ;)  If
 you're using some script or batch file to run the command then I just
 gave you the commands to put in your script or batch file.  I think
 it's pretty safe to say that ping -T isn't really what you're
 thinking it is, and isn't what you want.  If you want to know what the
 time was/is when you issue a command, the simplest way to do that is
 to issue a command just before/after that displays the current
 date/time.  In win32 you can do that with the command I showed
 earlier, a echo.|time will display the current time.  In linux/*nix
 you can display that with the date command.

 On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
  I'm pretty lost when it comes to scripting.
  Basically I would like the ping -t command to have a timestamp in front
 or
  between pings.
 
  I have searched for it on Google etc. But either they try to get paid for
 a
  tool or it gets too complicated.
  I just need the simplest of simplest.


 --
 Clayton Macleod
 get ye flask
 You cannot get ye flask.


 ___
 To unsubscribe, edit your list preferences, or view the list archives, please
 visit:
 http://list.valvesoftware.com/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Clayton Macleod
I see.  Well, this batch file will accomplish that.  It'll only give
you a timestamp after each ping command finishes though.  Still,
that'll give you a timestamp every x seconds, 4 by default.  Might be
better to make that every 10 seconds or 60 or something.  Just change
the -n 10 to however many you want between timestamps.  Just remember
this will also contain the four lines of ping statistics for each
repetition.

:start
echo.|time
ping -n 10 yahoo.com
goto start

put that in some file called pingstats.cmd or pingstats.bat and run
it, it'll keep going until you Ctrl-C it.  I guess you'll actually
want a log of its output too, so you'd just redirect it to some text
file.

pingstats  pinglogs.txt

Then to stop it you just Ctrl-C and then hit Y to answer yes to the
'terminate batch' question that you can't see.  You can't see it
because of the redirection of output to the text file.

On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] wrote:
 As an example:

 Im pinging a computer or a VPN connection: ping yahoo.com -t
 Pinging this for 48 hours and I want to know when and for how long the
 connection was down.

 Ping is great but I would like to have every line timestamped.

 C:\ping yahoo.com -t

 Pinging yahoo.com [66.94.234.13] with 32 bytes of data:

 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

 Ex.

 12:51:23Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:24Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
 12:51:25Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:26Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
 12:51:27Reply from 66.94.234.13: bytes=32 time=173ms TTL=50

 Possible?


--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Clayton Macleod
oh, and add an @echo off line before the :start line and your log
will be cleaner...


--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


RE: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Alexander Kobbevik
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.

Thanks.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clayton Macleod
Sent: 26. august 2005 14:00
To: hlds@list.valvesoftware.com
Subject: Re: [hlds] OT: Time-stamped ping.

oh, and add an @echo off line before the :start line and your log
will be cleaner...


--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread Clayton Macleod
yeah, would be a lot nicer to get it on one line so you could just
grep for the timeouts, rather than having to search manually for them
and take note of the nearest 'time' command.

This stuff may be of interest.  I don't know how simple it is to get
it up and running, as I've only just found it now, but it might do the
trick for you.

http://www.grzyby.pl/monitor/tools.htm
http://www.grzyby.pl/monitor/index.htm
http://www.grzyby.pl/monitor/ping.htm

On 8/26/05, Alexander Kobbevik [EMAIL PROTECTED] 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.

 Thanks.


--
Clayton Macleod
get ye flask
You cannot get ye flask.

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread John Beranek
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

:loop

SET hostname=whateverhostyoulike

ping -n 1 %HOSTNAME% | grep timed

IF %ERRORLEVEL% EQU 0 (
gnudate
)
sleep 10
goto loop
==

So, this requires:

'grep' from the 'grep' package
http://gnuwin32.sourceforge.net/packages/grep.htm

'date' and 'sleep' from the 'coreutils' package (I renamed date.exe to
gnudate.exe so as not to conflict with the windows command)
http://gnuwin32.sourceforge.net/packages/coreutils.htm

The dlls the above require.

I can send you a 902KB zip file with everything if you like.

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


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread John Beranek
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


Re: [hlds] OT: Time-stamped ping.

2005-08-26 Thread James Tucker
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


RE: [hlds] OT: Time-stamped ping.

2005-08-26 Thread ray
 Wow, lot of scripties in herelol. www.pingplotter.com

Will Whois, Ping, Tracert and do it all graphically. Free for the first 30
days and worth more than any script. You can record, screenshot, backtrack,
trace issues and more things than this list would tolerate me telling you
about. Short story = it's a network diagnostic tool designed to do EXACTLY
what you require and does it at a level of service that you'd be happy to
pay for in the end.

Ray S.
RaynServ

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Tucker
Sent: Friday, August 26, 2005 9:23 AM
To: hlds@list.valvesoftware.com
Subject: Re: [hlds] OT: Time-stamped ping.

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





___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds