xref: /netbsd-src/usr.sbin/spray/spray.8 (revision 9d3470de484e1bdee5b265a2c460a5014fd9d6f0)
1.\"	$NetBSD: spray.8,v 1.7 2003/06/26 10:10:11 wiz Exp $
2.\"
3.\" Copyright (c) 1994 James A. Jegers
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. The name of the author may not be used to endorse or promote products
12.\"    derived from this software without specific prior written permission
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\"
25.Dd July 10, 1995
26.Dt SPRAY 8
27.Os
28.Sh NAME
29.Nm spray
30.Nd send many packets to host
31.Sh SYNOPSIS
32.Nm
33.Op Fl c Ar count
34.Op Fl d Ar delay
35.Op Fl l Ar length
36.Ar host ...
37.Sh DESCRIPTION
38.Nm
39sends multiple RPC packets to
40.Ar host
41and records how many of them were correctly received and how long it took.
42.Pp
43The options are as follows:
44.Bl -tag -width indent
45.It Fl c Ar count
46Send
47.Ar count
48packets.
49.It Fl d Ar delay
50Pause
51.Ar delay
52microseconds between sending each packet.
53.It Fl l Ar length
54Set the length of the packet that holds the RPC call message to
55.Ar length
56bytes.
57Not all values of
58.Ar length
59are possible because RPC data is encoded using XDR.
60.Nm
61rounds up to the nearest possible value.
62.El
63.Pp
64.Nm
65is intended for use in network testing, measurement, and management.
66This command
67.Bf -emphasis
68can be very hard on a network and should be used with caution.
69.Ef
70.Sh SEE ALSO
71.Xr netstat 1 ,
72.Xr ifconfig 8 ,
73.Xr ping 8 ,
74.Xr rpc.sprayd 8
75