Networking Forums

Networking Forums > Computer Networking > Linux Networking > ping replacment?

Reply
Thread Tools Display Modes

ping replacment?

 
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      09-01-2003, 12:15 PM
I need something that is better than ping to see response time on a network. I
need to see when a echo-request packet was sendt (time stamp) and when the
echo-reply packet was recieved.

Ping on the RH machine I'm running from, does not give me any time stamp at
all.

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
 
 
 
Floyd Davidson
Guest
Posts: n/a

 
      09-01-2003, 01:25 PM
jorn.dahl-(E-Mail Removed) (Jørn Dahl-Stamnes) wrote:
>I need something that is better than ping to see response time on a network. I
>need to see when a echo-request packet was sendt (time stamp) and when the
>echo-reply packet was recieved.
>
>Ping on the RH machine I'm running from, does not give me any time stamp at
>all.


The source code to ping could easily be hacked to provide that,
but it does sound like a hack.

What are you trying to accomplish?

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
armin walland
Guest
Posts: n/a

 
      09-01-2003, 03:46 PM
On Mon, 01 Sep 2003 12:15:09 GMT, Jørn Dahl-Stamnes wrote:
> I need something that is better than ping to see response time on a network. I
> need to see when a echo-request packet was sendt (time stamp) and when the
> echo-reply packet was recieved.
>
> Ping on the RH machine I'm running from, does not give me any time stamp at
> all.


hping works very nicely

--
life, the universe and everything
www.dtch.org

 
Reply With Quote
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      09-02-2003, 05:35 AM
In article <(E-Mail Removed)>, Floyd Davidson <(E-Mail Removed)> wrote:
>jorn.dahl-(E-Mail Removed) (Jørn Dahl-Stamnes) wrote:
>>I need something that is better than ping to see response time on a network. I

>
>>need to see when a echo-request packet was sendt (time stamp) and when the
>>echo-reply packet was recieved.
>>
>>Ping on the RH machine I'm running from, does not give me any time stamp at
>>all.

>
>The source code to ping could easily be hacked to provide that,
>but it does sound like a hack.
>
>What are you trying to accomplish?


I watched a network connection that somethime lost the connection. I used ping
to see if there was any delay in the network. But when the network lost the
connection, it was not detected by ping when I looked at delay.

I wanted to see when I lost the connection and when it was OK again. And I
want to do it without having to look at the screen all the time, something
like

# ping <some arguments> | tee ping.out

go home and then look a ping.out file the next morning and say "aaah.. at 7 pm
it failed..."

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      09-02-2003, 05:36 AM
In article <(E-Mail Removed)>, www-(E-Mail Removed) wrote:
>On Mon, 01 Sep 2003 12:15:09 GMT, Jørn Dahl-Stamnes wrote:
>> I need something that is better than ping to see response time on a network.

> I
>> need to see when a echo-request packet was sendt (time stamp) and when the
>> echo-reply packet was recieved.
>>
>> Ping on the RH machine I'm running from, does not give me any time stamp at
>> all.

>
>hping works very nicely


# hping
bash: hping: command not found

found where?

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
Floyd Davidson
Guest
Posts: n/a

 
      09-03-2003, 12:11 PM
jorn.dahl-(E-Mail Removed) (Jørn Dahl-Stamnes) wrote:
>In article <(E-Mail Removed)>, Floyd Davidson <(E-Mail Removed)> wrote:
>>
>>What are you trying to accomplish?

>
>I watched a network connection that somethime lost the connection. I used ping
>to see if there was any delay in the network. But when the network lost the
>connection, it was not detected by ping when I looked at delay.
>
>I wanted to see when I lost the connection and when it was OK again. And I
>want to do it without having to look at the screen all the time, something
>like
>
># ping <some arguments> | tee ping.out
>
>go home and then look a ping.out file the next morning and say "aaah.. at 7 pm
>it failed..."


Write a small script with a loop that executes ping at some
regular interval. Depending on what kind of resolution you need,
that can be seconds or minutes... whatever. You only need to
log when it fails, and thus the log will be short and sweet,
and easy to read.

Here is an example that will give you 10 second resolution on
when the ping fails, and 1 second resolution on when it again
succeeds.

#!/bin/sh
#
host=192.168.0.2
interval=10
while true
do
date
echo $host $interval

if ! ping -c1 -w3 $host 2>&1 > /dev/null
then
date >> ping.log
echo " ping FAILED" >> ping.log
echo "*************" >> ping.log
sleep 1
continue
fi
sleep $interval
done


--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) (E-Mail Removed)
 
Reply With Quote
 
Monzai
Guest
Posts: n/a

 
      09-03-2003, 12:49 PM
wget http://www.hping.org/hping2.0.0-rc2.tar.gz
gzip -d hping2.0.0-rc2.tar.gz
tar xvf hping2.0.0-rc2.tar.gz (just to see what you are doing)
cd hping2.0.0-rc2
../configure
make
make install
visit http://www.monzai.com/
:-) Cheers
Monzai

Jørn Dahl-Stamnes wrote:
> In article <(E-Mail Removed)>, www-(E-Mail Removed) wrote:
>
>>On Mon, 01 Sep 2003 12:15:09 GMT, Jørn Dahl-Stamnes wrote:
>>
>>>I need something that is better than ping to see response time on a network.

>>
>>I
>>
>>>need to see when a echo-request packet was sendt (time stamp) and when the
>>>echo-reply packet was recieved.
>>>
>>>Ping on the RH machine I'm running from, does not give me any time stamp at
>>>all.

>>
>>hping works very nicely

>
>
> # hping
> bash: hping: command not found
>
> found where?
>
> Jørn Dahl-Stamnes, EDB Teamco AS
> e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
> web: http://spiderman.novit.no/dahls/


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Client Ping DC not respond,but when DC ping clients they resp ahmad Windows Networking 3 07-17-2007 07:44 PM
Ping 224.0.0.2 ping: sendmsg: Operation not permitted interessato@gmail.com Linux Networking 4 01-24-2006 02:47 AM
Ping from cron not having same effect as ping from console Dean Schulze Linux Networking 2 02-24-2004 08:10 PM
Some services working but can't ping (not ping-able) Micah Elliott Linux Networking 1 12-05-2003 09:47 AM
Windows ping and Linux ping command? tom Linux Networking 5 11-10-2003 08:52 PM



1 2 3 4 5 6 7 8 9 10 11