list_units
Inspect systemd units in memory read-only, filtering by scope, state, type, or name pattern to triage services.
Instructions
List the units systemd has in memory (systemctl list-units --all). Read-only.
scope is 'user' or 'system'. state filters on a LOAD, ACTIVE or SUB state, type on a unit type such as 'service', pattern on a glob over unit names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| scope | Yes | ||
| state | No | ||
| pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| units | Yes |