get_systemd_units
List all systemd units and their states. Filter by active, inactive, or failed to quickly assess service health on Linux.
Instructions
Lists all systemd units and their states. The state param filters by exact match on the Active column ('failed', 'active', 'inactive'). Read-only via systemctl; fatal if systemctl is missing or fails. Use for a full service inventory; get_service_status for one unit's details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | optional state filter: 'failed', 'active', 'inactive' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | ||
| errors | No |