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

ItemDescription
Command typeDriver query
Required permissionAdministrator
License usageLicensed command
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

linux-systemd-timers

Output fields

FieldTypeDescription
timerstringTimer unit file name
statusstringTimer activation status. Takes values such as enabled, disabled, static, masked, etc.

Error codes

Parse errors
Error codeMessageDescription
95040no-read-permissionOccurs 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

  1. Retrieve all systemd timers

    linux-systemd-timers
    

    Retrieves the activation status of all systemd timer unit files registered on the system.

  2. Retrieve only enabled timers

    linux-systemd-timers
    | search status == "enabled"
    

    Filters and retrieves only timers whose activation status is enabled.