LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2016, 09:22 AM   #1
zied99
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Fping


hello,
I am using fping to show the address ip of hosts alive like this:
Code:
fping -A -d -a -q -g  192.168.1.0/24>file.txt
the result of this command is:
Code:
livebox.home (192.168.1.1)
set-top-box41.home (192.168.1.10)
pc38.home (192.168.1.11)
pc43.home (192.168.1.12)
pc39.home (192.168.1.15)
My problem is that this command display this hosts and take about 28s to stop running.I don't know how can i do to stop this command after it display the hosts.
Please help me.
Thank you in advance for your answers
 
Old 05-18-2016, 09:57 AM   #2
dab1414
Member
 
Registered: May 2011
Location: OK, USA
Distribution: Slackware 14.1_64
Posts: 70

Rep: Reputation: 49
Quote:
Originally Posted by zied99 View Post
My problem is that this command display this hosts and take about 28s to stop running.

28s seems about normal for this command with number of addresses, and number that are active. If you read "man fping", it will tell you the default is 3 attemps, also with a 500ms timeout, and icmp packet sending interval of 25ms.

Try adding "-r 1" for 1 retry, maybe "-i 10" for shorter interval, perhaps play with "-t n" ( where n is in ms (defaults to 500)).
Do you need to go to 192.168.1.24?, remember each address that is not live will waste approx. 1500ms.

Anyhow hopefully interpreted the manpage some for you...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to stop fping conditionally massy Linux - General 3 01-21-2014 08:05 AM
[SOLVED] using fping in a shell for running in crontab massy Linux - General 1 01-21-2014 04:57 AM
Need help installing FPING Treikayan Linux - Software 2 10-31-2008 11:18 PM
ping from a file (not fping) noir911 Linux - Networking 2 02-04-2008 08:45 PM
fping says > duplicate for [0] saavik Linux - Networking 2 09-30-2002 02:24 AM


All times are GMT -5. The time now is 01:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration