You are here: 17 Object Triggers > References > Node Triggers

17.12 Node Triggers

Triggers attached to nodes follow the same basic rules and formats as attaching them to other objects; however, not all attribute options are valid for each object. Nodes, like the other objects, have a unique set of trigger rules. The table below details the methods, options, and other notable details that come with attaching triggers to nodes.

17.12.1 Creation Methods

Method Format Example
Command line on existing node: mschedctl - c mschedctl -c trigger <trigSpec> -o node:<nodeID>

> mschedctl -c trigger EType=fail,AType=exec,Action="/tmp/nodeFailure.sh" -o node:node01

Node configuration in moab.cfg: NODECFG NODECFG[<name>] TRIGGER=<trigSpec>

NODECFG[node04] TRIGGER=EType=threshold,AType=exec,Action="$HOME/hightemp.py $OID",Threshold=gmetric[TEMP]>70

17.12.2 Valid Event Types

17.12.3 Valid Action Types

17.12.4 Thresholds

Node threshold settings
Valid ETypes threshold
Valid Threshold types gmetric

17.12.5 Mail Recipient

The user listed first in ADMINCFG[1] (usually root)

See Using a Trigger to Send Email for more information.

© 2016 Adaptive Computing