Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399665 - net-analyzer/fping-? - wrong logic behind -C -q switch combination ?
Summary: net-analyzer/fping-? - wrong logic behind -C -q switch combination ?
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL: http://fping.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 01:17 UTC by M. Prášek
Modified: 2012-03-06 18:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. Prášek 2012-01-22 01:17:32 UTC
in fping package there is a -q swith that according a manpage " -q   Quiet. Don't show per-target results, just set final exit status " and " -C   Similar  to -c, but the per-target statistics are displayed in a format designed for automated response-time statistics gathering.  For example:   % fping -C 5 -q somehost
            somehost : 91.7 37.0 29.2 - 36.8
with is nice good parsable result.. 

But using -C something -q  switches actually does not produce results as expected. " somehost : 91.7 37.0 29.2 - 36.8" is returned to STDERR but not stdout. And if You catch stderr for other parsing, results are mixed with ICMP errors, espercially if you use list of IP from file (-f option) and that file have a number os deadh IPs . I think there should be another swith working like -q -ie suppress per ping and per host statistic, giving only a result " somehost : 91.7 37.0 29.2 - 36.8" and in STDIN Hope my enghlish is underestable 


Reproducible: Always

Steps to Reproduce:
1. fping -C 5 -q -f /path/what_to_ping
2.
3.
Actual Results:  
no output to STDOUT

STDERR contains mix of ICMP error responses and  expexted results
ICMP Host Unreachable from xxxx
.
.
ICMP Redirect from xxxxxxxx
x.x.x.x : 11.2 15.0 18.2 - 24.0
.
.
somehost : 91.7 37.0 29.2 76.1 36.8


Expected Results:  
in STDOUT:

x.x.x.x : 11.2 15.0 18.2 - 24.0
.
.
somehost : 91.7 37.0 29.2 76.1 36.8
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-23 13:03:06 UTC
Please post your `emerge -vpq net-analyzer/fping' output in a comment.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-06 18:49:57 UTC
Please bring up this issue upstream.