get_systemd_units
List all systemd units with their states and filter by active, inactive, or failed status to get a complete service inventory 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 |