Continous Ping with Timestamp?

Discussion in 'Perl Misc' started by John Davis, Aug 20, 2003.

  1. John Davis

    John Davis Guest

    Hey folks,

    I'm a Perl newbie and would like to know. Does perl have any module or
    is there any source code out there that does a continuous ping with
    timestamp attached to it?

    On Solaris, I run this:

    timson% /usr/sbin/ping -s ron
    PING rover.isn.instinet.com: 56 data bytes
    64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=0. time=25.
    ms
    64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=1. time=19.
    ms
    64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=2. time=23.
    ms

    I get continuous pings and also get back the time it takes, which I
    want to log.

    I want to be able to timestamp each ping attempt because there have
    been some issue with latency and I want to be able to track ping times
    with timestamps to see if I can pin point a delay (via our WAN) at the
    time someone reports it.

    Thanks!
     
    John Davis, Aug 20, 2003
    #1
    1. Advertising

  2. John Davis <> wrote:
    JD> Hey folks,

    JD> I'm a Perl newbie and would like to know. Does perl have any module or
    JD> is there any source code out there that does a continuous ping with
    JD> timestamp attached to it?

    JD> On Solaris, I run this:

    JD> timson% /usr/sbin/ping -s ron
    JD> PING rover.isn.instinet.com: 56 data bytes
    JD> 64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=0. time=25.
    JD> ms
    JD> 64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=1. time=19.
    JD> ms
    JD> 64 bytes from ron.iseen.yahoo.com (172.98.123.3): icmp_seq=2. time=23.
    JD> ms

    JD> I get continuous pings and also get back the time it takes, which I
    JD> want to log.

    JD> I want to be able to timestamp each ping attempt because there have
    JD> been some issue with latency and I want to be able to track ping times
    JD> with timestamps to see if I can pin point a delay (via our WAN) at the
    JD> time someone reports it.

    Net::ping's hires() will accomplish that.

    http://search.cpan.org/search?query=Ping&mode=all

    Regards,

    Nicholas

    --
    "Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html
    "Meanings are another story." http://www.ifas.org/wa/glossolalia.html
     
    Nicholas Dronen, Aug 20, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    19
    Views:
    10,335
    Neredbojias
    Jun 29, 2005
  2. mobil
    Replies:
    3
    Views:
    254
    Basilisk96
    May 1, 2007
  3. nirvana
    Replies:
    4
    Views:
    317
  4. piyu
    Replies:
    1
    Views:
    322
    John B. Matthews
    Dec 12, 2008
  5. Replies:
    15
    Views:
    186
    Robert Klemme
    Nov 4, 2005
Loading...

Share This Page