Server User Manual

* 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.)
*/
run('analytics worksheets');
run('create "' + params.worksheet + '"');
run('select name="' + params.worksheet + '"');
if (params.proto == 'iscsi') {
ds = [ 'iscsi.ops[client]', 'net.kilobytes', 'io.bytes[disk]',
'arc.accesses[hit/miss]'];
} else if (params.proto == 'nfs') {
ds = ['nfs3.ops[file]','nfs3.ops[client]','net.kilobytes',
'io.bytes[disk]','arc.accesses[hit/miss]'];
}
else {
ds = ['nfs3.ops[file]','nfs3.ops[client]', 'iscsi.ops[client]',
'net.kilobytes', 'io.bytes[disk]','arc.accesses[hit/miss]'];
}
for (i = 0; i < ds.length; i++) {
run('dataset');
run('set name=' + ds[i]);
run('commit');
}
}
} ];
var workflow = {
name: 'VMware ESX Worksheet',
description: 'VMware ESX Worksheet',
parameters: {
overwrite: {
label: 'Overwrite the worksheet if it exists',
type: 'Boolean'
},
proto: {
label: 'Protocol',
type: 'ChooseOne',
options: [ 'nfs', 'iscsi', 'both' ],
optionlabels: [ 'NFSv3', 'iSCSI', 'NFSv3+iSCSI' ],
}
},
execute: function (params) { return (steps); }
};
21 Using Sun Storage 7000 Unified Storage System With VMware ESX Server