Using Scheduled Workflows - Oracle ZFS Storage Appliance Administration Manual

Hide thumbs Also See for ZFS Storage Appliance:
Table of Contents

Advertisement

Using Scheduled Workflows

};
Using Scheduled Workflows
Workflows can be started via a timer event by setting up a schedule for them. The property
scheduled has to be added to the Workflow Object and needs to be set to true. Schedules can
either be created via the CLI once a workflow is loaded into the appliance or an array type
property named schedule can be added to the Object Workflow.
Each schedule entry consists of the following properties:
TABLE 134
Property
NAME
frequency
day
hour
minute
600
Oracle ZFS Storage Appliance Administration Guide, Release OS8.6.x • September 2016
if ((state = get('state')) != clustered) {
audit('state is ' + state + '; aborting');
return;
}
if ((state = get('peer_state')) != clustered) {
audit('peer state is ' + state + '; aborting');
return;
}
run('cd /');
run('confirm maintenance system reboot');
}
Workflow Schedule Properties
Type
String
String
String
String
String
Description
Name of the schedule, system
generated
minute,halfhour,hour,day,week,
month
Specifies specific day and can be set
to: Monday, Tuesday,Wednesday,
Thursday,Friday,Saturday or Sunday.
Can be set when frequency is set to
week or month
00-23, Specifies the hour part of the
schedule and can be specified when
the frequency is set to a day,week or
month.
00-59, Specifies the minute part of
the schedule.

Advertisement

Table of Contents
loading

Table of Contents