4.0 Scheduler Commands > Commands > mdiag > mdiag-triggers

Conventions

mdiag -T

Synopsis

mdiag -T [triggerid] [-v] [--blocking]

Overview

The mdiag -T command is used to present information about each Trigger. The information presented includes Name, State, Action, Event Time. The command gathers information from the Moab cache which prevents it from waiting for the scheduler, but the --blocking option can be used to bypass the cache and allow waiting for the scheduler.

Examples

Example 4-22:  

> mdiag -T
TrigID                Object ID               Event  AType           ActionDate       State
--------------------- -------------------- -------- ------ -------------------- -----------
sched_trig.0          sched:Moab                end   exec                    -     Blocked  
3                     node:node010         threshol   exec                    -     Blocked  
5                     job:Moab.7            preempt   exec                    -     Blocked  
6                     job:Moab.8            preempt   exec                    -     Blocked  
4*                    job:Moab.5              start   exec            -00:00:36     Failure  
* indicates trigger has completed

Example 4-23:  

> mdiag -T -v
TrigID                Object ID               Event  AType           ActionDate       State
--------------------- -------------------- -------- ------ -------------------- -----------
sched_trig.0          sched:Moab                end   exec                    -     Blocked  
  Name:          sched_trig
  Flags:         globaltrig
  BlockUntil:    INFINITY  ActiveTime:  ---
  Action Data:   date
  NOTE:  trigger can launch

3                     node:node010         threshol   exec                    -     Blocked  
  Flags:         globaltrig
  BlockUntil:    INFINITY  ActiveTime:  ---
  Threshold:     CPULoad > 3.00  (current value: 0.00)
  Action Data:   date
  NOTE:  trigger cannot launch - threshold not satisfied - threshold type not supported

5                     job:Moab.7            preempt   exec                    -     Blocked  
  Flags:         user,globaltrig
  BlockUntil:    INFINITY  ActiveTime:  ---
  Action Data:   $HOME/tools/preemptnotify.pl $OID $OWNER $HOSTNAME

6                     job:Moab.8            preempt   exec                    -     Blocked  
  Flags:         user,globaltrig
  BlockUntil:    INFINITY  ActiveTime:  ---
  Action Data:   $HOME/tools/preemptnotify.pl $OID $OWNER $HOSTNAME
  NOTE:  trigger cannot launch - parent job Moab.8 is in state Idle

4*                    job:Moab.5              start   exec  Mon Jan 16 12:33:00     Failure  
  Launch Time:   -00:02:17
  Flags:         globaltrig
  Last Execution State: Failure (ExitCode: 0)
  BlockUntil:    00:00:00  ActiveTime:  00:00:00
  Action Data:   $HOME/tools/preemptnotify.pl $OID $OWNER $HOSTNAME
  ALERT:  trigger failure detected
  Message:       'exec '/usr/test/moab/tools/preemptnotify.pl' cannot be located or is not executable'

* indicates trigger has completed