Comments (3)
I am not really sure what you want to achieve with the above fping
invocation.
It seems to me as if fping -u -r 1 10.10.5.90 10.10.5.1
already provides all the interesting information. So what purpose have the options -c 1 -q
? Do you attempt to get the following output (I am using two different IP addresses for illustration)?
$ fping -r1 -q -u -c1 8.8.8.7 8.8.8.8 2>&1 | grep -v ,
8.8.8.7 : xmt/rcv/%loss = 1/0/100%
Since the fping
command line specifies to send just one echo request, the statistics can be added with, e.g., sed
:
$ fping -r1 -u 8.8.8.7 8.8.8.8 | sed 's,$, : xmt/rcv/%loss = 1/0/100%,'
8.8.8.7 : xmt/rcv/%loss = 1/0/100%
It seems to me as if just -u -r N
already provides all the information the combination of -r 1 -c N -q -u
can give.
from fping.
I am not really sure what you want to achieve with the above
fping
invocation.
I was just saying that by adding -c 1
(so just a count) it prints out the reachable targets and their stats, while with -q
it shouldn't.
from fping.
The option -c N
prints one output line for every received reply or timeout, and one summary line per target at the end.
The combination -c N -q
only prints the summary line per target, but not the individual per-probe reports.
If you want the output format of -u
, i.e., just the Name or IP address of each unreachable target, but want fping
to try several times to reach each target, you can use -r N
optionally combined with -B 1
, instead of using -c N
. (By default, fping
uses -r 3
.)
from fping.
Related Issues (20)
- fping shows packet loss, but tcpdump shows normal HOT 3
- --alive and --count options mutual exclusive HOT 3
- 'setting SO_TIMESTAMPNS option: Protocol not available' error fping 5.1-1 on Ubuntu 22.04 over WSL1 HOT 12
- setting SO_TIMESTAMPNS option: Protocol not available (on debian running in docker container) HOT 17
- 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 2
- 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
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.