80 lines
2 KiB
Groff
80 lines
2 KiB
Groff
.\"
|
|
.\" Copyright (c) 2012-2015 Matthieu Herrb <matthieu@herrb.eu>
|
|
.\"
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
.\"
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
.\"
|
|
.Dd $Mdocdate: September 29 2015 $
|
|
.Dt ECHOC 1
|
|
.Os
|
|
.Sh NAME
|
|
.Nm echoc
|
|
.Nd send UDP packets to network hosts and wait for replies
|
|
.Sh SYNOPSYS
|
|
.Nm echoc
|
|
.Bk -words
|
|
.Op Fl dv
|
|
.Op Fl c Ar count
|
|
.Op Fl i Ar ms
|
|
.Op Fl l Ar len
|
|
.Op Fl p Ar port
|
|
.Op Fl t Ar ms
|
|
.Ar host
|
|
.Ek
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
sends UDP packets to the
|
|
.Dv ECHO
|
|
service on the remote
|
|
.Ar host .
|
|
.Nm
|
|
displays the start/end date of loss of connectivity.
|
|
The options are as follow:
|
|
.Bl -tag -width Ds
|
|
.It Fl c Ar count
|
|
Stop sending after
|
|
.Ar count
|
|
packets have been sent.
|
|
.It Fl d
|
|
Set the
|
|
.Dv Don't Fragment
|
|
bit on outgoing datagrams, on systems that allow programs to control it.
|
|
On some systems (MacOSX, OpenBSD) this option will do nothing and the
|
|
generated datagrams will have the DF bit set or not, depending on
|
|
system settings.
|
|
.It Fl i Ar ms
|
|
wait
|
|
.Ar ms
|
|
milliseconds between every packet (default: 100 ms).
|
|
.It Fl l Ar len
|
|
Send packets of length
|
|
.Ar len
|
|
bytes (default: 10).
|
|
.It Fl p Ar port
|
|
Set destination port to
|
|
.Ar port
|
|
(default: 7 - echo).
|
|
.It Fl t Ar ms
|
|
Wait at most
|
|
.Ar ms
|
|
milliseconds for the reply before declaring the connection dead
|
|
(default: 500ms).
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr nc 1 ,
|
|
.Xr ping 8 ,
|
|
.Xr ping6 8
|
|
.Sh AUTHOR
|
|
The
|
|
.Nm
|
|
utility was written for tetaneutral.net by Matthieu Herrb.
|
|
|