Command line interface (CLI)
The ecFlow command line interface (CLI) is provided by the ecflow_client executable.
A large number of commands/options enabled by the ecFlowUI are also available as CLI commands.
ecflow_client accepts a variety of commands, specified as --<command>.
For example, the command --load can be used, as in the example below, to load the given file into the server.
ecflow_client --load host1.3141.check
The comprehensive list of ecflow_client commands is presented below. These commands can be combined with ecflow_client common options to further customise the ecflow_client behaviour.
Getting help
The list of commands, amongst other details, can be displayed by using the option --help.
ecflow_client --help
Using the ecFlow command line interface
Reference Commands
Command |
Type |
Description |
|---|---|---|
Mark task as aborted. For use in the ‘.ecf’ script file only |
||
Alter the node according to the options. |
||
Archives suite or family nodes IF they have child nodes(otherwise does nothing). |
||
Begin playing the definition in the server. |
||
Add a set of suites, to an existing handle. |
||
Change an existing handle so that new suites can be added automatically. |
||
Drop/de-register the client handle. |
||
Drop/de-register all handles associated with the given user. |
||
Register interest in a set of suites. |
||
Remove a set of suites, from an existing handle. |
||
Shows all the client handles, and the suites they reference |
||
Checks the expression and limits in the server. Will also check trigger references. |
||
Test hierarchical Job generation only, for chosen Node. |
||
Forces the definition file in the server to be written to disk or allow mode, |
||
Mark task as complete. For use in the ‘.ecf’ script file only |
||
Disables debug output from the server |
||
Enables debug output from the server |
||
Deletes the specified node(s) or _ALL_ existing definitions( i.e delete all suites) in the server. |
||
Returns the edit history associated with a Node. |
||
Allows user to edit, pre-process and submit the script. |
||
Change event. For use in the ‘.ecf’ script file only |
||
Return the chosen file. Select from [ script<default> | job | jobout | manual | kill | stat ] |
||
Force a node to a given state, or set its event. |
||
Force dependency evaluation. Used for DEBUG only. |
||
Free dependencies for a node. Defaults to triggers |
||
Get the suite definition or node tree in form that is re-parse able |
||
Get state data. For the whole suite definition or individual nodes. |
||
Allows a series of ‘;’ separated commands to be grouped and executed as one. |
||
Stop server communication with jobs, and new job scheduling. |
||
Produce help message |
||
Mark task as started(active). For use in the ‘.ecf’ script file only |
||
Job submission for chosen Node based on dependencies. |
||
Kills the job associated with the node. |
||
Change Label. For use in the ‘.ecf’ script file only |
||
Check and load definition or checkpoint file into server. |
||
Get,clear,flush or create a new log file. |
||
Change meter. For use in the ‘.ecf’ script file only |
||
Used to print state of the definition returned from the server to standard output. |
||
Writes the input string to the log file. |
||
Returns true if state of server definition changed. |
||
Re-orders the nodes held by the server |
||
Check if server is running on given host/port. Result reported to standard output. |
||
Plug command is used to move nodes. |
||
Query the status of attributes |
||
QueueCmd. For use in the ‘.ecf’ script file only |
||
Reload the server custom password file. |
||
Reload the server password file. |
||
Reload the white list file. |
||
remove variables i.e name name2 |
||
Replaces a node in the server, with the given path |
||
Re queues the specified node(s) |
||
Start job scheduling, communication with jobs, and respond to all requests. |
||
Manually restore archived nodes. |
||
Ask the server to load the definition from an check pt file. |
||
Resume the given node. This allows job generation for the given node, or any child node. |
||
Ignore triggers, limits, time or date dependencies, just run the Task. |
||
Generates gnuplot files that show the server load graphically. |
||
Returns the version number of the server |
||
Used to print state of the definition returned from the server to standard output. |
||
Stop server from scheduling new jobs. |
||
Returns the server statistics as a string. |
||
Resets the server statistics. |
||
Returns the server statistics as a struct and string. For test use only. |
||
Shows the status of a job associated with a task, in %ECF_JOB%.stat file |
||
Returns the list of suites, in the order defined in the server. |
||
Suspend the given node. This prevents job generation for the given node, or any child node. |
||
Incrementally synchronise the local definition with the one in the server. |
||
Incrementally synchronise the local definition with the one in the server. |
||
Returns the full definition from the server. |
||
Terminate the server. |
||
Show ecflow client version number, and version of the boost library used |
||
Evaluates an expression, and block while the expression is false. |
||
Show the reason why a node is not running. |
||
Locates the task in the servers list of zombies, and sets to adopt. |
||
Locates the task in the servers list of zombies, and sets flags to block it. |
||
Locates the task in the servers list of zombies, and sets to fail. |
||
Locates the task in the servers list of zombies, and sets to fob. |
||
Returns the list of zombies from the server. |
||
Locates the task in the servers list of zombies, and sets flags to kill |
||
Locates the task in the servers list of zombies, and removes it. |
Reference Options
Option |
Description |
|---|---|
Add variables e.g. name1=value1 name2=value2. Can only be used in combination with –init command. |
|
Enables the display of client environment settings and execution details. |
|
When specified overrides the environment variable ECF_HOST and default host: ‘localhost’ |
|
Enables communication over HTTP between client/server. |
|
Enables communication over HTTPS between client/server. |
|
Specifies the password used to contact the server. Must be used in combination with option –user. |
|
When specified overrides the environment variable ECF_PORT and default port: ‘3141’ |
|
When specified overrides the environment variable ECF_RID. Can only be used for child commands. |
|
Enables the use of SSL when contacting the server. |
|
Specifies the user name used to contact the server. Must be used in combination with option –password. |