+ Post New Thread
Results 1 to 14 of 14
Wireless Networks Thread, Ping an IP address and log results in Technical; Hi, I'm wanting to ping an IP address for long period of time and log the results in a test ...
  1. #1
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Ping an IP address and log results

    Hi,

    I'm wanting to ping an IP address for long period of time and log the results in a test file.

    I've got some programs but nothing quite like I want.

    I obviously need the response time and if packets were received 100% or not but I also want the time and date of the ping too.

    I'm surprised there isn't a parameter for the windows ping command for these but anyway, any ideas?

  2. #2

    Join Date
    Jan 2006
    Location
    Teesside
    Posts
    79
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    18

    Re: Ping an IP address and log results

    A single IP address?

    You could script it easily or there are numerious *Nix apps. Or you could try this: http://www.tools4ever.com/products/free/freeping/

  3. #3
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Ping an IP address and log results

    I'm on Windows so no *nix I'm afraid (

    A single IP will work, two maybe.

    Basically out ISA server connection to the LEA's upstream server gets really slow and timesout numerous times a day. They say it's the ISA not them so I'm setting up a laptop connected straight to connection doing a continuous ping that I can then show them so they know it's not my ISA.

    At the minute ISA will redirect to a backup upstream if the primary dies, I'd like to ping that too but it's not as important if I cant.

    Will check out that link, thanks.

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Ping an IP address and log results

    Code:
    ping address -t > file.txt
    ?

  5. #5
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Ping an IP address and log results

    lol it's that simple! Knew it could do it, bless it.

    The only thing missing is a timestamp of each request, know of any way to get one?

    And thanks for that.

  6. #6

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Ping an IP address and log results

    Could you not use the time stamp on the actual file? Or are you continually adding to the file?

    If so, you could use the "time /t" command to output the time to the DOS prompt?

  7. #7
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Ping an IP address and log results

    It will be running constantly for around a week, or at least a file each day.

    The command suggested previously gets me a log looking like

    Pinging 192.168.1.1 with 32 bytes of data:

    Reply from 192.168.1.1: bytes=32 time<1ms TTL=128
    Reply from 192.168.1.1: bytes=32 time<1ms TTL=128
    .
    .
    .forever

    Ping statistics for 192.168.1.1:

    Packets: Sent = 11, Received = 11, Lost = 0 (0% loss),

    Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, Average = 0ms


    Which is fine for a short time, but I could do with it saying at what times each request is so I know when it's not responding and for how long.

    The program I've found that am using at the moment logs like such:

    7/7/2006 9:32:39 ----- Started service -----
    7/7/2006 9:32:39 10.21.0.191 Ok [10ms %100]
    7/7/2006 9:32:39 10.21.0.200 Ok [10ms %100]
    7/7/2006 9:33:39 10.21.0.200 Ok [0ms %100]
    7/7/2006 9:33:39 10.21.0.191 Ok [0ms %100]
    7/7/2006 9:34:39 10.21.0.191 Ok [0ms %100]
    7/7/2006 9:34:39 10.21.0.200 Ok [0ms %100]
    7/7/2006 9:35:39 10.21.0.191 Ok [0ms %100]
    7/7/2006 9:35:39 10.21.0.200 Ok [0ms %100]

    Thinking about it, I'm not sure now what's not good enough about that.

  8. #8
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,043
    Thank Post
    22
    Thanked 177 Times in 123 Posts
    Rep Power
    51

    Re: Ping an IP address and log results

    Try Servers Alive http://www.woodstone.nu/salive/

    Its free for up to 10 devices - does time logged ping and much much more.

  9. #9
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Ping an IP address and log results

    whateveryourname was: do you need to do this internaly? I'm using l8nc.com to monitor my home router - it only displays todays and yesterdays results but may be what your after

    Here's my graph: http://www.l8nc.com/graph.php?jid=72...7b049c73d780ec

  10. #10
    Guest

    Re: Ping an IP address and log results

    You could try Angry IP Scanner

    http://ipscan.sourceforge.net/ipscan.exe

    It can be run from the command line to append info to a txt file like this

    Scanned 192.168.1.1 - 192.168.1.1
    07/07/2006 11:03:08

    192.168.1.1 9 ms SERVER 122

    Scanned 192.168.1.1 - 192.168.1.1
    07/07/2006 11:04:22

    192.168.1.1 8 ms SERVER 122

    Scanned 192.168.1.1 - 192.168.1.1
    07/07/2006 11:04:30

    192.168.1.1 7 ms SERVER 122

    So you is you created 2 batch files say run1 and run2. Put the command line to run the ping and then have each batch file call the other batch file after the ping it would run forever collecting the data you need.

    Oooo my head hurts now lol

  11. #11

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

    Re: Ping an IP address and log results

    Might be misunderstanding what your intentions are, but are you intending to continually ping your ISA server or the upstream caches? If anyone's in charge of monitoring the caches, they may be a little irked if you ping -t them for a week!

    If you're working internally and you just want a nice timestamped list of the pings, have a look at RoboTest. Multiple targets supported and logging too.

    http://www.hahntech.com/robotest.htm

    Example output on 5 second intervals...

    1 12:02:42 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.1
    1 12:02:42 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.16.2
    1 12:02:42 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.2

    2 12:02:47 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.1
    2 12:02:47 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.16.2
    2 12:02:47 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.2

    3 12:02:52 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.1
    3 12:02:52 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.16.2
    3 12:02:52 Jul 07, 2006 Success: 0.00 secs <Ping>192.168.0.2

  12. #12
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,637
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    22

    Re: Ping an IP address and log results

    That'll do just fine OutToLunch.
    I'd actually tried that along with a dozen others but somehow forgot about it, tut.

    I'm sure they'll get rather pissed at me pinging them constantly, but it's their idea!

    Thanks people.

  13. #13

    m25man's Avatar
    Join Date
    Oct 2005
    Location
    Romford, Essex
    Posts
    1,622
    Thank Post
    49
    Thanked 451 Times in 334 Posts
    Rep Power
    137

    Re: Ping an IP address and log results

    Look@Lan Freeware does a good job - more than your average ping tool.

    http://www.lookatlan.com

    I have seen this in use at a couple of schools recently.

  14. #14

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Ping an IP address and log results

    I use the monitoring feature in ISA 2004 to do this. Every X minutes a ping is sent upstream to the proxy and the round trip time recorded. I also do this for DNS requests upstream. This allows me to monitor connection to CLEO.

SHARE:
+ Post New Thread

Similar Threads

  1. Anybody used PING?
    By sqdge in forum Windows
    Replies: 11
    Last Post: 10th August 2007, 07:25 AM
  2. random ping responses.
    By ranj in forum Wireless Networks
    Replies: 11
    Last Post: 13th March 2007, 04:17 PM
  3. DNS - can't ping by computer name
    By SimpleSi in forum Windows
    Replies: 15
    Last Post: 29th September 2006, 01:42 PM
  4. Anyone for Ping Pong?
    By Optimus in forum Jokes/Interweb Things
    Replies: 2
    Last Post: 30th August 2005, 10:17 AM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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