# Ping a host

### Description

The `Ping a host` action can be used to ping a host using the ICMP protocol.

The result it true when the host is reachable, otherwise false.

### Options

| Option               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Workflow action name | The name of the workflow action.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Host name/IP         | The name or the IP address of the host to ping                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Ping type            | <p>The type of ping to send to the specified hostname or IP address</p><ul><li>Classic ping: This calls the ping as a command line of the operating system. The result is true when no packets (defined in the "Nr. packets to send" option) are lost.</li><li>System ping: This option uses the Java implemented methods. The result is true when the host name can be resolved and the host is reachable within the given timeout period.</li><li>System ping then classic ping: try both options (first the system ping and when that fails, try the classic ping)</li></ul> |
| Timeout (ms)         | The timeout in ms when the system ping option is used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Nr. packets to send  | The number of packets to send (by default 2, only used by the Classic ping option).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/workflows/actions/ping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
