Skip to content

Commit

Permalink
Imported Debian patches: 2.4b2-to-ipv6-16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
schweikert committed Dec 10, 2011
1 parent fa6cbdb commit 873bc1d
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 54 deletions.
19 changes: 11 additions & 8 deletions fping.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH fping l
.TH fping 8
.SH NAME
fping \- send ICMP ECHO_REQUEST packets to network hosts
.SH SYNOPSIS
Expand All @@ -12,9 +12,9 @@ fping \- send ICMP ECHO_REQUEST packets to network hosts


.B fping
is a
.MS ping 8
like program which uses the Internet Control
is a program like
.B ping(8)
which uses the Internet Control
Message Protocol (ICMP) echo request to determine if a target host is
responding.
.B fping
Expand All @@ -37,8 +37,7 @@ looping indefinitely (as in
).
.PP
Unlike
.B ping
,
.B ping,
.B fping
is meant to be used in scripts, so its output is designed to be
easy to parse.
Expand Down Expand Up @@ -130,12 +129,16 @@ Retry limit (default 3). This is the number of times an attempt at pinging
a target will be made, not including the first try.
.IP \fB-s\fR 5
Print cumulative statistics upon exit.
.IP \fB-S\fIaddr\fR 5
Set source address.
.IP \fB-t\fIn\fR 5
Initial target timeout in milliseconds (default 500). In the default
mode, this is the amount of time that
.B fping
waits for a response to its first request. Successive timeouts are
multiplied by the backoff factor.
.IP \fB-T\fIn\fR 5
Select timeout in seconds (default 10).
.IP \fB-u\fR 5
Show targets that are unreachable.
.IP \fB-v\fR 5
Expand All @@ -152,7 +155,7 @@ Sure the open2 usage is not needed in this example, but it's a good open2
example none the less.
.nf

#!/usr/local/bin/perl
#!/usr/bin/perl
require 'open2.pl';

$MAILTO = "root";
Expand All @@ -178,7 +181,7 @@ Another good example is when you want to perform an action only on hosts
that are currently reachable.
.nf

#!/usr/local/bin/perl
#!/usr/bin/perl

$hosts_to_backup = `cat /etc/hosts.backup | fping -a`;

Expand Down
Loading

0 comments on commit 873bc1d

Please sign in to comment.