EasyManua.ls Logo

Oracle ZFS Storage Appliance

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
Loading...
Creating a Worksheet Based on a Specified Drive Type
chassis = list();
params.disks = [];
for (i = 0; i < chassis.length; i++) {
run('select ' + chassis[i]);
name = get('name');
run('select disk');
disks = list();
for (j = 0; j < disks.length; j++) {
run('select ' + disks[j]);
if (get('use') == params.type) {
params.disks.push(name + '/' +
get('label'));
}
run('cd ..');
}
run('cd ../..');
}
if (params.disks.length === 0)
throw ('No ' + params.type + ' disks found');
run('cd /');
}
}, {
step: 'Creating worksheet',
execute: function (params) {
/*
* In this step, we're ready to actually create the worksheet
* itself: we have the disks of the specified type and
* we know that we can create the worksheet. Note that we
* create several datasets: first, I/O bytes broken down
* by disk, with each disk of the specified type highlighted
* as a drilldown. Then, we create a separate dataset for
* each disk of the specified type. Finally, note that we
* aren't saving the datasets -- we'll let the user do that
* from the created worksheet if they so desire. (It would
* be straightforward to add a boolean parameter to this
* workflow that allows that last behavior to be optionally
* changed.)
*/
var disks = [], i;
run('analytics worksheets');
Maintenance Workflows 605

Table of Contents

Other manuals for Oracle ZFS Storage Appliance

Related product manuals