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: :: usage: autosubmit check [-h] [-nt] [-v] EXPID check configuration for specified experiment positional arguments: EXPID experiment identifier options: -h, --help show this help message and exit -nt, --notransitive Disable transitive reduction -v, --update_version Update experiment version Example: :: autosubmit check cxxx How to use check in running time: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In ``jobs_cxxx.yml`` , you can set check(default true) to check the scripts during autosubmit run cxx. 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 ------------------------- To generate the cmd files of the current non-active jobs experiment, it is possible to use the command: :: autosubmit inspect EXPID EXPID is the experiment identifier. Options: :: usage: autosubmit inspect [-h] [-nt] [-f] [-cw] [-v] [-q] [-fl LIST | -fc FILTER_CHUNKS | -fs {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN} | -ft FILTER_TYPE] EXPID Generate all .cmd files positional arguments: EXPID experiment identifier options: -h, --help show this help message and exit -nt, --notransitive Disable transitive reduction -f, --force Overwrite all cmd -cw, --check_wrapper Generate possible wrapper in the current workflow -v, --update_version Update experiment version -q, --quick Only checks one job per each section -fl LIST, --list LIST Supply the list of job names to be filtered. Default = "Any". LIST = "b037_20101101_fc3_21_sim b037_20111101_fc4_26_sim" -fc FILTER_CHUNKS, --filter_chunks FILTER_CHUNKS Supply the list of chunks to filter the list of jobs. Default = "Any". LIST = "[ 19601101 [ fc0 [1 2 3 4] fc1 [1] ] 19651101 [ fc0 [16-30] ] ]" -fs {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN}, --filter_status {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN} Select the original status to filter the list of jobs -ft FILTER_TYPE, --filter_type FILTER_TYPE Select the job type to filter the list of jobs Examples: with autosubmit.lock present or not: :: autosubmit inspect cxxx with autosubmit.lock present or not: :: autosubmit inspect cxxx -f without autosubmit.lock: :: autosubmit inspect cxxx -fl [-fc,-fs or ft] To generate cmd for wrappers: :: autosubmit inspect cxxx -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. To generate cmd only for a single job of the section : :: autosubmit inspect cxxx -q How to monitor an experiment ---------------------------- To monitor the status of the experiment, use the command: :: autosubmit monitor EXPID *EXPID* is the experiment identifier. Options: :: usage: autosubmit monitor [-h] [-o {pdf,png,ps,svg,txt}] [-group_by {date,member,chunk,split,automatic}] [-expand EXPAND] [-expand_status EXPAND_STATUS] [--hide_groups] [-cw] [-fl LIST | -fc FILTER_CHUNKS | -fs {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN} | -ft FILTER_TYPE] [--hide] [-txt | -txtlog] [-nt] [-v] [-p] expid plots specified experiment positional arguments: expid experiment identifier options: -h, --help show this help message and exit -o {pdf,png,ps,svg,txt}, --output {pdf,png,ps,svg,txt} chooses type of output for generated plot -group_by {date,member,chunk,split,automatic} Groups the jobs automatically or by date, member, chunk or split -expand EXPAND Supply the list of dates/members/chunks to filter the list of jobs. Default = "Any". LIST = "[ 19601101 [ fc0 [1 2 3 4] fc1 [1] ] 19651101 [ fc0 [16-30] ] ]" -expand_status EXPAND_STATUS Select the stat uses to be expanded --hide_groups Hides the groups from the plot -cw, --check_wrapper Generate possible wrapper in the current workflow -fl LIST, --list LIST Supply the list of job names to be filtered. Default = "Any". LIST = "b037_20101101_fc3_21_sim b037_20111101_fc4_26_sim" -fc FILTER_CHUNKS, --filter_chunks FILTER_CHUNKS Supply the list of chunks to filter the list of jobs. Default = "Any". LIST = "[ 19601101 [ fc0 [1 2 3 4] fc1 [1] ] 19651101 [ fc0 [16-30] ] ]" -fs {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN}, --filter_status {Any,READY,COMPLETED,WAITING,SUSPENDED,FAILED,UNKNOWN} Select the original status to filter the list of jobs -ft FILTER_TYPE, --filter_type FILTER_TYPE Select the job type to filter the list of jobs --hide hides plot window -txt, --text Generates only txt status file -txtlog, --txt_logfiles Generates only txt status file(AS < 3.12b behaviour) -nt, --notransitive Disable transitive reduction -v, --update_version Update experiment version -p, --profile Prints performance parameters of the execution of this command. Example: :: autosubmit monitor cxxx The location where the user can find the generated plots with date and timestamp can be found below: :: //plot/__