LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2009, 03:49 PM   #1
rodeo
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu, Kali
Posts: 18

Rep: Reputation: Disabled
Question ping question


I'm looking for the linux equivalent of ctrl-break in a ping. I want to monitor stats of a running ping. I'm not looking for ctrl-c, that just kills the ping, same as windows.
 
Old 12-21-2009, 04:01 PM   #2
allanf
Member
 
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Blog Entries: 1

Rep: Reputation: 20
Quote:
Originally Posted by rodeo View Post
I'm looking for the linux equivalent of ctrl-break in a ping. I want to monitor stats of a running ping. I'm not looking for ctrl-c, that just kills the ping, same as windows.
Describing the "concept" rather than someone's implementation would go a long way on getting the answer. (By this I mean "what does the "control-break" provide as a feature set and what feature is needed in particular.)
 
Old 12-21-2009, 04:45 PM   #3
kanver
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Rep: Reputation: 1
Not sure if that's what you're looking for. You can pipe the output of a ping by doing "ping xy > outputfile" or ping xy|less". If the windows-ping changes its behavior upon a ctrl+break, you'll have to describe this behavior in detail.
 
1 members found this post helpful.
Old 12-22-2009, 07:25 AM   #4
rodeo
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu, Kali
Posts: 18

Original Poster
Rep: Reputation: Disabled
in windows;

ping -t www.google.com
runs a ping until you stop it with ctrl-c. Now lets say that the pings are flying and I want the stats of the ping so far, but dont want the rest of the pings to stop. In windows I can press ctrl-break and get the current stats and the ping keeps running, it doesnt stop. I dont really know how to explain it beyond that, you might just have to try it to see what I'm talking about, network admins knows what this is(well, windows using admins anyway), its not a common ping command I guess.

My goal is to monitor my DS3 with a running ping for long periods of time, say 24 hours.

Thanks for the replies so far, this forum has given me better information in one evening than the networking forums for my distro has in about a week.
 
Old 12-22-2009, 08:03 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
how about using mtr ?
 
1 members found this post helpful.
Old 12-22-2009, 09:13 AM   #6
rodeo
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu, Kali
Posts: 18

Original Poster
Rep: Reputation: Disabled
mtr is a great one, I use it along side ping daily.
 
Old 01-16-2010, 10:45 PM   #7
allanf
Member
 
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Blog Entries: 1

Rep: Reputation: 20
Quote:
Originally Posted by rodeo View Post
in windows;

ping -t www.google.com
runs a ping until you stop it with ctrl-c. Now lets say that the pings are flying and I want the stats of the ping so far, but dont want the rest of the pings to stop. In windows I can press ctrl-break and get the current stats and the ping keeps running, it doesnt stop. I dont really know how to explain it beyond that, you might just have to try it to see what I'm talking about, network admins knows what this is(well, windows using admins anyway), its not a common ping command I guess.

My goal is to monitor my DS3 with a running ping for long periods of time, say 24 hours.

Thanks for the replies so far, this forum has given me better information in one evening than the networking forums for my distro has in about a week.
Say the you have ping running and stdout is being redirected to /dev/null,
In the terminal where you are running the ping enter the key stroke
control-backslash
or determine the PID of the ping and send the "sigquit" signal via the kill command. It outputs the summary in the terminal where it is running.

Code:
bash$ ping -i 60 XXX.XXXXXXXX.XXX >/dev/null
3/3 packets, 0% loss, min/avg/ewma/max = 31.013/32.179/32.866/33.360 ms
5/5 packets, 0% loss, min/avg/ewma/max = 31.013/32.001/32.669/33.360 ms
6/6 packets, 0% loss, min/avg/ewma/max = 31.013/32.103/32.662/33.360 ms
7/7 packets, 0% loss, min/avg/ewma/max = 31.013/32.019/32.519/33.360 ms
8/8 packets, 0% loss, min/avg/ewma/max = 31.013/32.122/32.560/33.360 ms
10/10 packets, 0% loss, min/avg/ewma/max = 30.973/31.967/32.270/33.360 ms
20/20 packets, 0% loss, min/avg/ewma/max = 47.309/48.604/48.503/50.947 ms
28/28 packets, 0% loss, min/avg/ewma/max = 47.309/48.493/48.301/50.947 ms
39/38 packets, 2% loss, min/avg/ewma/max = 46.972/48.501/48.430/50.947 ms
^Cbash$
 
1 members found this post helpful.
Old 01-18-2010, 07:07 AM   #8
rodeo
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu, Kali
Posts: 18

Original Poster
Rep: Reputation: Disabled
Outstanding, I'll be trying this out when I get to the office today. I also ran across a python script that sound similar. It seems like the capability is out there, just not many people use it.
 
Old 01-19-2010, 04:14 AM   #9
Arun-karthik
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Hi,

could anyone tell me where the temporary ip address is stored in redhat.Mostly the network settings is stored in /etc.I like to know where the temporary ip address(dynamic) is stored other than /etc...plz send me some study guide for RHCE-133...
 
Old 01-20-2010, 07:18 AM   #10
rodeo
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu, Kali
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Arun-karthik View Post
Hi,

could anyone tell me where the temporary ip address is stored in redhat.Mostly the network settings is stored in /etc.I like to know where the temporary ip address(dynamic) is stored other than /etc...plz send me some study guide for RHCE-133...
http://tinyurl.com/yb6248u

Hope that helps
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
Ping question a5an0 Linux - Networking 5 05-09-2005 09:54 PM
Ping question mikeshn Linux - Networking 2 06-01-2003 07:42 PM
Question about ping. jayakrishnan Linux - General 2 04-10-2002 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration