Comments (3)
Do you expect only the lines for targets for which no response at all was received to be omitted? E.g., as follows?
$ ./src/fping -u -c1 8.8.8.7 8.8.8.8 2>&1 | grep -v '/0/100%'
8.8.8.8 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 80.5/80.5/80.5
from fping.
Yes, similar, but --alive only outputs the IP instead of all this information.
$ ./src/fping -u -c1 8.8.8.7 8.8.8.8 2>&1 | grep -v '/0/100%' | cut -d: -f1 | xargs
8.8.8.8
My (former) usecase:
I have a large Layer 2 Network (i know, i know) with some specialized hardware that sometimes swallows / rate-limits requests on first try. Thus I have to repeat requests to really get an accurate list of all alive devices.
from fping.
Ah, I made a mistake in my example, it should not have had the -u
. I was thinking about:
$ fping -c3 8.8.8.7 8.8.8.8 2>&1 | grep -v -e '/0/100%' -e 'timed out'
8.8.8.8 : [0], 64 bytes, 65.3 ms (65.3 avg, 0% loss)
8.8.8.8 : [1], 64 bytes, 61.3 ms (63.3 avg, 0% loss)
8.8.8.8 : [2], 64 bytes, 64.2 ms (63.6 avg, 0% loss)
8.8.8.8 : xmt/rcv/%loss = 3/3/0%, min/avg/max = 61.3/63.6/65.3
I would expect that the --retry=N
option together with --backoff 1
should help with your use case:
$ fping --retry 10 --backoff 1 --alive 8.8.8.7 8.8.8.8
8.8.8.8
With --backoff 1
, the pause between attempts is constant, as with --count N
, but fping
stops sending echo requests once it has received an answer.
from fping.
Related Issues (20)
- setting SO_TIMESTAMPNS option: Protocol not available (on debian running in docker container) HOT 17
- -u does not work when -c is used HOT 3
- Duplicate reply packets when pinging multiple targets HOT 6
- -g option not working properly HOT 3
- fping ipv6 address -g not working
- Warning when using autoconf from version 2.62 and 2.70 HOT 2
- Architectures support
- fping -n -g x.x.x.x/24 hangs with systemd-resolved HOT 3
- not enough sequence numbers available! (expire_timeout=10000000000, host_nr=0, ping_count=0, seqmap_next_id=0) HOT 9
- Combinations "-c -a" and "-c -u" give same output as combination "-c -q" instead of just "-c"
- Inconsistent limits for address generation via `-g`, `--generator` using either range or CIDR HOT 4
- No error message when `getprotobyname()` fails HOT 1
- Time of execution when using retry -r increases in a nonlinear growth HOT 2
- errors on fping version 5.1 HOT 4
- -D, --timestamp with custom time string eq: %Y-%m-%d %H:%M:%S HOT 9
- fping6 issue with multiple addresses HOT 1
- fping crashes with __darwin_check_fd_set_overflow. Please help to resolve the issue. HOT 3
- Is it possible to provide official portable build ?
- Fix code scanning alert - Incorrect return-value check for a 'scanf'-like function HOT 1
- packet loss after 8-10 targets HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fping.