= CLI = `wrf4g` is a WRF4G's Command Line Interface (CLI) for managing WRF experiments. == Available commands == Type `--help` option obtain information about all commands: {{{ #!sh $ wrf4g --help WRF4G is a framework for the execution and monitoring of the WRF Modelling System in distributed computing resources. For additional information, see http://meteo.unican.es/trac/wiki/WRF4G . Usage: wrf4g [ --version ] [ -h | --help ] [ --dbg ] [ ... ] Options: -h --help Show help. --version Show version. --dbg Debug mode. wrf4g commands are: start Start DRM4G daemon, database and ssh-agent stop Stop DRM4G daemon, database and ssh-agent status Check DRM4G daemon, database and ssh-agent conf Configure DRM4G daemon, scheduler, database and logger parameters exp Manage WRF4G experiments rea Manage WRF4G realizations resource Manage computing resources id Manage reosurce identities host Print information about the hosts job Submit, get status and history and cancel jobs See 'wrf4g --help' for more information on a specific command. }}} `start` : {{{ Start DRM4G and MySQL daemons and ssh-agent. Usage: wrf4g start [ --dbg ] [ --clear-conf ] [ --disc-jobs ] [ --ext-db ] [ --db-port=port ] [ --db-host=hostname ] Options: --dbg Debug mode. --clear-conf Clear WRF4G's settings stored in .wrf4g directory. --disc-jobs All available jobs on WRF4G will be discared. --ext-db It will be used an external MySQL database. --db-port=port Port number to use for MySQL connection [default: 25000]. --db-host=hostname Hostname for MySQL connection. }}} `stop`: {{{ Stop DRM4G and MySQL daemons and ssh-agent. Usage: wrf4g stop [ --dbg ] Options: --dbg Debug mode. }}} `status`: {{{ Check DRM4G and MySQL daemons and ssh-agent. Usage: wrf4g status [ --dbg ] Options: --dbg Debug mode }}} `conf`: {{{ Configure DRM4G daemon, scheduler, database and logging parameters. Usage: wrf4g conf ( daemon | sched | logger | database ) [ --dbg ] Options: --dbg Debug mode }}} `exp` : {{{ Manage WRF4G experiments. Usage: wrf4g exp list [ --pattern= ] wrf4g exp define [ --dbg ] [ --force ] [ --from-template= ] [ --dir= ] wrf4g exp edit [ --dbg ] wrf4g exp create [ --dbg ] [ --dry-run ] [ --dir= ] wrf4g exp update [ --dbg ] [ --dry-run ] wrf4g exp submit [ --dbg ] [ --dry-run ] [ --priority= ] [ --pattern= ] [ --rea-state= ] [ --rerun ] wrf4g exp status [ --dbg ] [ --pattern= ] [ --rea-state= ] [ --delay= ] wrf4g exp cancel [ --dbg ] [ --dry-run ] [ --pattern= ] [ --rea-state= ] [ --hard ] wrf4g exp set-priority [ --dbg ] [ --dry-run ] [ --pattern= ] wrf4g exp delete [ --dbg ] [ --dry-run ] Options: --dbg Debug mode. -n --dry-run Dry run. -f --force Force to remove if it exists. -P --priority= Fix-priority for scheduling [default: 0]. -p --pattern= Pattern to find experiments and realizations. -s --rea-state= Select only realizations in the indicated state. Available states : PREPARED, SUBMITTED, RUNNING, PENDING, FAILED and FINISHED -t --from-template= Experiment template, avaible templates are default, single, physics. -d --dir= Directory to create or start an experiment [default: ./]. --delay= Refresh experiment information every delay seconds. --rerun Force to run although this realization or experiment has finished. --hard Remove jobs from without synchronizing. Commands: list Show all the experiments available. define Create the files needed to define a WRF4G experiment. edit Edit experiment.wrf4g file. create Given experiment.wrf4g file, prepare the experiment creating the realizations and chunks needed. update Update the experiment configuration. submit Submit the experiment. status Check the status of realizations and chunks showing computing resources, job identifier and exit codes (SEE EXIT CODES) cancel Cancel the active realizations by killing their jobs. set-priority Change the scheduling priority of any job releted to a realization. The priority must be in range [0,20], and the default value is 0. When a job gets a priority of 20, it becomes an urgent job. This job is dispatched as soon as possible passing all the scheduling policies. delete Remove the experiment from the database. EXIT CODES 1 : Error creating directory to simulate 2 : Error creating log directory 3 : Error copying apps 4 : Error app type does not exist 5 : Error executing source script 6 : Job already executed 7 : Error copying restart files 8 : There is a mismatch in the restart date 9 : Error copying namelist.wps 10 : Error downloading WPS files 11 : Error copying boundaries 12 : Error modifying namelist 13 : Error executing PREPROCESSOR 14 : Error linking GRIB files 15 : Error executing UNGRIB 16 : Error executing METGRID 17 : Error executing REAL 18 : Error uploading WPS files 19 : Error executing WRF 20 : Error executing POSTPROCESSOR 21 : Error copying output file 22 : Job killed by the system 255: Unexpected error }}} `rea`: {{{ Manage WRF4G realizations. Usage: wrf4g rea submit [ --dbg ] [ --dry-run ] [ --priority= ] [ --rerun ] [ [ ] ] wrf4g rea status [ --dbg ] [ --delay= ] wrf4g rea log [ --dbg ] [ --dir= ] wrf4g rea set-priority [ --dbg ] [ --dry-run ] wrf4g rea cancel [ --dbg ] [ --dry-run ] [ --hard ] Options: --dbg Debug mode. -n --dry-run Dry run. --rerun Force to run although the realization has finished. -P --priority= Fix-priority for scheduling [default: 0]. --delay= Refresh experiment information every delay seconds. -d --dir= Directory to unpack log files [default: ./]. --hard Remove jobs from without synchronizing. Commands: submit Submit the realization. status Check the status of a realization showing computing resources, job identifier and exit codes (SEE EXIT CODES). log Get log files from a chunk. set-priority Change the scheduling priority of any job releted to the realization. The priority must be in range [0,20], and the default value is 0. When a job gets a priority of 20, it becomes an urgent job, and it is dispatched as soon as possible passing all the scheduling policies. cancel Cancel the realization by killing its jobs. EXIT CODES 1 : Error creating directory to simulate 2 : Error creating log directory 3 : Error copying apps 4 : Error app type does not exist 5 : Error executing source script 6 : Job already executed 7 : Error copying restart files 8 : There is a mismatch in the restart date 9 : Error copying namelist.wps 10 : Error downloading WPS files 11 : Error copying boundaries 12 : Error modifying namelist 13 : Error executing PREPROCESSOR 14 : Error linking GRIB files 15 : Error executing UNGRIB 16 : Error executing METGRID 17 : Error executing REAL 18 : Error uploading WPS files 19 : Error executing WRF 20 : Error executing POSTPROCESSOR 21 : Error copying output file 22 : Job killed by the system 255: Unexpected error }}} `job` : {{{ Submit, get status and history and cancel jobs. Usage: wrf4g job submit [ --dbg ] [ --dep ... ]