Monitor and Check Experiments ============================= How to check the experiment configuration ----------------------------------------- To check the configuration of the experiment, use the command: :: autosubmit check EXPID *EXPID* is the experiment identifier. It checks experiment configuration and warns about any detected error or inconsistency. It is used to check if the script is well-formed. If any template has an inconsistency it will replace them for an empty value on the cmd generated. Options: .. runcmd:: autosubmit check -h Example: :: autosubmit check How to use check in running time: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In ``jobs_.yml``, you can set check (default true) to check the scripts during autosubmit run. There are two parameters related to check: * CHECK: Controls the mechanism that allows replacing an unused variable with an empty string ( %_% substitution). It is TRUE by default. * SHOW_CHECK_WARNINGS: For debugging purposes. It will print a lot of information regarding variables and substitution if it is set to TRUE. .. code-block:: yaml CHECK: TRUE or FALSE or ON_SUBMISSION # Default is TRUE SHOW_CHECK_WARNINGS: TRUE or FALSE # Default is FALSE :: CHECK: TRUE # Static templates (existing on `autosubmit create`). Used to substitute empty variables CHECK: ON_SUBMISSION # Dynamic templates (generated on running time). Used to substitute empty variables. CHECK: FALSE # Used to disable this substitution. :: SHOW_CHECK_WARNINGS: TRUE # Shows a LOT of information. Disabled by default. For example: .. code-block:: yaml LOCAL_SETUP: FILE: filepath_that_exists PLATFORM: LOCAL WALLCLOCK: 05:00 CHECK: TRUE SHOW_CHECK_WARNINGS: TRUE ... SIM: FILE: filepath_that_no_exists_until_setup_is_processed PLATFORM: bsc_es DEPENDENCIES: LOCAL_SETUP SIM-1 RUNNING: chunk WALLCLOCK: 05:00 CHECK: ON_SUBMISSION SHOW_CHECK_WARNINGS: FALSE ... .. _inspect_cmd: How to generate cmd files ------------------------- The `inspect` command generates the ``.cmd`` files for jobs in an experiment without submitting them. This allows you to preview the rendered scripts and verify that all parameters are correctly substituted prior to submission. To generate the cmd files of the current **non-active** jobs experiment, use the command: :: autosubmit inspect EXPID EXPID is the experiment identifier. Options: .. runcmd:: autosubmit inspect -h Examples: with autosubmit.lock present or not: :: autosubmit inspect with autosubmit.lock present or not: :: autosubmit inspect -f without autosubmit.lock: :: autosubmit inspect -fl [-fc,-fs or -ft] To generate cmd for wrappers: :: autosubmit inspect -cw -f With autosubmit.lock and no (-f) force, it will only generate all files that are not submitted. Without autosubmit.lock, it will generate all unless filtered by -fl,-fc,-fs or -ft. The following filters can be combined to select jobs to inspect. +--------+----------------------------------------------+----------------------------------------------+ | FILTER | Meaning | Example of VALUE_TO_FILTER | +========+==============================================+==============================================+ | -fl | filter by job name | ``-fl "a000_20101101_fc3_21_SIM"`` | +--------+----------------------------------------------+----------------------------------------------+ | -fs | filter by job status | ``-fs FAILED`` | +--------+----------------------------------------------+----------------------------------------------+ | -ft | filter by job type (and optionally split) | ``-ft TRANSFER`` | +--------+----------------------------------------------+----------------------------------------------+ | -fc | filter by chunk/section/split | ``-fc "[ 19601101 [ fc1 [1] ] ]"`` | +--------+----------------------------------------------+----------------------------------------------+ If multiple filters are provided (``-fl, -fs, -ft, -fc``), they will be combined as logical AND, meaning that only jobs matching ALL specified filters will be selected for inspection. To combine multiple filters: :: autosubmit inspect \ -fc "[20200101 [ fc0 [1] ] ]" \ -fs WAITING \ -ft LOCALJOB \ -fl "_20200101_fc0_1_1_LOCALJOB" To generate cmd only for one job per section: :: autosubmit inspect -q How to monitor an experiment ---------------------------- The `monitor` command allows you to visualize the experiment workflow and shows each job's status (color coded) or stores a text file with the status of each job. You can select which jobs to monitor by using optional filters and grouping options. To monitor the status of the experiment, use the command: :: autosubmit monitor EXPID *EXPID* is the experiment identifier. Options: .. runcmd:: autosubmit monitor -h Example: :: autosubmit monitor The location where the user can find the generated plots with date and timestamp can be found below: :: //plot/__