LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

strigger

Manage Slurm cluster event triggers

TLDR

Register a trigger for system events
$ strigger --set --primary_slurmctld_failure -p [path/to/script]
copy
Register trigger for job completion
$ strigger --set -j [job_id] -f -p "[path/to/script] [args]"
copy
View active triggers
$ strigger --get
copy
View triggers for specific job
$ strigger --get -j [job_id]
copy
Clear a trigger
$ strigger --clear [trigger_id]
copy
Register permanent trigger
$ strigger --set --down --flags=PERM -p [path/to/script]
copy

SYNOPSIS

strigger --set [OPTIONS...]strigger --get [OPTIONS...]strigger --clear [OPTIONS...]

DESCRIPTION

strigger manages event triggers in Slurm that automatically execute scripts when specific events occur. Triggers can respond to node state changes, job completions, system failures, and other cluster events. The daemon checks triggers approximately every 15 seconds.Triggered programs execute on the slurmctld node with a 5-minute timeout. By default, triggers are removed after execution unless marked permanent with --flags=PERM.

PARAMETERS

--set

Register a new trigger
--get
Display registered triggers
--clear
Remove a trigger
-j, --jobid id
Target specific job
--node name
Target specific node
-p, --program path
Script to execute when trigger fires
--offset seconds
Timing adjustment (negative = before event)
--flags flags
Trigger flags (PERM = permanent)
-u, --user name
Filter by trigger creator
-v, --verbose
Detailed output
-q, --quiet
Suppress non-critical errors

EVENT TYPES

Node events: --down, --up, --drained, --draining, --idle, --failJob events: --fini, --timeSystem events: --primaryslurmctldfailure, --primaryslurmdbdfailure, --reconfig

INSTALL

sudo apt install slurm-client
copy

CAVEATS

Only SlurmUser (typically root) can set triggers. Programs run on slurmctld node, not compute nodes. Triggers must be re-registered after execution unless permanent. Scripts must be executable and accessible from slurmctld host.

HISTORY

strigger is part of Slurm, developed at Lawrence Livermore National Laboratory starting in 2002. Event triggers allow automated responses to cluster events for monitoring, alerting, and workflow automation. Slurm is now maintained by SchedMD.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid