Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.)
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.
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.
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$
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.
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...
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.