> For the complete documentation index, see [llms.txt](https://docs.n2ws.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n2ws.com/user-guide/appendix-b-agents-configuration-format.md).

# Appendix B - Agents Configuration Format

N2W allows configuring remote and local agents from the UI. See section [6.1.2](/user-guide/6-windows-instances-backup.md#6-1-2-downloading-and-distributing-the-agents-configuration).

* The configuration in the text box needs to be in ‘INI’ format.
* According to the section header, N2W will pass the key-value pairs to the appropriate agents.
* Each agent writes the set of key-value pairs it receives for a section to its configuration file and restarts to reload the configuration.

**To configure agents:**

1. Select <img src="/files/KGDZjMQSppsOqXMFhCSZ" alt="" data-size="line"> **Server Settings** > **Agents Configuration**.
2. Write the configuration in the text box with the section header followed by its key-pair, as shown in the sample rules below.
3. Select **Publish**.

The following sample rules show how to configure relevant agents:

* Pass configuration to **all remote agents of** a given **policy**. The following will pass the key-value `max_seconds_to_wait_for_vss=100` to all remote agents that belong to the policy by the name ‘`p1`’:

```
[policy__p1]
max_seconds_to_wait_for_vss=100
```

* Pass configuration to a **specific remote** agent. The following will pass the key-value `max_seconds_to_wait_for_vss=100` to the remote agent whose AWS instance ID is ‘`agent_id` ‘:

```
[agent__agent_id]
max_seconds_to_wait_for_vss=100
```

* Pass configuration to **all** **remote** agents. The following will pass the key-value `max_seconds_to_wait_for_policy=600` to all remote agents:

```
[all_remote_agents]
max_seconds_to_wait_for_policy=600
```

* Pass configuration to a **local** agent. The following will pass the key-value `max_seconds_to_wait_for_policy=600` to the local agent:

```
[local_agent]
max_seconds_to_wait_for_policy=600
```

One or more instances of all of the above can be pasted together to the text box in the **Agent Configuration** screen. On **Publish**, N2W iterates over all sections and passes the relevant configuration to each agent.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.n2ws.com/user-guide/appendix-b-agents-configuration-format.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
