linux-systemd-timers
Retrieves a list of systemd timer unit files on the Linux system. Runs systemctl list-unit-files --type=timer to return the name and activation status of registered timers as structured fields.
Command properties
| Item | Description |
|---|---|
| Command type | Driver query |
| Required permission | Administrator |
| License usage | Licensed command |
| Parallel execution | Not supported |
| Distributed execution | Runs on Data Node (mapper) |
Syntax
Output fields
| Field | Type | Description |
|---|---|---|
timer | string | Timer unit file name |
status | string | Timer activation status. Takes values such as enabled, disabled, static, masked, etc. |
Error codes
Parse errors
| Error code | Message | Description |
|---|---|---|
95040 | no-read-permission | Occurs when a user without administrator privilege runs the command |
Runtime errors
N/A
Description
The linux-systemd-timers command runs systemctl list-unit-files --type=timer to collect the status of all systemd timer unit files registered on the system. The list-unit-files subcommand displays the activation status of installed unit files.
The command skips the first line (header) of the output and splits each line by whitespace until an empty line appears, extracting the timer unit file name and activation status.
Examples
-
Retrieve all systemd timers
linux-systemd-timersRetrieves the activation status of all systemd timer unit files registered on the system.
-
Retrieve only enabled timers
linux-systemd-timers | search status == "enabled"Filters and retrieves only timers whose activation status is
enabled.