# Maintenance windows

Source: https://docs.neode.sk/console/maintenance-windows/
Last updated: 2026-11-30

> Hold the alerts of computers while you patch or restart them, and still hear about the ones that don't come back.

A maintenance window is a time when the alerts of a set of devices are held.
While it runs, no alert rule sends an alert for those devices: no mail, no
channel message, no webhook. The alerts are still written, marked **Held by**
the window, so nothing is lost. When the window ends, a grace time gives the
devices a few minutes to come back. A device that is still offline after that,
or still above a rule's limit, raises its alert as usual, once.

![The Maintenance tab with a running window for three devices, a planned one for the whole server and a weekly one](https://docs.neode.sk/shots/maintenance-windows-light.png)

Windows are listed on the **Maintenance** tab of
[Alerts and automation](https://docs.neode.sk/console/alerts-and-automation.md): running ones
first, then the planned ones by start time, with their devices, their time,
how many alerts they held and who made them.

## Who can do what

- Seeing windows needs **View devices**. Making, changing, ending and deleting
  them needs **Manage organization devices**, the permission of
  [fleet tasks](https://docs.neode.sk/console/fleet-tasks.md).
- A window for the whole server (`all`) also needs **Change server settings**.
- A person whose [device scope](https://docs.neode.sk/people/permissions.md) is limited sees and
  changes only windows whose devices all lie in that scope, and can't make a
  window that names a device outside it, also not through a group or tag.
- The **Maintenance** tab is on the Alerts and automation page, which needs
  **Change server settings**. Without it, a person starts and sees windows
  from the device list.

## Make a window

Click **New window** and fill in:

- **Name**, and a **Note** for the people who see the window.
- **Devices**: device IDs, group names, `tag:name`, `org:id` or `site:id`,
  one per line or separated by commas, the same way a fleet task names its
  devices. `all` is the whole server. A group or tag is read again while the
  window runs, so a device that joins the group is covered.
- **Runs**:
  - **From now** for a number of minutes;
  - **Once**, from a start to an end;
  - **Every week**, on the days you tick, from a **Start time** for a
    **Length** in minutes;
  - **Cron**, with a cron expression such as `0 22 * * sat` and a length.
- **Time zone**: the times are read in the server's zone from
  [Settings, Time](https://docs.neode.sk/console/settings.md) unless you pick another.
- **Grace time**: how long after the end a device may still be offline before
  it raises its alert. 15 minutes unless you change it.

A weekly window's length is time on the wall clock: a window from 22:00 for
8 hours ends at 06:00 local time, also in the nights the clocks change.

![The New window sheet for a weekly window on Saturdays from 22:00](https://docs.neode.sk/shots/maintenance-windows-sheet-light.png)

The row menu of a running window has **End now** and **Extend by** 30m, 1h
or 2h. Ending a weekly window ends only the run that is
on; the next week's run comes as planned. The grace time follows the new end.

## Start maintenance from the device list

Select devices in the [device list](https://docs.neode.sk/console/devices.md) and click
**Start maintenance**, or pick it from one device's menu. Give the window a
name and a **Length** (30m, 1h, 2h, 4h, or **Custom** for your own number of
minutes), then click **Start**. The window starts at once.

![The Start maintenance dialog for two selected devices](https://docs.neode.sk/shots/maintenance-windows-start-light.png)

A device a window holds has a wrench icon in the device list, with the window
and its end in the tooltip, and a banner on its device page.

## Fleet tasks

A fleet task of type update, install, restart or script can hold the alerts of
its devices while it runs: tick **Hold alerts for these devices while the task
runs** when you create it. The window starts with the task and ends when its
last device has reported, plus the grace time. It's ticked by default for
update and restart tasks. See [Fleet tasks](https://docs.neode.sk/console/fleet-tasks.md#tasks).

## Held alerts

The **Alert history** tab leaves held alerts out. Tick **Show held alerts** to
see them, each with the window that held it.

## What isn't held

- The security alerts (new devices, join requests, repeated failed sign-ins)
  and other alerts of the server itself.
- The **Send alert** step of a workflow, which someone set up on purpose.
- Network monitoring records whether its targets answer but raises no alerts,
  so there's nothing of it to hold.

## Integrations and the command line

When a window starts and ends, webhooks, notification channels and SIEM
forwarding that subscribe to **Maintenance window started** and **Maintenance
window ended** get an event. The end event says how many alerts the window
held. Every start and end is also in the audit log, with every change to a
window.

From the command line:

```sh
neodesk maintenance window-create --name "Patch night" --scope "group:Berlin office" --minutes 120
neodesk maintenance windows --state running
neodesk maintenance window-extend mw_1a2b3c --minutes 30
neodesk maintenance window-end mw_1a2b3c
```

[The neodesk command line](https://docs.neode.sk/command-line/neodesk.md) says how to sign in
and run them. The console's `/metrics` has `neodesk_maintenance_held_alerts` per window and
`neodesk_maintenance_windows_running`.
