---
name: "spray"
section: "8"
platform: "macos"
package: "network_cmds"
version: "741.100.2"
release: "macOS 26.5"
platforms: ["freebsd", "macos"]
url: "https://new.carta.tech/spray"
---

# spray(8)

send many packets to host

## NAME

**spray** – send many packets to host

## SYNOPSIS

**spray** \[**-c** *count*\] \[**-d** *delay*\] \[**-l** *length*\] *host* ...

## DESCRIPTION

**Spray** sends multiple RPC packets to  *host* and records how many of them were correctly received and how long it took.

The options are as follows:

- **-c** *count*

  Send *count* packets.

- **-d** *delay*

  Pause *delay* microseconds between sending each packet.

- **-l** *length*

  Set the length of the packet that holds the RPC call message to  *length* bytes. Not all values of *length* are possible because RPC data is encoded using XDR.  **Spray** rounds up to the nearest possible value.

**Spray** is intended for use in network testing, measurement, and management. This command can be very hard on a network and should be used with caution.

## SEE ALSO

[netstat(1)](/netstat/1.md), [ifconfig(8)](/ifconfig/8.md), [ping(8)](/ping/8.md)
