services/list
List systemd services by name pattern and state filters, showing active, load, and sub states for monitoring or troubleshooting.
Instructions
Lists systemd services with optional filtering. Output includes ActiveState, LoadState, and SubState.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Wildcard pattern to match service names (e.g., 'kube*', '*ssh*') | |
| sub_state | No | Filter by sub state (e.g., 'running', 'exited', 'dead') | |
| load_state | No | Filter by load state (e.g., 'loaded', 'not-found') | |
| privileged | No | Run as root (may be required depending on policies) | |
| active_state | No | Filter by active state (e.g., 'active', 'failed', 'inactive') | |
| output_format | No | Desired output format (e.g. json, table, wide). Defaults to text |