EasyManuals Logo

Oracle ZFS Storage Appliance User Manual

Oracle ZFS Storage Appliance
650 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #588 background imageLoading...
Page #588 background image
Understanding Workflows
Understanding Workflows
A workflow is embodied in a valid ECMAscript file, containing a single global variable,
workflow. This is an Object that must contain at least three members:
TABLE 125
Required Object Members
Required member Type Description
name
String Name of the workflow
description
String Description of workflow
execute
Function Function that executes the workflow
EXAMPLE 18
Hello World Workflow
The following is an example of a basic workflow:
var workflow = {
name: 'Hello world',
description: 'Bids a greeting to the world',
execute: function () { return ('hello world!') }
};
Uploading this workflow will result in a new workflow named "Hello world"; executing the
workflow will result in the output "hello world!"
EXAMPLE 19
Using the Workflow Run Function to Return CPU Utilization
Workflows execute asynchronously in the appliance shell, running (by default) as the user
executing the workflow. As such, workflows have at their disposal the appliance scripting
facility (see “Working with CLI Scripting” on page 43), and may interact with the appliance just
as any other instance of the appliance shell. That is, workflows may execute commands, parse
output, modify state, and so on. Here is a more complicated example that uses the run function
to return the current CPU utilization:
var workflow = {
name: 'CPU utilization',
description: 'Displays the current CPU utilization',
execute: function () {
run('analytics datasets select name=cpu.utilization');
cpu = run('csv 1').split('\n')[1].split(',');
return ('At ' + cpu[0] + ', utilization is ' + cpu[1] + '%');
}
};
588 Oracle ZFS Storage Appliance Administration Guide, Release OS8.6.x • September 2016

Table of Contents

Other manuals for Oracle ZFS Storage Appliance

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Oracle ZFS Storage Appliance and is the answer not in the manual?

Oracle ZFS Storage Appliance Specifications

General IconGeneral
Connectivity10GbE, 40GbE, InfiniBand, Fibre Channel
ProtocolsNFS, SMB, iSCSI, Fibre Channel, HTTP
Operating SystemOracle Solaris
Data Protectionsnapshots, clones, remote replication
Data ReductionInline compression, deduplication
High AvailabilityRedundant hardware components (controllers, power supplies, fans). Automatic failover between controllers. Hot-swappable drives and components. Cluster configurations for increased availability and scalability.
Management InterfaceWeb-based GUI, CLI, REST API
Storage TypeHybrid (SSD + HDD), All-Flash
Storage CapacityUp to several petabytes
EncryptionAES-256 encryption at rest

Related product manuals