JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle® ZFS Storage Appliance Administration Guide
Oracle Technology Network
Library
PDF
Print View
Feedback
search filter icon
search icon

Document Information

Using This Documentation

Chapter 1 Oracle ZFS Storage Appliance Overview

Chapter 2 Status

Chapter 3 Initial Configuration

Chapter 4 Network Configuration

Chapter 5 Storage Configuration

Chapter 6 Storage Area Network Configuration

Chapter 7 User Configuration

Chapter 8 Setting ZFSSA Preferences

Chapter 9 Alert Configuration

Chapter 10 Cluster Configuration

Chapter 11 ZFSSA Services

Chapter 12 Shares, Projects, and Schema

Chapter 13 Replication

Chapter 14 Shadow Migration

Chapter 15 CLI Scripting

Chapter 16 Maintenance Workflows

Using Workflows

Workflow Execution Context

Workflow Parameters

Constrained Parameters

Optional Parameters

Workflow Error Handling

Workflow Input validation

Workflow Execution Auditing

Workflow Execution Reporting

Versioning

Appliance Versioning

Workflow Versioning

Workflows as Alert Actions

Alert Action Execution Context

Auditing Slert Actions

Using Scheduled Workflows

Using the CLI

Coding the Schedule

Example: device type selection

BUI

CLI

Downloading workflows

Viewing workflows

Executing workflows

Chapter 17 Integration

Index

Executing workflows

To execute a workflow, use the execute command from within the context of the selected workflow. If the workflow takes no parameters, it will simply execute:

dory:maintenance workflow-000> execute 
hello world!

If the workflow takes parameters, the context will become a captive context in which parameters must be specified:

dory:maintenance workflow-000> execute 
dory:maintenance workflow-000 execute (uncommitted)> get
                         type = (unset)
                    overwrite = (unset)

Any attempt to commit the execution of the workflow without first setting the requisite parameters will result in an explicit failure:

dory:maintenance workflow-000 execute (uncommitted)> commit
error: cannot execute workflow without setting property "type"

To execute the workflow, set the specified parameters, and then use the commit command:

dory:maintenance workflow-000 execute (uncommitted)> set type=system 
                         type = system
dory:maintenance workflow-000 execute (uncommitted)> set overwrite=true
                    overwrite = true
dory:maintenance workflow-000 execute (uncommitted)> commit

If the workflow has specified steps, those steps will be displayed via the CLI, e.g.:

dory:maintenance workflow-000 execute (uncommitted)> commit
Checking for existing worksheet ... done
Finding disks of specified type ... done
Creating worksheet ... done