Coder Social home page Coder Social logo

Comments (4)

schweikert avatar schweikert commented on July 20, 2024

I think that the code is correct and the documentation is misleading. -q suppresses the output for each probe. If you use -c4, you would see 4 lines for each host. With -q, you only see the final statistics per host, which is the sole output. Removing even that output doesn't make much sense: you can always redirect to /dev/null, if you want to ping, but are not interested in the results.

from fping.

xtaran avatar xtaran commented on July 20, 2024

Hi David,

On Sun, Jul 15, 2012 at 02:38:46PM -0700, David Schweikert wrote:

I think that the code is correct and the documentation is
misleading. -q suppresses the output for each probe. If you use -c4,
you would see 4 lines for each host. With -q, you only see the final
statistics per host, which is the sole output.

... which is not the case if the pinged hosts are in the same LAN and
therefore that's the bug:

$ fping -q -c4 kiva1 kiva2 kiva3 kiva4 kiva5 kiva6 kiva7
ICMP Host Unreachable from 192.33.99.16 for ICMP Echo sent to kiva7 (192.33.99.17)
ICMP Host Unreachable from 192.33.99.16 for ICMP Echo sent to kiva7 (192.33.99.17)
ICMP Host Unreachable from 192.33.99.16 for ICMP Echo sent to kiva7 (192.33.99.17)
kiva1 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.21/0.36/0.82
kiva2 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.35/0.39/0.45
kiva3 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.12/0.14/0.17
kiva4 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.14/0.20/0.34
kiva5 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.14/0.15/0.19
kiva6 : xmt/rcv/%loss = 4/4/0%, min/avg/max = 0.04/0.04/0.07
kiva7 : xmt/rcv/%loss = 4/0/100%

The issue are the "ICMP Host Unreachable" lines, not the
"xmt/rcv/%loss" lines. The "ICMP Host Unreachable" lines should not
happen with -q.

So please suppress all "ICMP Host Unreachable" lines if -q is given.

    Regards, Axel

from fping.

schweikert avatar schweikert commented on July 20, 2024

The ICMP Host Unreachable lines are a separate issue, which was recently fixed (#1)

from fping.

TeamBuyAtkinson avatar TeamBuyAtkinson commented on July 20, 2024

This issue still exists for fedora. Please investigate.

from fping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.