17.0 Object triggers > How-to's > Viewing a trigger

Conventions

17.8 Viewing a trigger

To view a trigger

  1. Type mdiag -T in the command line.
  2. Specify either the trigger ID, the trigger name, the name of the object to which the trigger is attached, or the type of object to which the trigger is attached. For example, if you wanted to view information about a trigger with ID trigger.34 and name jobFailTrigger, which is attached to job job.493, you could run any of the following commands:
  3. > mdiag -T trigger.34
     
    > mdiag -T job.493
     
    > mdiag -T jobFailTrigger

     

    > mdiag -T job

    The output of the first command would provide basic information about trigger.34; the second command, information about all triggers attached to job.493 that the user can access; the third command, basic information about jobFailTrigger; and the fourth command, basic information about all triggers attached to jobs that the user can access.

  4. Optional: to view additional information about the trigger, run the same command with the -v flag specified after -T.

    > mdiag -T -v job.493

    This mode outputs information in multiple lines.

  5. Optional: to view detailed information about all triggers available to you, use the mdiag -T -v command. This outputs all triggers available to the user in a single line for each trigger. It provides additional state information about triggers, including reasons triggers are currently blocked.
  6. > mdiag -T -v

© 2014 Adaptive Computing