Go to main content
Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.0

Exit Print View

Updated: July 2017
 
 

Executing Workflows using the CLI

  1. To execute a workflow, use the run command from within the context of the selected workflow.
    dory:maintenance workflow-000> run
  2. The context will become a captive context in which parameters must be specified for a workflow which has parameters:
    dory:maintenance workflow-000> run
    dory:maintenance workflow-000 run(uncommitted)> get
                             type = (unset)
                        overwrite = (unset)

    For a workflow which has no parameters, you can commit directly after entering the captive context:

    dory:maintenance workflow-000> run
    dory:maintenance workflow-000 run(uncommitted)> commit
    hello world!
  3. Any attempt to commit the execution of the workflow without first settingthe requisite parameters will result in an explicit failure:
    dory:maintenance workflow-000 run(uncommitted)> commit
    error: cannot execute workflow without setting property "type"
  4. To execute the workflow, set the specified parameters, and then use the commit command:
    dory:maintenance workflow-000 run (uncommitted)> set type=system
                             type = system
    dory:maintenance workflow-000 run (uncommitted)> set overwrite=true
                        overwrite = true
    dory:maintenance workflow-000 run (uncommitted)> commit
  5. If the workflow has specified steps, those steps will be displayed via the CLI, e.g.:
    dory:maintenance workflow-000 run (uncommitted)> commit
    Checking for existing worksheet ... done
    Finding disks of specified type ... done
    Creating worksheet ... done